if windowcount() ~= 3 then
gotolabel($wptid-1)
end
setsetting('Cavebot/WalkThroughPlayers', 'no')
closewindows()
openitem(itemname($back.id), 'back')
waitping()
openitem(lootbp, itemname($back.id))
waitping()
openitem(lootbp, lootbp) --if you have more than 1 loot bp
waitping() --if you have more than 1 loot bp
resizewindows()
waitping()
if windowcount(lootbp) ~= 1 then
gotolabel($wptid-1)
end
is not the required structure you cant put structures into each other if you ant to do soemthing like that then you do :
local mainbp = itemname($back.id)
openitem(mainbp, "back", true)
what i did there is save the actual name of the number id of the bp into a variable called mainbp you cann call variables but not structures between eachother thats just messy code man, and as your coding it, you will open the same backpack id for everything so you got tons of bps of the same color, or your just doing it wrong
@Wesker, he has all variables declared.
He's using a script of mine that I've been testing for 2 months already and had no problems with it.
I personally checked the way he was configuring the settings and I can assure you everything is correct. And more, the settings are exactly the same I use on my chars.
I also changed the way things were declared, tested it myself and still the script wouldn't work over there for @mariossbento.
This is the second time, however, that somebody had issues with bp opener and depositer actions.
If you check my old free scripting thread, on this and the following posts, you'll see that @Westerngamers also had this problem.
In the other hand, not only me, but other people are using my scripts and they work with no problems at all.
I sincerely would like to hear something further on this. Perhaps @Lucas Terra could also some info about it.
This can now be called a recurrent issue and it's stopping people from taking advantage of the bot's whole functionality.
Thanks!
06-06-2014, 10:58 PM
Lucas Terra
@Wesker: you are wrong. You don't have to store the value in another variable in order to be able to call it inside a function.
Back to the thread. @mariossbento:
Would you mind telling me what BP colors you are using? And the values of the variables lootbp and goldbp.
Also, go to Help -> Debug Console, enable everything there... Run the script you posted and paste here the contents of the Debug Console.
06-06-2014, 11:00 PM
Lucas Terra
@pvzin, can you post the full script? Including where you declare the values of the variables.
06-06-2014, 11:02 PM
pvzin
Quote:
Originally Posted by Lucas Terra
@pvzin, can you post the full script? Including where you declare the values of the variables.
They can be chosen on the cavebot/settings and they are declared on a persistent hotkey called 'Settings'.
-- Script removed for now. Lucas can ask for it again if it's needed! --
06-06-2014, 11:07 PM
Lucas Terra
Yeah. Everything should be all right. I'll need his Debug Console report to see what could be wrong.
06-06-2014, 11:08 PM
pvzin
Quote:
Originally Posted by Lucas Terra
Yeah. Everything should be all right. I'll need his Debug Console report to see what could be wrong.
I'll ask him to do that and post the results here.