ID:145867
 
Code:
mob
verb
Attack(mob/M in oview(1))
set name = "Attack"
var/damage = (usr.att+usr.wep_att-M.def)
if(damage<=0)
s_damage(M, 0, "#ff0000")

else
if(usr.waiting == 0)
usr.waiting = 1
M.HP -= damage
var/num = damage
s_damage(M, num, "#ff0000")
M.Die()
sleep(20)
usr.waiting = 0
else
return


Problem description:
macro still ultra fast ...

mob
verb
Attack(mob/M in get_step(usr, usr.dir))
set name = "Attack"
usr.waiting = 1
var/damage = (usr.att+usr.wep_att-M.def)
if(damage<=0)
s_damage(M, 0, "#ff0000")
sleep(20)
usr.waiting=0
else if(!usr.waiting)
usr.waiting = 1
M.HP -= damage
var/num = damage
s_damage(M, num, "#ff0000")
M.Die()
sleep(20)
usr.waiting = 0
else
return
In response to Mysame
ty