Advertisement
MrTrala

Organizer

Feb 11th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. --[[
  2.     Organizer for ArchLightOnline
  3.     Version 1.5 - PRIV VERSION (Ownership; Mr Trala)
  4.     Created by Mr Trala
  5.    
  6. Instructions;
  7. First of all reset your backpacks so the script can take your mainbp as "0"
  8. If you want to keep moving items, the "MoveTO" backpack should be the same.
  9. That's it!
  10. ]]
  11.  
  12. config = {
  13.     itemsID = {12724, 3040, 3031},
  14.     MoveTO = "Blue Backpack"
  15. }
  16.  
  17.  
  18. Module.New('Mover', function(mod)
  19.     MainBP = Container(0)
  20.     ContNE = Container.New(config.MoveTO)
  21.     for spot, item in MainBP:iItems() do
  22.         if (table.contains(config.itemsID, item.id)) then
  23.             MainBP:MoveItemToContainer(spot, ContNE:Index(), ContNE:ItemCapacity() - 1)
  24.         end
  25.     end
  26.     if (ContNE:ItemCount() == ContNE:ItemCapacity()) then
  27.         local openAt = ContNE:ItemCount() - 1
  28.         if (Item.isContainer(ContNE:GetItemData(openAt).id)) then
  29.             ContNE:UseItem(openAt, true)
  30.             wait(1500)
  31.         end
  32.     end
  33.    
  34. mod:Delay(math.random(200 , 300))
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement