Hi, i need alert if im attacking one monster for more than 30 seconds (when someone uh or ih it). I alredy found one on forum:
local LAST_CREATURE_ID, STARTED_ATTACK = 0, 0 -- dont edit
local TIME = 60 -- seconds

while (true) do
if (LAST_CREATURE_ID ~= target.id) then
LAST_CREATURE_ID, STARTED_ATTACK = target.id, timems
elseif (timems - STARTED_ATTACK >= TIME*1000) then
playsound("alert.wav")
break
end

wait(100)
end
but it doesnt work : /
help pleeeeeeease