XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 10

Thread: Easy Mana Trainer - V1.0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Join Date
    Feb 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Easy Mana Trainer - V1.0

    Hello guys,

    I would like to share my own script for mana training. I've searched a lot before create my own, but did not find anything easily.

    My script works on all depots, and low cap is necessary, as far it takes the pots from DP. All info is below, and also inside .lua file. This is my first script share, so I'm sorry if there's a better script already posted.

    Finally, we accept suggestions for future updates.

    Code:
    --[[
     _____ _    _       _____           _   
    /  ___| |  (_)     /  __ \         | |  
    \ `--.| | ___ _ __ | /  \/ __ _ ___| |_ 
     `--. \ |/ / | '_ \| |    / _` / __| __|
    /\__/ /   <| | | | | \__/\ (_| \__ \ |_ 
    \____/|_|\_\_|_| |_|\____/\__,_|___/\__|
                                   Scripting
    
    === V1.0 ===
    - First Revision
    
    
    === FUNCTIONS ===
    - Auto deposit of empty flasks on Depot Box II
    - Auto pick pots from Depot Box I
    
    
    === OFICIAL THREAD ===
    
    http://forums.xenobot.net/showthread...674#post473674
    
    
    === FAQ ===
    - To correct function of this script, 'Walker' must be enabled and configured like this:
    http://ap.imagensbrasil.org/image/FZe53
    
    - Use 'Self Healer' to correct configure spells and pots. Suggestion on image below:
    http://ap.imagensbrasil.org/image/FZwJH
    
    - Configure the mana pots to be used with formula (Total Mana-250) to prevent possible waste of pots.
    
    
    === SETUP ===
    - Go to any DP you want and be sure you have cap for at least 100 Strong Mana Pots, or the pots you've configured.
    - Put correct labels on Walker.
    - Start the script and run Walker.
    
    ]]--
    ------ LOCAL SETTINGS ------
    
    local Welcome = 0
    local MinPots = 100
    
    ------ BACKPACK SETTINGS (FUTURE UPDATES) ------
    
    local PotBP = "Jewelled Backpack"
    
    ------ IDS ------ (USE THIS IF YOU DON'T KNOW THE IDS)
    
    -- local ManaName = "Strong Mana Potion"
    -- local ManaID = Item.GetID(ManaName)
    
    ------ IDS ------
    local ManaID = 237
    local FlaskID = 283
    
    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    
    ------ STARTING SCRIPT ------
    function onWalkerSelectLabel(labelName)
    	if (labelName == "Start") then
    		if (Welcome == 0) then
    			print("Easy Mana Trainer - Script by SkinCast to Xenobot - V1.0")
    			Welcome = 1
    			wait(10000)
    		end
    
    ------ CHECK CONDITIONS ------
    		Walker.ConditionalGoto((Self.ItemCount(ManaID) < MinPots), "Get", "Deposit")
    
    ------ GETTING FROM DEPOT BOX I ------
    elseif (labelName == "Get") then
    		if (Self.ItemCount(ManaID) < MinPots) then
    			print("REFILLING POTS")
    			Walker.Stop()
    			Self.WithdrawItems(0, {(ManaID), 0, 100})
    			Walker.Start()
    		else
    			Walker.ConditionalGoto((0 == 0), "Deposit", "Deposit")
    		end
    
    ------ DEPOSITING EMPTY FLASKS ON DEPOT BOX I ------
    elseif (labelName == "Deposit") then
    		if (Self.ItemCount(FlaskID) >= 100) then
    			Walker.Stop()
    			print("DEPOSIT OF FLASKS")
    			Self.DepositItems({(FlaskID), 1})
    			Walker.Start()
    		else
    			print("FULL OF POTS - CONTINUING TRAINING")
    			Walker.ConditionalGoto((0 == 0), "Checker", "Checker")
    		end
    
    	end
    return
    end

    Yours,
    SkinCast
    Attached Files Attached Files
    Last edited by SkinCast; 02-19-2016 at 05:40 PM. Reason: Added code

Posting Permissions

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