• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

player with no health and still alive

canaan

New Member
Joined
Sep 21, 2008
Messages
53
Reaction score
0
Some players of my ot is reduced to 0 health and still alive why?:huh:
 
Last edited:
You have a onPrepareDeath or onDeath script running (Most likely the former), which defaults to false or in any other way errors.
This will cause players who reaches 0 HP to not die, ever.
 
local function sendLetter(p)
local pos = p.pos
local letter = p.letter
doSendAnimatedText(pos, letter, TEXTCOLOR_RED)
end

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local letters = {"O", "W", "N", "E", "D", "!"}
for i = 1, #letters do
addEvent(sendLetter, i * 150, {pos = getCreaturePosition(cid), letter = letters})
end
return true
end


Thats teh script any mistake?
 
Back
Top