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

Need some help please! :)

otnoobs

New Member
Joined
Jan 23, 2011
Messages
13
Reaction score
0
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! :)

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:
Back
Top