SHARE
TWEET

Untitled

a guest Aug 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top