function onPreprareDeath(cid, deathList)
return doPlayerPopupFYI(cid, You are back to tempel NOOB!!!)
end
@Wibben:
Stop failing meeeeeen.
@TOP:
Player.cpp, Player:nDeath(), remove:
Code:sendReLoginWindow();
i tried it and it really workits mean that i dont see relogin window but i still watch my dead.. i dont get tp to temple you understand? i must do relog and then i am in temple
g_game.addCreatureHealth(this);
g_game.internalTeleport(this, masterPosition, true);
}
else
{
setLossSkill(true);
if(preventLoss)
{
loginPosition = masterPosition;
g_game.addCreatureHealth(this);
g_game.internalTeleport(this, masterPosition, true);
}
function onLogin(cid)
for i = getCreatureMaxHealth(cid) do
if getCreatureHealth(cid, i) <= then
doCreatureAddHealth(cid, i)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE)
else
return 0
end
function onLogin(cid)
for i = getCreatureMaxHealth(cid) do
if getCreatureHealth(cid, i) <= then
doCreatureAddHealth(cid, i)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE)
else
return 0
end
== i must delete 'do'for i = getCreatureMaxHealth(cid) do
...scripts/death.lua:3: ',' expected near 'if'
wtf?try this then:
LUA:function onLogin(cid) for i = getCreatureMaxHealth(cid) do if getCreatureHealth(cid, i) <= then doCreatureAddHealth(cid, i) return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE) else return 0 end
function onLogin(cid)
if(isPlayer(cid) and getCreatureHealth(cid) < getCreatureMaxHealth(cid)) then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true)
end
return true
end