• 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!

Windows Killed by Unknown

Dialysis

New Member
Joined
Jun 20, 2011
Messages
13
Reaction score
0
Hey otland, i found a bug and i can't find something to solve it, that's why im posting it here.

When a player dies on my server, they get max hp/mana 0 and get killed every time they login.

Code:
23:29 You see a dead human (Vol:10).
You recognize Player. He was killed by unknown.

Rep++ for help fast. :rolleyes:
 
make an onlogin script

Lua:
function onLogin(cid)
if getCreatureMaxHealth(cid)<1 then
setCreatureMaxHealth(cid,1)
doCreatureAddHealth(cid,1)
end
return true
end
don't forget to add it in creaturescripts =)
 
make an onlogin script

Lua:
function onLogin(cid)
if getCreatureMaxHealth(cid)<1 then
setCreatureMaxHealth(cid,1)
doCreatureAddHealth(cid,1)
end
return true
end
don't forget to add it in creaturescripts =)
It should also DBQuery and set the players hp to that.
Or maybe it already does?
 
Back
Top