PDA

View Full Version : How to setup backpacks?



sakuspg
07-08-2014, 11:21 AM
Hello.

I dont know how to setup backpacks, cuz i am new user of xenobot.

Script code :



---------------------------------------------------------------
-- Backpack 1 ( Main )
-- Backpack 2 ( Products )
-- Backpack 3 ( Rares )
-- Backpack 4 ( Gold )

-- Depot Backpack 1 ( Products )
-- Depot Backpack 2 ( Rares )
---------------------------------------------------------------

-- Potion Settings

bringManas = 180 -- Manas to bring
leaveManas = 79 -- Manas to leave
ManaID = 237 -- Mana ID
ManaPrice = 80 -- Mana Price


-- Backpack Settings

goldBP = 'Brocade Backpack' -- Backpack 4


-- Script Settings


U see, for example for GOLD is definied - brocade backpack
how to define other backpacks?
Cuz on waypoint "Bp open" bot stop, cuz it cant open it ( no definied or so?)

ppgab
07-08-2014, 01:25 PM
sakuspg just edit where it says brocade backpack and type your gold bp name there

sakuspg
07-08-2014, 07:28 PM
I know it..
But how to define NOT gold backpack, but others? For rares, supplies etc...

Prewz
07-08-2014, 07:31 PM
Post the whole lua file and we can help you! :) Looks like someone missed to put the other backpacks in the setting aswell.

raiQi
07-08-2014, 08:00 PM
I know it..
But how to define NOT gold backpack, but others? For rares, supplies etc...
The reason why you would want to define backpacks in the lua is for resetting and opening backpacks. If you just want the bot to loot into specific backpacks then you don't need to specify them in the lua.

If you could post the entire lua file it would be easier to help you. It would also be easier to help you if you would tell us if you are making your own script or editing one made by someone else.

If you are editing a script made by someone else then you can just scroll down to the label "Bp open" in your lua file and check what the person who made it used there and then just define them in the top of your lua file.
If it looks something like this:

elseif (labelName == "Bp open") then
setWalkerEnabled(false)
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({LootBp, true}, {StackBp, true}, {GoldBp, true})
setWalkerEnabled(true)

Then you need to define your main backpack, your loot backpack, your stackables backpack and your gold backpack or it won't know what backpacks to open.
Just do something along these lines:

local MainBp = "Red Backpack"
local LootBp = "Beach backpack"
local StackBp = "Backpack"
local GoldBp = "Brocade backpack"