Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function onPokeBarLife(cid)
  2. if isSummon(cid) and isPlayer(getCreatureMaster(cid)) then
  3. local itemBall = getPlayerSlotItem(getCreatureMaster(cid), CONST_SLOT_FEET)
  4. local hp = math.ceil((getCreatureHealth(cid) * 100) / getCreatureMaxHealth(cid))
  5. local orde = getItemAttribute(itemBall.uid, "ballorder")
  6. if orde then
  7. doPlayerSendCancel(getCreatureMaster(cid), "pGS,"..hp.."|"..orde.."|"..getPokeName(cid))
  8. doPlayerSendCancel(getCreatureMaster(cid), "")
  9. end
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement