Guest User

Untitled

a guest
May 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. local config = {
  2. GoldContainer = "Backpack",
  3. Gold = {"Gold Coin"},
  4. GoldEnabled = true,
  5.  
  6. StackableContainer = "Orange Backpack",
  7. Stackables = {"Platinum Coin", "Ultimate Health Potion", "Perfect Behemoth Fang", "Behemoth Claw", "Swarmer Antenna", "Compound Eye", "Waspoid Wing", "Crawler Head Plating", "Small Amethyst", "Small Ruby", "Small Emerald", "Small Sapphire", "Small Topaz", "Small Diamond", "White Pearl", "Black Pearl", "Demonic Essence", "Golden Lotus Brooch", "Peacock Feather Fan", "Gold Ingot", "Hellspawn Tail", "Red Piece of Cloth"},
  8.  
  9. NonStackableContainer = "Brocade Backpack",
  10. NonStackables = {"Wand Of Inferno", "Epee", "Calopteryx Cape", "Hive Scythe", "Carapace Shield", "Blue Gem", "Yellow Gem", "Underworld Rod", "Assassin Dagger", "Blue Robe", "Skullcracker Armor", "Spellbook of Mind Control", "Oriental Shoes", "Warrior Helmet", "Onyx Flail", "Focus Cape", "Magma Coat", "Red Gem", "Ruby Necklace", "Death Ring", "Spiked Squelcher", "Zaoan Legs", "Zaoan Armor", "Dragon Scale Mail", "Royal Helmet", "Tower Shield", "Zaoan Helmet", "Zaoan Shoes", "Abyss Hammer", "Berserker", "Composite Hornbow", "Demon Shield", "Mastermind Shield", "Warrior's Axe", "Warrior's Shield"}
  11. }
  12.  
  13. while true do
  14. for i = 0, #Container.GetIndexes() - 1 do
  15. local c = Container.GetFromIndex(i)
  16. if c:isOpen() and (c:Name():find("The") or c:Name():find("Demonic") or c:Name():find("Dead") or c:Name():find("Slain") or c:Name():find("Dissolved") or c:Name():find("Remains") or c:Name():find("Elemental")) then
  17. for s = 0, c:ItemCount() - 1 do
  18. local item = Item.GetName(c:GetItemData(s).id):titlecase()
  19. if config.GoldEnabled and table.contains(config.Gold, item) and Self.Cap() > 100 then
  20. local destCont = Container.GetByName(config.GoldContainer)
  21. c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
  22. wait(150, 180)
  23. break
  24. elseif table.contains(config.Stackables, item) then
  25. local destCont = Container.GetByName(config.StackableContainer)
  26. c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
  27. wait(150, 180)
  28. break
  29. elseif table.contains(config.NonStackables, item) then
  30. local destCont = Container.GetByName(config.NonStackableContainer)
  31. c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
  32. wait(150, 180)
  33. break
  34. end
  35. end
  36. end
  37. end
  38. wait(50)
  39. end
Add Comment
Please, Sign In to add comment