View Full Version : [Noob]100% afk Magic Level training. Help...
rockhard
04-08-2016, 08:20 AM
Hi guys,
I am trying to learn Xenobot but it's quite hard when i have little to none experience with this sort of thing.
What i am doing is that i am trying to stand in depot AFK training my magiclevel, but i have no idea how to make the bot withdraw new mana potions and deposit empty flask into depot.
Some nice soul out there that can help me with this?
Lets say that i have depot number 8, 9 and 10 open.
Depot 8 is full of "mana potion"
Depot 9 and 10 is empty and will only be used to deposit empty flasks.
When only 10 mana potions left -> deposit all flasks (If depot #9 is full, use depot #10) -> withdraw 200 mana potions -> wait until empty again.
Hopefully this is a easy scrip to create and won't be too much of a hassle.. :)
Thanks, rockhard
Oscagi
04-08-2016, 08:45 AM
Hi guys,
I am trying to learn Xenobot but it's quite hard when i have little to none experience with this sort of thing.
What i am doing is that i am trying to stand in depot AFK training my magiclevel, but i have no idea how to make the bot withdraw new mana potions and deposit empty flask into depot.
Some nice soul out there that can help me with this?
Lets say that i have depot number 8, 9 and 10 open.
Depot 8 is full of "mana potion"
Depot 9 and 10 is empty and will only be used to deposit empty flasks.
When only 10 mana potions left -> deposit all flasks (If depot #9 is full, use depot #10) -> withdraw 200 mana potions -> wait until empty again.
Hopefully this is a easy scrip to create and won't be too much of a hassle.. :)
Thanks, rockhard
MainBp = 'Blue Backpack'
MANAID = 266
FLASKID = ??? -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 8})
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(7, {MANAID, MainBp, ManaWithdraw})
end
Burmer:Delay(15000)
end)
Try this, if not work, I will do it with Depots Open, this should open the depot when it needs Deposit flask/take manas.
rockhard
04-08-2016, 08:51 AM
Thanks! Will try when i get home from work!
Only have trial on my work computer, so can't get the "self healer" (Casting spells) to work..
Zapmi
04-08-2016, 08:00 PM
Hi, this is my main account. rockhard is my secondary for my other computer.
I get the following error when running the script:
Line#:7
Error: attempt to perform arithmetic on global 'ManaMax' (a nil value).
Oscagi
04-08-2016, 08:07 PM
Hi, this is my main account. rockhard is my secondary for my other computer.
I get the following error when running the script:
Line#:7
Error: attempt to perform arithmetic on global 'ManaMax' (a nil value).
Add the variable ManaMax = 200
My mistake.
Zapmi
04-08-2016, 08:10 PM
MainBp = 'Brocade Backpack'
MANAID = 266
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 8})
local ManaWithdraw = (ManaMax = 200-Self.ItemCount(MANAID))
Self.WithdrawItems(7, {MANAID, MainBp, ManaWithdraw})
end
Burmer:Delay(15000)
end)
Like this?
Zapmi
04-09-2016, 12:08 PM
Still get an error.
Oscagi
04-09-2016, 01:59 PM
Still get an error.
MainBp = 'Brocade Backpack'
MANAID = 266
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 8})
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(7, {MANAID, MainBp, ManaWithdraw})
end
Burmer:Delay(15000)
end)
Use Reply with quote next time, then I will receive a notification.
Zapmi
04-09-2016, 06:48 PM
MainBp = 'Brocade Backpack'
MANAID = 266
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 8})
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(7, {MANAID, MainBp, ManaWithdraw})
end
Burmer:Delay(15000)
end)
Use Reply with quote next time, then I will receive a notification.
Get following error:
20:45 XenoScript Error:
Script: Mana Trainer.lua
Line #: 3965
Chunk: C:\PROGRA~2\XenoBot\Versions\..?Data?XB0022?1.LUA
Error: attempt to compare number with string
This is an error with user-input and should not be reported as a bug with XenoBot.
The error comes when it has to choose depot chests. If i have the chests already open, it closes them and starts over.
Oscagi
04-09-2016, 08:42 PM
Get following error:
20:45 XenoScript Error:
Script: Mana Trainer.lua
Line #: 3965
Chunk: C:\PROGRA~2\XenoBot\Versions\..?Data?XB0022?1.LUA
Error: attempt to compare number with string
This is an error with user-input and should not be reported as a bug with XenoBot.
The error comes when it has to choose depot chests. If i have the chests already open, it closes them and starts over.
MainBp = 'Dragon Backpack'
MANAID = 238
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 0})
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(15000)
end)
Dont worry if it closes the depot windows, the script will open depot when he needs take new manas, also will deposit it(Empty vials).
Now works, I test it.
Zapmi
04-13-2016, 03:08 PM
MainBp = 'Dragon Backpack'
MANAID = 238
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DepositItems({FLASKID, 0})
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(15000)
end)
Dont worry if it closes the depot windows, the script will open depot when he needs take new manas, also will deposit it(Empty vials).
Now works, I test it.
I still can't get it to work... It opens Depot, and deposits empty flasks, but does not withdraw. Is it looking at the wrong place for full mana potions? Is it possible to tell the bot where to deposit and where to find mana pots?
Burner:Delay(15000) - What does that do?
Oscagi
04-13-2016, 06:48 PM
I still can't get it to work... It opens Depot, and deposits empty flasks, but does not withdraw. Is it looking at the wrong place for full mana potions? Is it possible to tell the bot where to deposit and where to find mana pots?
Burner:Delay(15000) - What does that do?
Checks how many potions u have on backpack, if the bot opens a wrong Slot on depot change this:
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
-- ^ Now it opens the second slot on depot, it was my mistake bcs when I test it I changed the slot. Sorry.
Zapmi
04-13-2016, 10:44 PM
Checks how many potions u have on backpack, if the bot opens a wrong Slot on depot change this:
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
-- ^ Now it opens the second slot on depot, it was my mistake bcs when I test it I changed the slot. Sorry.
Thanks, it works!
If i want to modify the script to drop vials on flor instead of depot. How do i do that..? :)
Oscagi
04-13-2016, 11:31 PM
Thanks, it works!
If i want to modify the script to drop vials on flor instead of depot. How do i do that..? :)
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, ITEMID, Ammount)
Change the line of deposit Vials to this ^^
Zapmi
04-13-2016, 11:56 PM
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, ITEMID, Ammount)
Change the line of deposit Vials to this ^^
I get an error :(
01:55 XenoScript Error:
Script: Mana Trainer DOP FLASKS.lua
Line #: 3965
Chunk: C:\PROGRA~2\XenoBot\Versions\..?Data?XB0023?1.LUA
Error: attempt to compare number with string
This is an error with user-input and should not be reported as a bug with XenoBot.
MainBp = 'Blue Backpack'
MANAID = 268
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, ITEMID, Ammount)
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(100)
end)
Oscagi
04-14-2016, 08:25 AM
I get an error :(
01:55 XenoScript Error:
Script: Mana Trainer DOP FLASKS.lua
Line #: 3965
Chunk: C:\PROGRA~2\XenoBot\Versions\..?Data?XB0023?1.LUA
Error: attempt to compare number with string
This is an error with user-input and should not be reported as a bug with XenoBot.
MainBp = 'Blue Backpack'
MANAID = 268
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, ITEMID, Ammount)
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(100)
end)
MainBp = 'Blue Backpack'
MANAID = 268
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, FLASKID, 15)
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(100)
end)
U have to change ITEMID, and ammount for ur FlaskID and how many empty vials to drop.
Now works
Zapmi
05-11-2016, 09:56 PM
MainBp = 'Blue Backpack'
MANAID = 268
ManaMax = 200
FLASKID = 285 -- CHANGE TO EMPTY FLASK ID.
Module.New('ManaBurner', function(Burner)
if Self.ItemCount(MANAID) < 10 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, FLASKID, 15)
local ManaWithdraw = (ManaMax-Self.ItemCount(MANAID))
Self.WithdrawItems(1, {MANAID, MainBp, ManaWithdraw})
end
Burner:Delay(100)
end)
U have to change ITEMID, and ammount for ur FlaskID and how many empty vials to drop.
Now works
Hello again!
I am very happy with the script you made me last time! Works like a charm :D
Is it easy to modify it so it pickups pots from a backpack underneath me? And have several backpacks within that backpack?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.