mob/verb/OOC(OOC as text)
if(usr.FloodDelay==5)
usr<<"You have Spammed so Muted"
return
world<<"[usr]: [OOC]"
usr.FloodDelay+=1
sleep(100)
usr.FloodDelay=0
Set That Variable "FloodDelay" in a list
ID:273272
Jan 3 2010, 5:11 pm
|
|
How do i set the Variables in a list? Like this
mob/verb/OOC(OOC as text) Set That Variable "FloodDelay" in a list |
Jan 3 2010, 5:15 pm
|
|
2 things, first, why do you want to set that var on a list? And second, you know your code will be buged right? Once you speak, after 10 secs, it will auto reset the flood control to 0, meaning that with the correct timing you can spam up to 9(if Im not mistaken) in a second without getting muted
|
In response to Abrax
|
|
Yea i know it is bugged Sorry. I want Add that Variable to the List Because I have Alot of Variables on Vars.dm and i get losed xD.
Oh, here is the Code. mob/verb/OOC(OOC as text) |
In response to Gohan Games
|
|
Gohan Games wrote:
Yea i know it is bugged Sorry. I want Add that Variable to the List Because I have Alot of Variables on Vars.dm and i get losed xD. > mob/verb/OOC(OOC as text) Write all the vars on the same place(near each other, etc) And a small fix on your verb > mob/verb/OOC(OOC as text) |
In response to Abrax
|
|
What about something like this?
mob |
Gohan Games wrote:
How do i set the Variables in a list? Like this > mob/verb/OOC(OOC as text) Set That Variable "FloodDelay" in a list if your are just wanting a spam avoider prefer using world.time and do simple math ! |