Advertisement
Guest User

oi

a guest
Feb 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ManaBp = "jewelled backpack"
  2.  
  3. ManaPotID = Item.GetID("Mana potion")
  4. SMPID = Item.GetID("Strong Mana Potion")
  5. GMPID = Item.GetID("Great Mana Potion")
  6. SHPID = Item.GetID("Strong Health Potion")
  7. GHPID = Item.GetID("Great Health Potion")
  8. UHPID = Item.GetID("ultimate spirit Potion")
  9. GSPID = Item.GetID("Great Spirit Potion")
  10. SDID = Item.GetID("Great Fireball Rune")
  11.  
  12. Module.New("MoveManas", function(module)
  13.  
  14. if (Self.ItemCount(ManaPotID) >= 1) or (Self.ItemCount(SMPID) >=1) or (Self.ItemCount(GMPID) >=1) or (Self.ItemCount(SHPID) >=1) or (Self.ItemCount(GHPID) >=1) or (Self.ItemCount(UHPID) >=1) or (Self.ItemCount(GSPID) >=1) or (Self.ItemCount(SDID) >=1) then
  15. local MainBp = Container.GetFirst()
  16. local DestinationBp = Container.GetByName(ManaBp)
  17. for spot = 0, MainBp:ItemCount() do
  18. local item = MainBp:GetItemData(spot)
  19. if (item.id == ManaPotID) or (item.id == SMPID) or (item.id == GMPID) or (item.id == SHPID) or (item.id == GHPID) or (item.id == UHPID) or (item.id == GSPID) or (item.id == SDID) then
  20. MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
  21. module:Delay(500)
  22. break
  23. end
  24. module:Delay(200)
  25. end
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement