PDA

View Full Version : Easy Mana Trainer - V1.0



SkinCast
02-18-2016, 09:28 AM
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.



--[[
_____ _ _ _____ _
/ ___| | (_) / __ \ | |
\ `--.| | ___ _ __ | / \/ __ _ ___| |_
`--. \ |/ / | '_ \| | / _` / __| __|
/\__/ / <| | | | | \__/\ (_| \__ \ |_
\____/|_|\_\_|_| |_|\____/\__,_|___/\__|
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.php?41245-Easy-Mana-Trainer-V1-0&p=473674#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

nacho_125
02-19-2016, 09:48 AM
is this safe?

grandi
02-28-2016, 01:49 PM
I have tested it so far with gmps on a mage. It works pretty good.

But after a few times resupply it browses a field near dp and cant handle the refill and deposit anymore.

Would be awesome to fix that.

Greets

nixez
03-05-2016, 02:59 AM
Just tested it and it's working fine till now

buyer
03-05-2016, 02:13 PM
works good

Freegucci
03-06-2016, 01:52 PM
I have spotted an error, if you do not open your main bp first the bot withdraws all the pots from dp1 to dp17. Easy fix, but something you may wannt to put in FAQ

SkinCast
03-06-2016, 05:33 PM
I have spotted an error, if you do not open your main bp first the bot withdraws all the pots from dp1 to dp17. Easy fix, but something you may wannt to put in FAQ

Thanks for supporting. Already corrected, and next patch will be released soon.

iquessso
04-13-2016, 11:36 AM
noob question but how do i get to work ? :o

duno how to add starter: get: deposit:

mauasex
04-29-2016, 05:16 PM
_____ _ _ _____ _
/ ___| | (_) / __ \ | |
\ `--.| | ___ _ __ | / \/ __ _ ___| |_
`--. \ |/ / | '_ \| | / _` / __| __|
/\__/ / <| | | | | \__/\ (_| \__ \ |_
\____/|_|\_\_|_| |_|\____/\__,_|___/\__|
Scripting



Dear friend.

Script working fine. In each depot.

But I need little help...beacouse of noob "reporting" my afk mana burner i try to set this in "Guild house" where have also 1 depot stack.

My problem is this script dont open deposit cheest in Guild house...
I tried to set walker on "Use lewer south before /start/get/deposit" was fine but only till second refil.

Next time come on "BROWSE FIELD"
And walker stuck.
I see that when he Get pots that leave depo still open till he deposit empty flask than script close depo and here is my problem.
Can u help me to set the Depot stay open for refil ? Its possible ?

mauasex
04-29-2016, 05:24 PM
noob question but how do i get to work ? :o

duno how to add starter: get: deposit:

EASY...

So you open "Walker" window and all you click on this window
-right mouse button (BY DEPOT CHEEST)
- add stand
- add label - name (Start)
- add stand
- add label - name (Get)
- add label - name (Deposit)
- add stand -

When you script "Easy mana burner" is in right place you click right on your character
Chose scripter run "easy mana burner" and put walker on.
Rest goes alone you can go sleep and morning your m lvl is 100 :D GL