Im try make script for selling items in Fiona and Malunga what i make false in this action? bot dont counting items ... ;/


PHP Code:
setsetting('Cavebot/WalkThroughPlayers''no')

local ItemsMalunga = {"Pig Foot""Spider Fangs""Poison Spider Shell""Cobra Tongue""Damselfly Wing""Swampling Moss""Scorpion Tail""Pile of Grave Earth""Damselfly Eye""Fir Cone""Centipede Leg""Pelvis Bone""Rotten Piece of Cloth""Piece of Swampling Wood""Hatched Rorc Egg""Dowser""Horoscope""Piece of Scarab Shell""Mutated Flesh""Poisonous Slime""Half-Digested Piece of Meat""Venison""Ghoul Snack""Tooth File""Small Pitchfork""Tarantula Egg""Deepling Scales""Deepling Breaktime Snack""Lancet""Incantation Notes""Thorn""Haunted Piece of Wood""Rorc Egg""Swarmer Antenna""Mutated Rat Tail""Eye of a Deepling""Compound Eye""Vampire's Cape Chain""Slime Mould""Deepling Warts""Bonecarving Knife""Waspoid Wing""Boggy Dreads""Undead Heart""Crawler Head Plating""Pieces of Magic Chalk""Tail of Corruption""Petrified Scream""Necromantic Robe""Lizard Essence""Waspoid Claw""Spitter Nose""Hair of a Banshee""Essence of a Bad Dream""Deepling Ridge""Eye of Corruption""Piece of Dead Brain""Kollos Shell""Deepling Claw""Spidris Mandible""Hellhound Slobber""Gland""Strand of Medusa Hair""    Yielocks""Yielowax""Eye of a Weeper""Scale of Corruption""Ghastly Dragon Head""Winged Tail""Cliff Strider Claw""Demonic Finger""Tentacle Piece"}
local ItemsFiona = {"Glob of Mercury""Glob of Acid Slime""Glob of Tar""Chicken Feather""Carrion Worm Fang""Bola""Honeycomb""Red Hair Dye""Elven Scouting Glass""Bat Wing""Cheese Cutter""Miraculum""Demonic Skeletal Hand""Mad Froth""Elven Astral Observer""Turtle Shell""Gauze Bandage""Small Flask of Eyedrops""Spooky Blue Eye""Dragon's Tail""Green Dragon Scale""Bloody Dwarven Beard""Lizard Scale""Geomancer's Staff""Stone Wing""Wimp Tooth Chain""Lost Bracers""Elder Bonelord Tentacle""Bone Fetish""Basalt Figurine""Holy Ash""Skull Shatterer""Dragon Priest's Wandtip""Red Dragon Scale""Red Dragon Scale""Brimstone Shell""Bony Tail""Basalt Fetish""Broken Throwing Axe""Weaver's Wandtip""Lost Husher's Staff""Wyvern Talisman""Frosty Heart""Spellsinger's Seal""Lost Basher's Spike""Deeptags""Key to the Drowned Library""Blood Tincture in a Vial""Fiery Heart""Giant Eye""Brimstone Fangs""Wyrm Scale""Scythe Leg""Hellspawn Tail""Berserk Potion""Bullseye Potion""Mastermind Potion""Hideous Chunk""Sea Serpent Scale""Humongous Chunk""Draken Sulphur""Blazing Bone""Mystical Hourglass""Luminous Orb""Demon Horn""Magic Sulphur""Flask of Warrior's Sweat""Enchanted Chicken Wing""Spirit Container"}
setfavoritedepot(1)

while 
windowcount("brown backpack") == do
openitem("brown backpack""back"true)
wait(1000)
end

while windowcount("beach backpack") == do
    while 
windowcount("Depot Chest") == do
      
opendepot()
      
wait(300,500)
    
end
        
while windowcount("beach backpack") == do
      
openitem("beach backpack""Depot Chest"false)
      
wait(800,1000)
        
end
for 1#ItemsFiona do
    
while itemcount(ItemsFiona[i], "beach backpack") == do
        
openitem("beach backpack""beach backpack")
        
wait(500)
        if 
itemcount(ItemsFiona[i], "beach backpack") == and itemcount("beach backpack""beach backpack") == 0 then
            gotolabel
("GoToMalunga""MalungaItems")
        
end
    end
end
    
end