XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 32

Thread: How to make full afk script.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    pudgybot's Avatar
    Join Date
    Feb 2014
    Posts
    54
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hey @robbinroxxor !! If you are asking about leaving hunting area when you have 30 or less mana potions, then:

    1: add a "local MinManaPot = 30" at the top of your lua (without quotes). This declares your minimum mana pots.
    2: add a "local ManaPotID = 268" at the top with it as well (without quotes) . This declares what mana potion you are using. This example is a normal mana potion!
    3: In your check label (the label used to decide if your leaving) add something like this:

    HTML Code:
     if ((Self.ItemCount(ManaPotID) <= MinManaPot)) then
    			gotoLabel("Leave")
    	                          end
    This will check if you have equal to or less than the mana pots you want, if you don't have enough, it will skip to Leave label in your script!


    Hope this helped! Have a wonderful day!

    These specific clips of code were taken from Mage Peninsula -2 by @Biesje Team (Gave wrong props! Got my scripts mixed up sorry.)
    Last edited by pudgybot; 03-01-2014 at 05:32 AM. Reason: wrong props

Posting Permissions

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