Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local cfg = {
  2. leftPos = {x = 1216, y = 1806, z = 7},
  3. rightPos = {x = 1030, y = 1781, z = 7},
  4. }
  5.  
  6. function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
  7. if isInRange(getCreaturePosition(pid), cfg.leftPos, cfg.rightPos) then
  8. doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
  9. doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
  10. doCreatureAddMana(cid, getCreatureMaxMana(cid))
  11. doRemoveConditions(cid, false)
  12. return false
  13. end
  14. return true
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement