mob
icon = 'mob.dmi'
var
HP = 100
MaxHP = 100
EXP = 0
MaxEXP = 1000
str = 5
MP = 10
Level = 1
verb
Weak_Attack(mob/M as mob in get_step(src,usr.dir))
set category="Skills"
F_damage(usr, rand(1,2), "#ff0000")
flick(pick("1","3","2"),usr)
M:DeathCheck()
usr:LevelUp()
sleep(10)
..()
Medium_Attack(mob/M as mob in get_step(src,usr.dir))
set category="Skills"
F_damage(usr, rand(5,6), "#ff0000")
flick(pick("5","6","7"),usr)
M:DeathCheck()
usr:LevelUp()
sleep(50)
..()
Strong_Attack(mob/M as mob in get_step(src,usr.dir))
set category="Skills"
F_damage(usr, rand(10,20), "#ff0000")
flick(pick("72 Pound","10","NewGorillaCross"),usr)
M:DeathCheck()
usr:LevelUp()
sleep(100)
..()
proc
DeathCheck()
if(src.HP <=0)
src.loc = locate(1,1,1)
src << "You have respawned."
LevelUp()
if(usr.EXP==usr.MaxEXP)
usr.EXP=0
usr.MaxEXP+=rand(5,7)
usr.str+=rand(5,10)
usr.Level+=1
usr.MaxHP += rand(10,15)
usr << "You have leveled up!"
Problem description:
Well as you can see i put a cooldown but if i macro the these attacks and just let my finger on top of the button, it will spam like theres no tomorrow >_> how do i fix this?