shubla wrote:danklord wrote:Not sure how to make a pile with an item from your inventory, seems what ever I do after I pick the item up from the inventory none of the default commands can turn it into a pile and place it even tried right clicking my self and having it place it to no avail if you have any advice before I dig into the haven code for it.
I guess I'll ad some bad functionality to make stockpiles.
In the new version that I will release soon you can use PBot.makePile() to make pile from an object in the cursor (of course, assuming that it can be turned into a stockpile)
And to place the item, you use PBot.placeThing(x, y) with x and y being offset from the players current location that you want to place the stockpile. I should probably look into how coordinates are handled in PBot and make it more clear, coordinates are a mess currently. But with the two functions mentioned above, you can in theory place stockpiles.
Purus Pasta version 3.6.0 Released!!
- New features to PBot API, related to stockpile placement
- Latest merges from Amber & Default client
Works great, only suggestion could use a placeAll(shift modifier) to go along with placeThing or at least a way to make placeThing use the shift modifier to dump all it can into the pile without needing to search for the pile after you place it to put the rest in.