Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- displayInformationMessage("ManaPump Script By KoRaBiKa..")
- function pumpMana()
- local charToPump = Creature.New("Ice Boom")
- local charToPumpPos = charToPump:Position()
- local manaId = 3203 -- Id of your Rune :P
- local distance = 8
- local backpack = Container.GetByName("backpack")
- if (Self.DistanceFromPosition(charToPumpPos.x, charToPumpPos.y, charToPumpPos.z) <= distance) and (Self.Position().z == charToPumpPos.z) then
- for spots = 0, backpack:ItemCount() do
- local item = backpack:GetItemData(spots)
- if (item.id == manaId) then
- backpack:UseItemWithCreature(spots, charToPump:ID())
- break
- end
- end
- end
- end
- while true do
- pumpMana()
- wait(100,200)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement