mob
var
spam=0
secondspam=0
verb
say(Text as text) // a chatting verb
set category = "Commands" // a new tab called Social
set desc = "View Say" // aha! Moving the pointer over the verb will display this user guide.
if(src.muted==0)
if(src.talkdelay==0)
if(length(Text) < 500)
view() << "<b><font color=navy>[src] says: [scantext(Text)]"
spam+=1
secondspam+=1
src.talkdelay=1
sleep(10)
src.talkdelay=0
return
else
src << "Sorry, the message [Text] is too long."
else
src<<"You can't talk too fast!"
else
src<<"You can't do that!"
That is my current say code. I was starting to create a spam guard that would automute you for five minutes if you spoke more than 5 times in 10 sec. I was also going to create a secondary guard that would keep you from posting twice within a second, that would also mute you for 5 minutes. I started with creating the two variables, yet realized, I haven't the slightest clue how to do this. Could anyone please give me some pointers on how I could do this?
Thanks.
Basicaly, Something like that? Dont know if it will work with what your using as there are some procs that I would obviously not have defined in my code, Hope it helps - If you have any problems, Just post and i'll try help.