A()
set hidden = 1
if(usr.inattack)
return
else
usr.Battle("[src.a]")
usr.inattack = 1
sleep(10)
usr.inattack = 0
Problem description:
Even though everytime an attack is used, and there's a timeout, it still spams.
ID:141807
Nov 5 2008, 2:27 am (Edited on Nov 5 2008, 2:36 am)
|
|
Code:
A() Problem description: Even though everytime an attack is used, and there's a timeout, it still spams. |
Nov 5 2008, 11:32 am
|
|
Does the Battle() proc return almost instantly? Personally, I prefer to pass things like timeouts to a proc all their own.
|
In response to Kaiochao
|
|
It appears that the attack is working, though, leaving that out of the question.
|