Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
persistent looter script
#1
hello

i would like a persistent looter script based on item name

is that possible?
Reply

#2
|Only Registered members can see download links. | Click here to buy subscription or here to register.
something like this


local config = {
    GoldContainer = "Backpack",
    Gold = {"Gold Coin"},
    GoldEnabled = true,
   
    StackableContainer = "Zaoan Chess Box",
    Stackables = {"Strong Mana Potion", "Strong Health Potion", "Wyrm Scale", "Burst Arrow", "Small Diamond", "Ogre Ear Stud", "Small Stone", "Small Ruby", "White Pearl", "Opal", "Ogre Nose Ring", "Battle Stone", "Onyx Chip", "Skull Fetish", "Ancient Stone", "Small Topaz", "Berserk Potion", "Shamanic Talisman", "Broken Shamanic Staff", "Bone Fetish", "Black Pearl", "Hardened Bone", "Thick Fur", "a Lump of Earth", "Wyvern Talisman", "Crystalline Arrow", "Brown Crystal Splinter", "Blue Crystal Splinter", "Green Crystal Splinter", "Crystalline Spikes", "Platinum Coin", "piece of dead brain", "Bonelord Eye", "Life Crystal", "Silver Brooch", "Petrified Scream", "hair of a banshee", "Spider Silk", "Bony Tail", "Green Mushroom", "Bat Wing", "Mutated Bat Ear", "Small Sapphire", "Emerald Bangle", "Pulverized Ore", "Iron Ore", "Drill Bolt", "Minotaur Horn", "Minotaur Leather", "Small Ruby", "Small Amethyst", "Soul Orb", "Mooh'tah Shell", "Purple Robe", "Poisoned Fang", "Poisonous Slime", "Slime Heart", "Viper Star", "Small Emerald", "Great Health Potion", "Great Mana Potion", "Moohtant Horn", "Cowbell", "Giant Pacifier", "execowtioner mask", "A yellow piece of cloth", "Compass", "Peg Leg", "Eye Patch", "Hook"},
   
    NonStackableContainer = "shopping bag",
    NonStackables = {"Sword Ring", "Glooth Blade", "Focus Cape", "Composite Hornbow", "Lighting Pendant", "Wand of Starstorm", "Hibiscus Dress", "Shockwave Amulet", "Dragonbone Staff", "Crystal Ring", "Rusty Helmet", "Shamanic Mask", "Bonebreaker", "Ogre Klubba", "Butcher's Axe", "War Hammer", "Ogre Choppa", "Dreaded Cleaver", "Wand of Decay", "Necrotic Rod", "Didgeridoo", "Ogre Scepta", "Voodoo Doll", "Tush Shield", "Furry Club", "Wand Of Draconia", "Bonelord Shield", "Spiked Squelcher", "Haunted Blade", "Bonelord Helmet", "Stone Skin Amulet", "Blue Robe", "Terra Mantle", "Red Robe", "Crystal Ring", "Sweet Smelling Bait", "Time Ring", "Knight Armor", "Knight Legs", "Platinum Amulet", "Lighting Headband", "Bonebeast Trophy", "Wand of Inferno", "Wyvern Fang", "Terra Amulet", "Dwarven Ring", "Clay Lump", "Stealth Ring", "Red Gem", "Yellow Gem", "Mino Shield", "Mooh'tah Plate", "Minotaur Trophy", "Cowtana", "Underworld Rod", "Glooth Amulet", "Glooth Club", "Glooth Axe", "Guardian Shield", "Crown Armor", "Crown Legs", "Knight Axe", "Ring of Healing"}
}

while true do
    for i = 0, #Container.GetIndexes() - 1 do
        local c = Container.GetFromIndex(i)
        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
            for s = 0, c:ItemCount() - 1 do
                local item = Item.GetName(c:GetItemData(s).id):titlecase()
                if config.GoldEnabled and table.contains(config.Gold, item) and Self.Cap() > 100 then
                    local destCont = Container.GetByName(config.GoldContainer)
                    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
                    wait(150, 180)
                    break
                elseif table.contains(config.Stackables, item) then
                    local destCont = Container.GetByName(config.StackableContainer)
                    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
                    wait(150, 180)
                    break                         
                elseif table.contains(config.NonStackables, item) then
                    local destCont = Container.GetByName(config.NonStackableContainer)
                    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
                    wait(150, 180)
                    break                 
                end
            end
        end
    end
    wait(50)
end

@Arkilys
Reply

#3
Why do you need a script to do what Looter does?

If you already got some kind of script then just adapt to OTBots.
Reply

#4
|Only Registered members can see download links. | Click here to buy subscription or here to register.

so it can loot rare items only

its for tibiascape

i just wanted to know if there was a done script already but i didnt find searching
Reply

#5
Names doesn't works like you think, even a script like that would not work if the item name doesn't exists inside Bot's db.
Name is just a reference to help users so they don't need to find an item it, but the game-clients doesn't provides item names, so there are missing names for many items, because I must manually name each one in bot's db.
So whenever you use a function with item name, Bot will search for the item id using the name.

On TibiaScape, rare items (rare, legendary, etc.) has the same id than common items. So it will work as you expect.

|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016