Pretx
Active Member
- Joined
- May 5, 2011
- Messages
- 184
- Solutions
- 2
- Reaction score
- 29
Hi members of OtLand, I need a script that if a player less to lvl 50 is killed for other player, This don't die ! if not that automatically go to the temple, and the player who defeated him win no frags.
tibia 8.6 & dev 0.4i
Not work for me
tibia 8.6 & dev 0.4i
Code:
function onPrepareDeath(cid, deathList)
if getPlayerLevel(cid) < 50 then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 11719, 256, true)
doCreatureAddMana(cid, getCreatureMaxMana(cid))
doRemoveConditions(cid, false)
return false
end
return true
end
Not work for me