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

teleporting just before they die!

Tymofek

New Member
Joined
May 12, 2011
Messages
86
Reaction score
3
Location
Santiago - CHILE
i need a script so players do not die, not just erase the frags from the DB, also i need them to not logout and be healed and teleported to 10,10,7


is like instead of dying they were saved


Thx!
 
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	local pos = {x=10, y=10, z=7}

	doTeleportThing(cid, pos)
	doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
	doCreatureAddMana(cid, getCreatureMaxMana(cid))
	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
        return true
end
 
Back
Top Bottom