View Full Version : X strong mana potions LOG OUT.
meetstr1
08-04-2016, 06:38 PM
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.
Zingron
08-04-2016, 08:02 PM
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.
meetstr1
08-04-2016, 08:11 PM
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?
meetstr1
08-04-2016, 08:47 PM
The walking is stop automatically, someone can help?
Zingron
08-04-2016, 10:20 PM
try it now
meetstr1
08-05-2016, 06:32 PM
try ? You dont change anything;p so what i need to try? Walker is stop when i running this script
Zingron
08-05-2016, 07:02 PM
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.
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)
meetstr1
08-05-2016, 07:32 PM
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.
Zingron
08-05-2016, 07:59 PM
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.
meetstr1
08-11-2016, 02:22 PM
Man yes;d i forgot about the backpack, thank you!
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.
Zingron can you add crystaline arrows to that script? would be greatful :>
Zingron
12-08-2016, 12:18 PM
Eslu
local potion = "Strong Mana Potion" -- name of potion
local amountPotion = 30 -- amount to trigger logout function
local ammo = "Crystaline Arrow" -- name of ammunition
local amountAmount = 500 -- amount to trigger logout function
Module.New('PotionCheck', function(safeXlog)
local potid = Item.GetID(potion)
local ammoid = Item.GetID(ammo)
if (Self.ItemCount(potid) < amountPotion) or (Self.ItemCount(ammoid) < amountAmount) then
if Self.isInFight() then
Walker.Stop()
wait(4000)
else
wait(500)
os.exit()
end
end
safeXlog:Delay(5000)
end)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.