Also, I have a coding problem to adress.
I have 2 procs I would like a world-say message to go through. A filter, and a smiley replacement.
I have tried:
WSay(msg as text) // yeah, we'll let you talk to the entire world this time. same spamming protection as Say
if(muted==0)
if(length(msg)<=255)
if(ratelimit<=5)
var/mob/players/m = usr
world << "<font color = blue><b>([m.char_class])[usr] <font color = blue>wsays: [s_smileys&&filter(msg)]"
ratelimit++
else
usr << "<b>You are over the rate limit. Please wait..."
ratelimit=10
else
usr << "<b>Don't spam, the limit is 255 characters."
else
usr << "<font color = purple>The Creator has muted you! No one hears you."
And it only does the filter, so it stands as:
WSay(msg as text) // yeah, we'll let you talk to the entire world this time. same spamming protection as Say
if(muted==0)
if(length(msg)<=255)
if(ratelimit<=5)
var/mob/players/m = usr
world << "<font color = blue><b>([m.char_class])[usr] <font color = blue>wsays: [s_smileys(msg)]"
ratelimit++
else
usr << "<b>You are over the rate limit. Please wait..."
ratelimit=10
else
usr << "<b>Don't spam, the limit is 255 characters."
else
usr << "<font color = purple>The Creator has muted you! No one hears you."
For now.
The last thing, is that I am severely needing a verb that allows you to hide tabs. If you reply to my message, please page me.
To close it, send another browse with the same window parameter where the first argument is empty.
For sending something through two different functions, either do it one line at a time, resetting the variable each time, or pass the restulf of one function in to the other.
As for hiding tabs, that depends on whether they are statpanel tabs or verb panel tabs.
For verbs, just set the category of all the verbs that would otherwise be in a tab to null.
For statpanels, just don't let the part for the tab in question to be executed.