Olá, fiz um piso no qual o jogador pisa e 3 segundos após ele toma dano, porém, se o jogador morre no meio desse dano, ou até mesmo desloga antes de tomar o dano, da erro no console, alguém sabe me ajudar a solucionar esse error?
Segue abaixo o script
function onStepIn(cid, item, pos)if isPlayer(cid) == TRUE thenaddEvent(doTargetCombatHealth, 100, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 500, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 1000, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 1500, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 2000, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 2500, 0, cid, COMBAT_PHYSICALDAMAGE, -250, -750, 57)endif(not isPlayer(cid)) thenaddEvent(doTargetCombatHealth, 100, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 500, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 1000, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 1500, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 2000, 0, cid, COMBAT_PHYSICALDAMAGE, 0, 0, 59)addEvent(doTargetCombatHealth, 2500, 0, cid, COMBAT_PHYSICALDAMAGE, -250, -750, 57)end return trueend
[19:57:45.252] [Error - MoveEvents Interface] [19:57:45.259] In a timer event called from: [19:57:45.265] data/movements/scripts/espinhos.lua:onStepIn [19:57:45.270] Description: [19:57:45.280] (luaDoTargetCombatHealth) Creature not found