Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local manaBp = 'camouflage backpack'
  2. local supplies = {'great mana potion', 'sudden death rune', 'ultimate mana potion', 'avalanche rune', 'great fireball rune','thunderstorm rune' }
  3.  
  4. Module.New('move items', function()
  5. local mainBp = Container.GetFirst()
  6. for spot, item in mainBp:iItems() do
  7. if table.contains(supplies, Item.GetName(item.id)) then
  8. mainBp:MoveItemToContainer(spot, Container.New(manaBp):Index(), 0)
  9. break
  10. end
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement