View Full Version : My reopen bps is broken !!!
imperator93
12-28-2012, 02:59 AM
After update xeno i have problems with scripts! I have error in bpreset he try open bps but he fails! What to do with this problem ?
DarkstaR
12-28-2012, 03:26 AM
Stop using Forgee.lua bp reset (or update it) and use the native one.
imperator93
12-28-2012, 05:04 PM
i still dont know what to do :s i need update lua file or update forgee.lua or what ?!
Zythox
12-28-2012, 06:03 PM
This one should work:
GoldBP = "Orange Backpack"
LootBP= "Purple Backpack"
--------------------------
setWalkerEnabled(false)
Self.CloseContainers()
repeat
wait(900)
until (Self.UseItemFromEquipment("backpack") > 0)
wait (1000)
Container.GetFirst():OpenChildren(GoldBP, LootBP)
setWalkerEnabled(true)
imperator93
12-28-2012, 06:26 PM
ok this work but i should have like i was haveing last time ? each script bp reset each all settings ? where it paste to this work good ?
Avani
12-28-2012, 06:26 PM
MainBp = "Blue Backpack"
LootBp = "Red Backpack"
GoldBp = "Yellow Backpack"
------------------------
elseif (labelName == "ResetBP") then
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack():OpenChildren(GoldBp, LootBp)
Container.Minimize(MainBp, GoldBp, LootBp)
Walker.Start()
imperator93
12-28-2012, 06:27 PM
and this script u gave me dont use LABELS :\
imperator93
12-28-2012, 06:28 PM
;o this can help thanks alot !
imperator93
12-28-2012, 06:29 PM
paste it to "backpack reset" or "motherscript" ? :P
Zythox
12-28-2012, 06:30 PM
If u post ur Lua here, I'll can fix it into it, if u want ofc
imperator93
12-28-2012, 06:35 PM
dofile("Forgee.lua")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "BackpackReset") then
setWalkerEnabled(false)
resetBackpacks()
setWalkerEnabled(true)
end
end
imperator93
12-28-2012, 06:37 PM
MainBp = "Blue Backpack"
LootBp = "Red Backpack"
GoldBp = "Yellow Backpack"
------------------------
elseif (labelName == "ResetBP") then
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack():OpenChildren(GoldBp, LootBp)
Container.Minimize(MainBp, GoldBp, LootBp)
Walker.Start()
Zythox
12-28-2012, 06:42 PM
This should work:
MainBp = "Blue Backpack"
LootBp = "Red Backpack"
GoldBp = "Yellow Backpack"
-------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "BackpackReset") then
Walker.Stop()
Self.OpenMainBackpack():OpenChildren(GoldBp, LootBp)
Walker.Start()
end
end
imperator93
12-28-2012, 06:43 PM
thanks man ;d !!! :)
Zythox
12-28-2012, 06:44 PM
U're welcome :)
imperator93
12-28-2012, 06:54 PM
19:54 XenoScript Error:
Script: BackpackReset?1?.lua
Line #: 7
Chunk: ...Settings\Komputer1\Moje dokumenty?XenoBot?Scripts?BackpackReset?1?.lua
Error: '<eof>' expected near 'elseif'
This is an error with user-input and should not be reported as a bug with XenoBot.
ERROR !!! ;/
imperator93
12-28-2012, 07:01 PM
somethink is wrong in labelname ;(
Zythox
12-28-2012, 07:04 PM
It's working for me, can u post the whole Lua ?
imperator93
12-28-2012, 07:16 PM
ok i do it now its works it look like this :
MainBp = "Backpack o Holding"
LootBp = "Moon Backpack"
GoldBp = "Backpack"
-------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "ReopenBps") then
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack():OpenChildren(GoldBp, LootBp)
Container.Minimize(MainBp, GoldBp, LootBp)
Walker.Start()
end
end
thanks ^^
Zythox
12-28-2012, 07:18 PM
ok i do it now its works it look like this :
MainBp = "Backpack o Holding"
LootBp = "Moon Backpack"
GoldBp = "Backpack"
-------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "ReopenBps") then
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack():OpenChildren(GoldBp, LootBp)
Container.Minimize(MainBp, GoldBp, LootBp)
Walker.Start()
end
end
thanks ^^
U're welcome again :), next time when u post a Lua try to wrap it in a code or PHP-code, its easier to see :P
imperator93
12-28-2012, 07:22 PM
hmm how i can do this ? ;D
DarkstaR
12-28-2012, 07:23 PM
[.code][/code] around your code (without the .)
imperator93
12-28-2012, 07:24 PM
oks thanks ^^
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.