Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -- NECEK SKRIPT v 1.0
  2. -- UZYWANIE POTEK
  3.  
  4. myHero = GetMyHero()
  5. hpSlot = GetInventorySlotItem(2003)
  6. manaSlot = GetInventorySlotItem(2004)
  7.  
  8. function OnDraw()
  9. DrawText("Twoje hp to: "..myHero.health, 18, 100, 140, 0xFFFF0000)
  10. if (myHero.health <= 200) then
  11. if (hpSlot ~= nil) then
  12. ChatPrint("Uzylem Ci potki, bo miales malo hp ;)")
  13. CastSpell(hpSlot)
  14. end
  15. end
  16. if (myHero.mana <= 200) then
  17. if (manaSlot ~= nil) then
  18. CastSpell(manaSlot)
  19. ChatPrint("Uzylem Ci potki, bo miales malo many ;)"
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement