//The Pray verb. Often known as the IC adminhelp, or the crayon for cool shit trade /mob/verb/pray(msg as text) set category = "IC" set name = "Pray" if(say_disabled) //This is here to try to identify lag problems to_chat(usr, "Speech is currently admin-disabled.") return msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN) if(!msg) return if(usr.client) if(usr.client.prefs.muted & MUTE_PRAY) to_chat(usr, "You cannot pray (muted).") return if(src.client.handle_spam_prevention(msg, MUTE_PRAY)) return var/orig_message = msg var/image/cross = image('icons/obj/storage.dmi',"bible") msg = "[bicon(cross)] PRAY (DEITY:[ticker.Bible_deity_name]): [key_name(src, 1)] (?) (PP) (VV) (SM) (JMP) (CA) (SC) (BSA): [msg]" send_prayer_to_admins(msg, 'sound/effects/prayer.ogg') if(!stat) usr.whisper(orig_message) to_chat(usr, "Your prayers have been received by the gods.") feedback_add_details("admin_verb", "PR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /proc/Centcomm_announce(var/text , var/mob/Sender) var/msg = copytext(sanitize(text), 1, MAX_MESSAGE_LEN) msg = "CENTCOMM:[key_name(Sender, 1)] (PP) (VV) (SM) (JMP) (CA) (BSA) (RPLY): [msg]" send_prayer_to_admins(msg, 'sound/effects/msn.ogg') /proc/Syndicate_announce(var/text , var/mob/Sender) var/msg = copytext(sanitize(text), 1, MAX_MESSAGE_LEN) msg = "SYNDICATE:[key_name(Sender, 1)] (PP) (VV) (SM) (JMP) (CA) (BSA) (RPLY): [msg]" send_prayer_to_admins(msg, 'sound/effects/inception.ogg') /proc/send_prayer_to_admins(var/msg,var/sound) for(var/client/C in admins) if(C.prefs.toggles & CHAT_PRAYER) if(C.prefs.special_popup) C << output(msg, "window1.msay_output") //If i get told to make this a proc imma be fuckin mad else to_chat(C, msg) C << sound