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
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