XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: X strong mana potions LOG OUT.

  1. #11

    Join Date
    Nov 2014
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Zingron View Post
    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 :>

  2. #12
    Zingron's Avatar
    Join Date
    Sep 2013
    Location
    United Kingdom
    Posts
    130
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    @Eslu

    Code:
    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)

Posting Permissions

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