beeki

nonDieDelay by Mock

Aug 22nd, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local nonDieDelay = 60*3 --- 3 minuts
  2. function onPrepareDeath(cid,aa) -- Script by mock the bear
  3.         if getWorldUpTime() <= nonDieDelay then
  4.                 doCreatureAddHealth(cid,getCreatureMaxHealth(cid))
  5.                 doCreatureAddMana(cid,getCreatureMaxMana(cid))
  6.                 doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
  7.                 doRemoveCreature(cid)
  8.                 return false
  9.         end
  10.         return true
  11. end
Advertisement
Add Comment
Please, Sign In to add comment