03-02-2020, 08:52 PM
Hello,
Can you make a script that will pick up items from ground to open backpack?
Can you make a script that will pick up items from ground to open backpack?
|
Pickup Items
|
|
03-02-2020, 08:52 PM
Hello,
Can you make a script that will pick up items from ground to open backpack?
03-02-2020, 11:21 PM
Hellos.
It's possible using moveitems(), but you can use Tools->Pickup Items.
03-03-2020, 05:56 PM
Thanks alot
03-03-2020, 11:46 PM
@Arkilys I've been trying to move the backpack on "back" slot to an specif xyz tile but no success.
Could you point me out the solution? Everything else is working perfectly.
03-04-2020, 12:02 AM
@Arkilys thank you that worked. However I have a strange issue.
The script works fine, but after a while I get this error on console. Then I restart bot and it works fine again. 15:52:25 - Core:Lua:ExecuteScript:DoString:Cavebot/Action:#changebps: 1: chunk has too many syntax levelsThis is the script I use in cavebot. The goal is to drop runned BP in specif tile and then grab blank bp from other tile. local UHX = ...
03-04-2020, 08:48 PM
Hello.
"chunk has too many syntax levels" is a LUA error. This errors is raised on many situations like too many operations, too many nested control statements (many or infinite loops, if statements, ...), very long string concatenation, etc. Some of your code used in Actions probably has a bug or is a bad code. I recommend you to check line by line... It's kinda impossible to me to say what's exactly wrong. Btw... local UHX = ...
03-04-2020, 09:07 PM
It might be a bad code indeed, but it's weird because it works a few times than I have to restart it. I'll try your code and if it doesn't work again I'll try a different approach.
Thank you
@Arkilys I don't know what else to do.
What I want to do is to have a script to make runes and when BP is full it goes inside house, change BPs and go back to rune. All I'm doing is using the Runemaker system and having it to enable cavebot when no more blank runes. In the cavebot I just have this single Action with the above script I sent. It works perfectly fine for the first 2-3 BPs, but after that I get the chunk error and there's absolutely nothing I can do to make it work again without restarting the bot. I have changed the script to work in different ways but they all end up with the same error and honestly I have no idea what else I can do... It looks like some sort of memory leaking error or whatever but it's just bugged. I don't understand why it works fine for a few times and then... chunk error. The only script I'm using is the one I put above. |