Hey guys, I am making a server and when my characters "die" they dont really die, they just get 0 hp and can still run around !
I'm running TFS 8.54 CryingDamson
This is my "playerdeaths.lua" if this helps.
Its coming up in the error in the console message about this file so something is wrong here, Please help!
<<<OTNoobs>>>
I'm running TFS 8.54 CryingDamson
This is my "playerdeaths.lua" if this helps.
Its coming up in the error in the console message about this file so something is wrong here, Please help!
Lua:
local config = {
deadProtection = getConfigInfo('deadProtection')
}
function relogPlayer(cid)
if isPlayer(cid) then
doRemoveCreature(cid)
end
end
function onPrepareDeath(cid, deathList)
if (isPlayer(cid) and (math.abs(config.deadProtection) >= getPlayerLevel(cid))) then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
setPlayerStorageValue(cid, 6612, 1)
addEvent(relogPlayer, 1000, cid)
else
return true
end
end
<<<OTNoobs>>>
Last edited: