XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: X strong mana potions LOG OUT.

  1. #1

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    X strong mana potions LOG OUT.

    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.

  2. #2
    Zingron's Avatar
    Join Date
    Sep 2013
    Location
    United Kingdom
    Posts
    130
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    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.
    Last edited by Zingron; 08-04-2016 at 10:19 PM.

  3. #3

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  4. #4

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The walking is stop automatically, someone can help?

  5. #5
    Zingron's Avatar
    Join Date
    Sep 2013
    Location
    United Kingdom
    Posts
    130
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    try it now

  6. #6

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try ? You dont change anything;p so what i need to try? Walker is stop when i running this script

  7. #7
    Zingron's Avatar
    Join Date
    Sep 2013
    Location
    United Kingdom
    Posts
    130
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    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)

  8. #8

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  9. #9
    Zingron's Avatar
    Join Date
    Sep 2013
    Location
    United Kingdom
    Posts
    130
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    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.

  10. #10

    Join Date
    Mar 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Man yes;d i forgot about the backpack, thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •