I need action like this that work on this bot if possible.
Thanks



local MAXIMUM_INDEX = 15 -- the amount of backpacks with items
local x, y, z = posx, posy, posz -- do not edit, this is to make code shortened

local POSITIONS = {
["YASIR_ITEMS"] = ground(32204,31139,6), -- example ground(x + 1, y - 1, z)
["JEWELRY_ITEMS"] = ground(32204,31139,6),
["TELAS_ITEMS"] = ground(32204,31139,6),
["ADDON_ITEMS"] = ground(32202,31139,6),
["RASHID_ITEMS"] = ground(32200,31139,6),
["GREENDJINN_ITEMS"] = ground(32204,31140,6),
["BLUEDJINN_ITEMS"] = ground(32204,31141,6),
["SHEETS_ITEMS"] = ground(32203,31139,6),
["GRAYISLAND_ITEMS"] = ground(x, y, z),
["GNOMISSION_ITEMS"] = ground(32201,31139,6),
["RING_ITEMS"] = ground(32201,31139,6),
["AMULET_ITEMS"] = ground(32201,31139,6),
["TAMORIL_ITEMS"] = ground(32204,31139,6),
["ALEXANDER_ITEMS"] = ground(32204,31139,6),
["LUNA_ITEMS"] = ground(32204,31139,6),
["POTION_ITEMS"] = ground(32203,31140,6),
["RUSTY_ITEMS"] = ground(x, y, z),
["AMMUNITION_ITEMS"] = ground(32204,31139,6),
["SHARD_ITEMS"] = ground(32204,31142,6),
["LAILENE_ITEMS"] = ground(32204,31139,6),
["ARKULIUS_ITEMS"] = ground(32202,31139,6),
["GRIZZLY_ITEMS"] = ground(32204,31139,6),
["PORTHOPE_ITEMS"] = ground(32204,31139,6),
}

--[[ DO NOT EDIT BELOW ]]--

local ITEMS = {
["YASIR_ITEMS"] = {"Orc Tooth", "Orcish Gear", "Pelvis Bone", "Petrified Scream", "Piece of Archer Armor", "Piece of Crocodile Leather", "Piece of Dead Brain", "Piece of Massacre's Shell", "Piece of Scarab Shell", "Piece of Warrior Armor", "Pig Foot", "Pile of Grave Earth", "Poison Spider Shell", "Poisonous Slime", "Polar Bear Paw", "Protective Charm", "Pulverized Ore", "Purple Robe", "Quara Bone", "Quara Eye", "Quara Pincers", "Quara Tentacle", "Rope Belt", "Rotten Piece of Cloth", "Sabretooth", "Safety Pin", "Scarab Pincers", "Scorpion Tail", "Scroll of Heroic Deeds", "Scythe Leg", "Sea Serpent Scale", "Shaggy Tail", "Shamanic Hood", "Silky Fur", "Skull Belt", "Skunk Tail", "Small Flask of Eyedrops", "Small Notebook", "Small Oil Lamp", "Small Pitchfork", "Snake Skin", "Spellsinger's Seal", "Spider Fangs", "Spidris Mandible", "Spiked Iron Ball", "Spitter Nose", "Spooky Blue Eye", "Star Herb", "Stone Herb", "Stone Nose", "Stone Wing", "Strand of Medusa Hair", "Strange Symbol", "Striped Fur", "Swamp Grass", "Swarmer Antenna", "Tail of Corruption", "Tarantula Egg", "Tattered Piece of Robe", "Tentacle Piece", "Terramite Eggs", "Terramite Legs", "Terramite Shell", "Terrorbird Beak", "Thick Fur", "Thorn", "Trollroot", "Undead Heart", "Unholy Bone", "Vampire Teeth", "Warmaster's Wristguards", "Warwolf Fur", "Waspoid Claw", "Waspoid Wing", "Weaver's Wandtip", "Werewolf Fur", "Widow's Mandibles", "Winged Tail", "Winter Wolf Fur", "Witch Broom", "Wool", "Wyrm Scale", "Wyvern Talisman", "Zaogun Flag", "Zaogun Shoulderplates", "dracoyle statue"},
["JEWELRY_ITEMS"] = {"Black Pearl", "Blue Crystal Shard", "Blue Crystal Splinter", "Brown Crystal Splinter", "Cyan Crystal Fragment", "Giant Shimmering Pearl", "Giant Shimmering Pearl (Gold)", "Gold Ingot", "Green Crystal Fragment", "Green Crystal Shard", "Green Crystal Splinter", "Red Crystal Fragment", "Small Amethyst", "Small Diamond", "Small Emerald", "Small Ruby", "Small Sapphire", "Small Topaz", "Violet Crystal Shard", "Wedding Ring", "White Pearl"},
["TELAS_ITEMS"] = {"Ancient Stone", "Battle Stone", "Broken Gladiator Shield", "Coal", "Crystal of Balance", "Crystal of Focus", "Crystal of Power", "Crystalline Spikes", "Gear Crystal", "Gear Wheel", "Magma Clump", "Metal Spike", "Piece of Hellfire Armor", "Pulverized Ore", "Stone Nose", "Sulphurous Stone", "Vein of Ore", "War Crystal", "Crystal Pedestal"},
["ADDON_ITEMS"] = {"Red Robe", "Mystic Turban", "Demonic Essence", "Ankh", "Ape Fur", "Bat Wing", "Bear Paw", "Behemoth Claw", "Blue Piece of Cloth", "Bonelord Eye", "Brown Piece of Cloth", "Chicken Feather", "Demon Dust", "Dragon Claw", "Enchanted Chicken Wing", "Fish Fin", "Flask of Warrior's Sweat", "Green Piece of Cloth", "Hardened Bone", "Heaven Blossom", "Holy Orchid", "Honeycomb", "Iron Ore", "Lizard Leather", "Lizard Scale", "Magic Sulphur", "Minotaur Leather", "Nose Ring", "Perfect Behemoth Fang", "Red Dragon Leather", "Red Dragon Scale", "Red Piece of Cloth", "Sniper Gloves", "Soul Stone", "Spider Silk", "Spirit Container", "Turtle Shell", "Vampire Dust", "White Piece of Cloth", "Wolf Paw", "Yellow Piece of Cloth", "Huge Chunk of Crude Iron", "Piece of Draconian Steel", "Piece of Hell Steel", "Piece of Royal Steel", "piggy bank"},
["RASHID_ITEMS"] = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Crossbow", "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", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Headchopper", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Orcish Maul", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Headchopper", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Orcish Maul", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Headchopper", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Orcish Maul", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "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", "Headchopper", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Blacksteel Sword", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Headchopper", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Orcish Maul", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "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", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Royal Axe", "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", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
["GREENDJINN_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", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Terra Rod", "Underworld Rod"},
["BLUEDJINN_ITEMS"] = {"Magic Light Wand", "Orb", "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", "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", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
["SHEETS_ITEMS"] = {"6088", "6089", "6090", "6087", "mysterious voodoo skull", "enigmatic voodoo skull", "Black skull", "Twin Hooks", "Wailing Widow's Necklace", "Zaoan Armor", "Zaoan Halberd", "Zaoan Helmet", "Zaoan Legs", "Zaoan Shoes", "Zaoan Sword"},
["GRAYISLAND_ITEMS"] = {"Calopteryx Cape", "Carapace Shield", "Deepling Axe", "Deepling Squelcher", "Deepling Staff", "Depth Ocrea", "Grasshopper Legs", "Guardian Axe", "Hive Scythe", "Necklace of the Deep", "Ornate Crossbow", "Ornate Mace", "Warrior's Axe", "Warrior's Shield"},
["GNOMISSION_ITEMS"] = {"Arbalest", "Arcane Staff", "Baby Seal Doll", "Bejeweled Ship's Telescope", "Blade of Corruption", "Bloody Edge", "Blue Legs", "Bright Sword", "Ceremonial Ankh", "Claw of 'The Noxious Spawn'", "Crystal Wand", "Demon Helmet", "Dragon Robe", "Dwarven Axe", "Dwarven Legs", "Egg of the Many", "Executioner", "Frozen Starlight", "Golden Amulet", "Golden Sickle", "Greenwood Coat", "Marlin Trophy", "Modified Crossbow", "Ornamented Shield", "Panda Teddy", "Purple Tome", "Red Tome", "Runed Sword", "Sea Serpent Trophy", "Silkweaver Bow", "Souleater Trophy", "Star Amulet", "Stuffed Dragon", "The Avenger", "The Ironworker", "Unholy Book", "Windborn Colossus Armor"},
["RING_ITEMS"] = {"Time Ring", "Ring of Healing", "Life Ring", "Might Ring", "Dwarven Ring", "Energy Ring", "Axe Ring", "Club Ring", "Life Crystal", "Power Ring", "Stealth Ring", "Sword Ring"},
["AMULET_ITEMS"] = {"Strange Talisman", "Protection Amulet", "Silver Amulet", "Dragon Necklace", "Bronze Amulet", "Elven Amulet", "Garlic Necklace", "Stone Skin Amulet"},
["TAMORIL_ITEMS"] = {"Blue Gem", "Golden Mug", "Green Gem", "Red Gem", "Violet Gem", "Yellow Gem"},
["ALEXANDER_ITEMS"] = {"Crystal Ball", "Mind Stone", "Spellbook of Enlightenment", "Spellbook of Lost Souls", "Spellbook of Mind Control", "Spellbook of Warding"},
["LUNA_ITEMS"] = {"Fire Mushroom", "Goat Grass", "Grave Flower", "Green Mushroom", "Orange Mushroom", "Shadow Herb", "Sling Herb", "Wood Mushroom"},
["POTION_ITEMS"] = {"strong mana potion", "Berserk Potion", "Bullseye Potion", "Great Health Potion", "Great Mana Potion", "Great Spirit Potion", "Health Potion", "Mana Potion", "Mastermind Potion", "Small Health Potion", "Strong Health Potion", "Ultimate Health Potion"},
["RUSTY_ITEMS"] = {"Rusty Armor (Common)", "Rusty Armor (Semi-Rare)", "Rusty Armor (Rare)", "Rusty Legs (Common)", "Rusty Legs (Semi-Rare)", "Rusty Legs (Rare)"},
["AMMUNITION_ITEMS"] = {"Soul Orb", "Snowball", "Small Stone", "Spear", "Throwing Knife", "Viper Star", "Throwing Star", "Hunting Spear", "Royal Spear", "Enchanted Spear", "Assassin Star", "Arrow", "Burst Arrow", "Crystalline Arrow", "Earth Arrow", "Envenomed Arrow", "Flaming Arrow", "Flash Arrow", "Onyx Arrow", "Poison Arrow", "Shiver Arrow", "Sniper Arrow", "Tarsal Arrow", "Bolt", "Drill Bolt", "Infernal Bolt", "Piercing Bolt", "Power Bolt", "Prismatic Bolt", "Vortex Bolt"},
["SHARD_ITEMS"] = {"Shard", "Empty Potion Flask (Large)", "Empty Potion Flask (Small)", "Vial"},
["LAILENE_ITEMS"] = {"Batwing Hat", "Ethno Coat", "Focus Cape", "Jade Hat", "Spellweaver's Robe", "Spirit Cloak", "Zaoan Robe"},
["ARKULIUS_ITEMS"] = {"Energy Soil", "Eternal Flames", "Flawless Ice Crystal", "Glimmering Soil", "Iced Soil", "Mother Soil", "Natural Soil", "Neutral Matter", "Pure Energy"},
["GRIZZLY_ITEMS"] = {"Behemoth Trophy", "Bonebeast Trophy", "Cavebear Skull", "Cyclops Trophy", "Deer Trophy", "Demon Trophy", "Disgusting Trophy", "Dragon Lord Trophy", "Draken Trophy", "Draptor Scales", "Giant Crab Pincer", "Hollow Stampor Hoof", "Lion Trophy", "Lizard Trophy", "Maxilla", "Minotaur Trophy", "Panther Head", "Panther Paw", "Stampor Horn", "Stampor Talons", "Wolf Trophy"},
["PORTHOPE_ITEMS"] = {"Explorer Brooch", "Hydra Egg", "Old Parchment", "Giant Smithhammer", "Skull of Ratha", "Banana Staff", "Bast Skirt", "Charmer's Tiara", "Feather Headdress", "Horseman Helmet", "Leopard Armor", "Ripper Lance", "Salamander Shield", "Sentinel Shield", "Templar Scytheblade", "Tribal Mask", "Tusk Shield"},
}

local INDEX = 0

while (INDEX <= MAXIMUM_INDEX) do
INDEX = INDEX + 1
for LIST_NAME, LIST_ITEMS in pairs(ITEMS) do
if POSITIONS
[LIST_NAME] then
for _, ITEM in ipairs(LIST_ITEMS) do
while (itemcount(ITEM) > 0) do
moveitems(ITEM, "All", POSITIONS
[LIST_NAME], itemcount(ITEM))
wait(500, 750)
end
end
end
end
for _, BP in ipairs({2893, 14674, 2854, 3253, 235, 2853, 2855, 14153, 5949, 5950, 2869, 2861, 2875, 2902, 3474, 3475, 3476, 119, 2469, 2473, 8860, 8861, 2885, 2873, 14249, 2872, 2864, 2472, 2480, 2481, 2482, 6505, 6509, 6510, 9232, 117, 118, 2471, 9605, 16100, 2881, 2883, 2884, 14248, 12478, 9601, 10326, 2879, 3477, 3478, 3479, 3480, 10324, 10325, 7342, 7343, 2871, 2863, 2903, 2865, 2857, 2877, 2870, 2862, 10202, 5801, 2882, 7244, 10327, 9604, 2880, 16099, 3244, 9602, 9603, 140, 3503, 5926, 5927, 3465, 906, 2856, 3218, 2868, 2860, 2867, 2859, 5552, 10346, 3504, 2478, 2876, 2874, 2901, 2866, 2858}) do
if itemcount(BP) > 0 then
openitem(BP, "all", false)
break
end
end
end