elnelson
Lunaria World Dev
Hello, bois im trying to cancel a countdown if player enters in battle.
but it doesnt work and i dont know what im doing bad
here is the script
but it doesnt work and i dont know what im doing bad
here is the script
Lua:
local function countDown2(number, cid)
local n = number
for i = 1, number do
if getCreatureCondition(cid, CONDITION_INFIGHT) == false then
addEvent(doPlayerSendCancel, i*1000, cid, "Time left: ".. os.date("%M:%S",(n)) .."")
n = n -1
end
end
n = number
return true
end