Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. displayInformationMessage("ManaPump Script By KoRaBiKa..")
  2. function pumpMana()
  3.  
  4. local charToPump = Creature.New("Ice Boom")
  5. local charToPumpPos = charToPump:Position()
  6. local manaId = 3203 -- Id of your Rune :P
  7. local distance = 8
  8. local backpack = Container.GetByName("backpack")
  9. if (Self.DistanceFromPosition(charToPumpPos.x, charToPumpPos.y, charToPumpPos.z) <= distance) and (Self.Position().z == charToPumpPos.z) then
  10. for spots = 0, backpack:ItemCount() do
  11. local item = backpack:GetItemData(spots)
  12. if (item.id == manaId) then
  13. backpack:UseItemWithCreature(spots, charToPump:ID())
  14. break
  15. end
  16. end
  17. end
  18. end
  19. while true do
  20. pumpMana()
  21. wait(100,200)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement