mob
verb
OOC(msg as text)
set hidden = 1
if(!msg&&length(msg)>250||findtext("[msg]","<"))
return
else
world <<"<b><font size = 1><font color = red>([usr.oocname])[usr] OOC's: <font color = white>[Safe_Guard(msg)]"
ID:268799
![]() Nov 17 2004, 5:15 pm
|
|
i want to make a code where players can ignor a person thats bothering them and you cant see there msgs so like ignor and unignor heres my OOC how would i do this?
|
![]() Nov 17 2004, 5:20 pm
|
|
Let every mob or client have a list called Ignored or somthing. Then just search through the list and if it finds their key name or character name (or whatever you store in it) the message won't go to them. Use a for loop.
|
mob/var/list/Ignored= new() I did not test this, but it should work. There is a mob variable- Ignored, which is a list. It contains the ckey of people he wants to ignore. (ckey = key lowercase without spaces) The Ignore verb will add the ckey of a mob to the list. (The mob is one you select from a input window that appears) The Un-Ignore verb will remove a ckey from the list. The OOC verb now works as follows: for(var/mob/M in world) |