Log in

View Full Version : New Way to open Backpacks



desche188
09-27-2012, 09:23 AM
Everyone Knows it is a bitch getting Backpack IDs for the lua to re-open the backpacks with @Forgee (http://forums.xenobot.net/member.php?u=3307) lua functions

i have made a simple way to use the IDs Such as using the name of the backpack

E.G. Golden Backpack : ID 2871

has been made to be like

Backpack1 = Golden

if you would like this reply to this post and ill update with an attachment

Jakob Miller
09-27-2012, 09:55 AM
I used this method for quiet some time, but since they updated the backpack reset, I changed it back since it works just as good both. But you have to set the ID's on your method, which makes more work!

padj
09-27-2012, 10:25 AM
looks good. Always nice to have alternatives for folk.

desche188
09-27-2012, 12:36 PM
Added the alternative backpack open for people to use :D

Spectrus
09-27-2012, 08:27 PM
Seems like a waste of memory when you can just use

Item.GetID("Yellow Backpack"), etc.

Infernal Bolt
09-27-2012, 09:20 PM
all my scripts use item names to open backpacks.
It's as simple as this:



local GoldBP = "Red Backpack"
local LootBP = "Beach Backpack"

elseif (labelName == "bpOpen") then
setWalkerEnabled(false)
closeBackpacks()
wait(500)
openBackpacks({Item.GetID(GoldBP), 0}, {Item.GetID(LootBP), 0})
wait(2000)
setWalkerEnabled(true)