Thedrah wrote:could you add auto log in?
PBot.doAct("mine");
danklord wrote:Not sure if I'm doing something wrong with the api, but I cannot get an action to select using the below snippet.
- Code: Select all
PBot.doAct("mine");
This for example won't start a mine action though the rest of the bot before and after it run fine causes no errors, not sure if I'm just misunderstanding how to call this function or if there is some trick to using it or just a bug. Looking at the api leads me to believe you just pass it a string with one of the example actions you provided.
shubla wrote:danklord wrote:Not sure if I'm doing something wrong with the api, but I cannot get an action to select using the below snippet.
- Code: Select all
PBot.doAct("mine");
This for example won't start a mine action though the rest of the bot before and after it run fine causes no errors, not sure if I'm just misunderstanding how to call this function or if there is some trick to using it or just a bug. Looking at the api leads me to believe you just pass it a string with one of the example actions you provided.
There was indeed a small issue with it, which is fixed now. Will soon release the fix.
--------------
Purus pasta version 3.5.1 released!
- Latest merges from Amber & Default client
- Fix to doAct in PBot API
PBot.doAct("carry");
var holdGobCoords = PBot.getCoords(selectedGob);
PBot.pfLeftClick(holdGobCoords.x, holdGobCoords.y);
danklord wrote:shubla wrote:danklord wrote:Not sure if I'm doing something wrong with the api, but I cannot get an action to select using the below snippet.
- Code: Select all
PBot.doAct("mine");
This for example won't start a mine action though the rest of the bot before and after it run fine causes no errors, not sure if I'm just misunderstanding how to call this function or if there is some trick to using it or just a bug. Looking at the api leads me to believe you just pass it a string with one of the example actions you provided.
There was indeed a small issue with it, which is fixed now. Will soon release the fix.
--------------
Purus pasta version 3.5.1 released!
- Latest merges from Amber & Default client
- Fix to doAct in PBot API
Sweet thanks, works great now! Could use a left click gob command like the right click one on the taking suggestions front if possible. Can't find a way to use lift to pick up items, tried below and a few other random things.
- Code: Select all
PBot.doAct("carry");
var holdGobCoords = PBot.getCoords(selectedGob);
PBot.pfLeftClick(holdGobCoords.x, holdGobCoords.y);
PBot.doClick(gob, 1, 0);
shubla wrote:
- Code: Select all
PBot.doClick(gob, 1, 0);
danklord wrote:shubla wrote:
- Code: Select all
PBot.doClick(gob, 1, 0);
Don't know how I missed that, thanks for the release though has been a blast writing stuff for it.
Users browsing this forum: No registered users and 2 guests