--[BACKPACK SETUP]-- local MainBP = "backpack" local LootBP = "purple backpack" local LootBPqtd = 18 -- how many loot bps local AddonBP = "beach backpack" local AddonBPqtd = 2 -- how many loot bps --[NPCS, ITEMS AND COORDINATES]-- local ITEMS_TABLE = { ["PortHope"] = {ITEMS = {"Mantassin Tail", "Hydra Egg", "Banana Sash", "Kongra's Shoulderpad", "hollow stampor hoof", "Stampor Talons", "Stampor Horn", "Antlers", "Bloody Pincers", "Colourful Feather" ,"Quara Tentacle", "Terramite Shell", "Sandcrawler Shell", "Scarab Pincers", "Frosty Ear of a Troll", "Crab Pincers", "Quara Eye", "Sabretooth", "Quara Pincers", "Mutated Bat Ear", "Quara Bone", "Cyclops Toe", "Terramite Legs", "Hydra Head", "Lancer Beetle Shell", "Terrorbird Beak", "Bear Paw", "Wolf Paw", "Tusk"}, POS = {posx+1,posy,posz}}, ["Farmine"] = {ITEMS = {"legionnaire flags", "spiked iron ball", "dragon priest's wandtip", "high guard shoulderplates", "high guard flag", "broken halberds", "Draken Boots", "Drakinata", "Elite Draken Mail", "Guardian Boots", "Twiceslicer", "twin hooks", "wailing widow's necklace", "zaoan armor", "zaoan halberd", "zaoan helmet", "zaoan legs", "zaoan shoes", "zaoan sword", "Ectoplasmic Sushi", 10328, "bone shoulderplate", "broken halberd", "Spiked Iron Ball", "Broken Slicer", "High Guard Shoulderplates", "Zaogun Shoulderplates", "Warmaster's Wristguards", "Cursed Shoulder Spikes", "Broken Draken Mail", "Draken Wristbands", "Legionnaire Flags", "High Guard Flag", "Zaogun Flag", "Corrupted Flag"}, POS = {posx,posy+1,posz}}, ["Edron"] = {ITEMS = {"spirit container", "giant eye", "batwing hat", "ethno coat", "focus cape", "jade hat", "spellweaver's robe", "spirit cloak", "zaoan robe", "Spellbook of Enlightenment", "Spellbook of Lost Souls", "Spellbook of Mind Control", "Spellbook of Warding", "Lizard Scale", "Lizard Scale", "small flask of eyedrops", "elder bonelord tentacle", "spirit container","gear wheel", "dragon's tail", "green mushroom", "green dragon scale", "bony tails", "lizard scale", "Behemoth Claw", "Bat Wing", "Luminous Orb", "Vampire Dust", "Spider Silk", "Demon Horn", "Stone Wing", "Fish Fin", "Dragon Priest's Wandtip", "Glob of Mercury", "Red Dragon Scale", "Brimstone Shell", "Glob of Acid Slime", "Weaver's Wandtip", "Wyvern Talisman", "Frosty Heart", "Glob of Tar", "Demon Dust", "Carrion Worm Fang", "Fiery Heart", "Brimstone Fangs", "Giant Eye", "Honeycomb", "Wyrm Scale", "Scythe Leg", "Hellspawn Tail", "Elven Scouting Glass", "Sea Serpent Scale", "Draken Sulphur", "Miraculum", "Hardened Bone", "Mystical Hourglass", "Demonic Skeletal Hand", "Turtle Shell", "Gauze Bandage", "Spooky Blue Eye", "Chicken Feather" , "Bamboo Stick", "Lump of Dirt", "Lump of Earth", "Swamp Grass", "Nettle Spit", "Trollroot", "Nettle Blossom", "Bundle of Cursed Straw", "Battle Stone", "Sulphurous Stone", "Broken Gladiator Shield", "Gear Crystal", "Metal Spike", "War Crystal", "Shiny Stone", "Piece of Hellfire Armor", "Ancient Stone"}, POS = {posx-1,posy,posz}}, ["LibertyBay"] = {ITEMS = {"boggy dread", "poisonous slime", "Pelvis Bone", "Pig Foot", "Poison Spider Shell", "Spider Fangs", "Thorn", "Widow's Mandibles", "Haunted Piece of Wood", "Cobra Tongue", "Mutated Rat Tail", "Undead Heart", "Tail of Corruption", "Scorpion Tail", "Petrified Scream", "Necromantic Robe", "Centipede Leg", "Rotten Piece of Cloth", "Lizard Essence", "Hair of a Banshee", "Essence of a Bad Dream", "Eye of Corruption", "Piece of Dead Brain", "Piece of Scarab Shell", "Tentacle Piece", "Mutated Flesh", "Hellhound Slobber", "Half-Digested Piece of Meat", "Ghoul Snack", " Medusa Hair", "Scale of Corruption", "Small Pitchfork", "Ghastly Dragon Head", "Tarantula Egg", "Winged Tail","Half-Eaten Brain"}, POS = {posx,posy-1,posz}}, ["BlueDjinn"] = {ITEMS = {"Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Phoenix Shield", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer", "Axe Ring", "Bronze Amulet", "Club Ring", "Elven Amulet", "Garlic Necklace", "Magic Light Wand", "Mind Stone", "Orb", "Power Ring", "Stealth Ring", "Stone Skin Amulet", "Sword Ring", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex"}, POS = {posx+1,posy+1,posz}}, ["Rashid"] = {ITEMS = {"witch hat", "Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Berserker", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chain Bolter", "Chaos Mace", "Cobra Crown", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Djinn Blade", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Dwarven Armor", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Lavos Armor", "Leaf Legs", "Leopard Armor", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Paladin Armor", "Pharaoh Sword", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "Wyvern Fang"}, POS = {posx-1,posy-1,posz}}, ["GREEN_DJINN"] = {ITEMS = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Ornamented Axe", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Ankh", "Dragon Necklace", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Protection Amulet", "Silver Amulet", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"}, POS = {posx-1,posy+1,posz}}, ["Gems"] = {ITEMS = {"Small Sapphire", "Small Emerald", "Gold Ingot", "Small Ruby", "Small Topaz", "Small Amethyst", "Black Pearl", "White Pearl", "Small Diamond"}, POS = {posx,posy-2,posz}}, ["Ankrahmun"] = {ITEMS = {"Black Hood", "Book of Necromantic Rituals", "Book of Prayers", "Broken Key Ring", "Cultish Mask", "Cultish Robe", "Broken Ring of Eding", "Cultish Symbol", "Dark Rosary", "Elvish Talisman", "Flask of Embalming Fluid", "Strange Symbol", "Unholy Bone", "Witch Broom"}, POS = {posx-2,posy,posz}}, ["Yalahar"] = {ITEMS = {"Golden Mug", "Violet Gem", "Blue Gem", "Green Gem", "Red Gem", "Yellow Gem"}, POS = {posx+2,posy,posz}}, ["Potions"] = {ITEMS = {"Mana Potion", "Strong Mana Potion", "Great Mana Potion", "Health Potion", "Strong Health Potion", "Great Health Potion", "Ultimate Health Potion", "Great Spirit Potion", "Mastermind Potion", "Bullseye Potion", "Berserk Potion"}, POS = {posx,posy+2,posz}}, ["Venore"] = {ITEMS = {"Snake Skin", "Necromantic Robe", "Frost Giant Pelt", "Striped Fur", "Ape Fur", "Badger Fur", "Black Wool", "Blue Piece of Cloth", "Brown Piece of Cloth", "Bunch of Troll Hair", "Deepling Guard Belt Buckle", "Dirty Turban", "Downy Feather", "Earflap", "Frost Giant Pelt", "Geomancer's Robe", "Ghostly Tissue", "Green Dragon Leather", "Green Piece of Cloth", "Jewelled Belt", "Lion's Mane", "Lizard Leather", "Minotaur Leather", "Necromantic Robe", "Noble Turban", "Piece of Crocodile Leather", "Purple Robe", "Red Dragon Leather", "Red Piece of Cloth", "Rope Belt", "Royal Tapestry", "Safety Pin", "Shaggy Tail", "Spool of Yarn", "Striped Fur", "Tattered Piece of Robe", "Thick Fur", "Warwolf Fur", "Werewolf Fur", "White Piece of Cloth", "Winter Wolf Fur", "Wool", "Yellow Piece of Cloth"}, POS = {posx-1,posy-2,posz}}, ["Chondur"] = {ITEMS = {"Black Skull", "Blood Globet", "Enigmatic Voodoo Skull", "Mysterious Voodoo Skull"}, POS = {posx+1,posy-2,posz}}, ["LIFE"] = {ITEMS = {"Life Ring", "Life Crystal", "Ring of Healing"}, POS = {posx+1,posy+1,posz}}, ["CORYM"] = {ITEMS = {"Leather Harness", "Life Preserver", "Ratana", "Spike Shield", "Spiky Club"}, POS = {posx-2,posy-2,posz}}, ["SOILS"] = {ITEMS = {"Glimmering Soil", "Energy Soil", "Iced Soil", "Natural Soil", "Eternal Flames", "Flawless Ice Crystal", "Mother Soil", "Neutral Matter", "Pure Energy"}, POS = {posx+2,posy-2,posz}}, ["GRAYBEACH"] = {ITEMS = {"Carapace Shield", "Grasshoper Legs", "Calopteryx Cape", "Closed Trap", "Crowbar", "Deepling Axe", "Deepling Squelcher", "Deepling Staff", "Depth Scutum", "Guardian Axe", "Hive Bow", "Hive Scythe", "Necklace of the Deep", "Ornate Chestplate", "Ornate Crossbow", "Ornate Legs", "Ornate Mace", "Ornate Shield", "Warrior's Axe", "Warrior's Shield", "Compound Eye", "Crawler Head Plating", "Deepling Breaktime Snack", "Deepling Claw", "Deepling Guard Belt Buckle", "Deepling Ridge", "Deepling Scales", "Deepling Warts", "Deeptags", "Dung Ball", "Eye of a Deepling", "Key to the Drowned Library", "Kollos Shell", "Spellsinger's Seal", "Spidris Mandible", "Spitter Nose", "Swarmer Antenna", "Waspoid Claw", "Waspoid Wing"}, POS = {posx-1,posy+2,posz}}, ["OTHER"] = {ITEMS = {"Demonic Essence", "Magic Sulphur"}, POS = {posx+1,posy+2,posz}}, ["LostDwarves"] = {ITEMS = {17852,10422,3428,3324,812,16121,3415,3279,3432,7413,3369,7454,7437,813,17829,3320,17828,3342,3371,16119,3318,7452,7427,9057,17827,17855,17847,17826,17830,238,17857,17831,7643,3097,2995,16123,16122,3033,3032,239,16126,17849,17848,236,17850,17851,17854,17853,17856,10310}, POS = {posx-2,posy+1,posz}}, } -- PORT_HOPE_DROP = 1 SQM right -- FARMINE_DROP = 1 SQM south -- EDRON_DROP = 1 SQM left -- LIBERTY_BAY_DROP = 1 SQM north -- BLUE_DJINN_DROP = 1 SQM SouthEast -- RASHID_DROP = 1 SQM NorthWest -- GREEN_DJINN_DROP = 1 SQM SouthWest -- LIFE_DROP = 1 SQM NorthEast -- GEMS_DROP = 2 SQM North -- ANKRAHMUN_DROP = 2 SQM West -- YALAHAR_DROP = 2 SQM East -- POTIONS_DROP = 2 SQM South -- VENORE_DROP = 1 SQM West, 2 SQM North -- CHONDUR_DROP = 1 SQM East, 2 SQM North -- CORYM_DROP = 2 SQM West, 2 SQM North -- SOILS_DROP = 2 SQM East, 2 SQM North -- GRAYBEACH_DROP = 1 SQM West, 2 SQM South -- OTHER_DROP = 1 SQM East, 2 SQM South -- LOSTDWARVES_DROP = 2 SQM West, 1 SQM South --[END NPCS, ITEMS AND COORDINATES]-- local function xyzdropitem(x, y, z, i) return moveitems(i, 'all', ground(x, y, z), itemcount(i)) end if windowcount(MainBP) == 0 then openitem(MainBP, ground(posx,posy,posz)) else LOOTBP_INDEX = 0 ADDONBP_INDEX = 0 for i=0,LootBPqtd do openitem(LootBP, MainBP, false, LOOTBP_INDEX) wait(500,1000) for KEY, SUB_TABLE in pairs(ITEMS_TABLE) do local ITEMS, POSITION1, POSITION2, POSITION3 = SUB_TABLE.ITEMS, SUB_TABLE.POS[1], SUB_TABLE.POS[2], SUB_TABLE.POS[3] for _, VALUE in ipairs(ITEMS) do while (itemcount(VALUE, LootBP) > 0) do xyzdropitem(POSITION1, POSITION2, POSITION3, VALUE) wait(500, 1000) end end end closewindow(LootBP) LOOTBP_INDEX = LOOTBP_INDEX+1 wait(500,1000) openitem(MainBP, ground(posx,posy,posz)) wait(500,1000) end for i=0,AddonBPqtd do openitem(AddonBP, MainBP, false, ADDONBP_INDEX) wait(500,1000) for KEY, SUB_TABLE in pairs(ITEMS_TABLE) do local ITEMS, POSITION1, POSITION2, POSITION3 = SUB_TABLE.ITEMS, SUB_TABLE.POS[1], SUB_TABLE.POS[2], SUB_TABLE.POS[3] for _, VALUE in ipairs(ITEMS) do while (itemcount(VALUE, AddonBP) > 0) do xyzdropitem(POSITION1, POSITION2, POSITION3, VALUE) wait(500, 1000) end end end closewindow(AddonBP) ADDONBP_INDEX = ADDONBP_INDEX+1 wait(500,1000) openitem(MainBP, ground(posx,posy,posz)) wait(500,1000) end setsettings("Settings/Actions/List/BPLootSorter/Enabled", "no") end