I looking for script like this.
If i have 30 strong mana potion
Kill monsters, stop Walking, Log out.
Someone have script like this?
Thank you for your answers.
Printable View
I looking for script like this.
If i have 30 strong mana potion
Kill monsters, stop Walking, Log out.
Someone have script like this?
Thank you for your answers.
Code:local potion = "Strong Mana Potion" -- name of potion
local amount = 30 -- amount to trigger logout function
Module.New('PotionCheck', function(safeXlog)
local itemid = Item.GetID(potion)
if Self.ItemCount(itemid) < amount then
if Self.isInFight() then
Walker.Stop()
wait(4000)
else
wait(500)
os.exit()
end
end
safeXlog:Delay(5000)
end)
If you have less than 30 strong mana potions then it pauses the walker and waits for you to lose your battle sign before xlogging.
Its looking good but when i running this script, Targeting its ok. Looter is ok, walker is stop for all the time. Bot no move, maybe you know what is the problem?
The walking is stop automatically, someone can help?
try it now
try ? You dont change anything;p so what i need to try? Walker is stop when i running this script
I edited my original post the first time you said it wasn't working. That's why I said try it again.
Here it is again to avoid confusion.
Code:local potion = "Strong Mana Potion" -- name of potion
local amount = 30 -- amount to trigger logout function
Module.New('PotionCheck', function(safeXlog)
local itemid = Item.GetID(potion)
if Self.ItemCount(itemid) < amount then
if Self.isInFight() then
Walker.Stop()
wait(4000)
else
wait(500)
os.exit()
end
end
safeXlog:Delay(5000)
end)
I know you want to help me, thank you. But man really if you play tibia just try this script, its not working again. I dont know what is the problem i can Execute this script its OK but 10 seconds later walker is stop but i have 700strong mana potions in my backpack. Can you check this for me? I would be grateful.
It works fine for me. Are your backpacks closed at any point during your bot session? That could trick the script I gave you into thinking it has 0 Strong Mana Potions.
Man yes;d i forgot about the backpack, thank you!