Purus Pasta Client [W14 COMPATIBLE]

Forum for alternative clients, mods & discussions on the same.
Thedrah
Posts: 943
Joined: Fri Apr 08, 2011 2:20 am
Location: behind you

Re: Purus Pasta Client [Now with botting API!]

Post by Thedrah »

could you add auto log in? or to automatically load a script on run of the client
  ▲
▲ ▲
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Purus Pasta Client [Now with botting API!]

Post by shubla »

Thedrah wrote:could you add auto log in?
What does this mean?
You want it to automatically select an account on startup?
I dont think that clicking the button on left is too tedious thing to do when logging on.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
Thedrah
Posts: 943
Joined: Fri Apr 08, 2011 2:20 am
Location: behind you

Re: Purus Pasta Client [Now with botting API!]

Post by Thedrah »

hmm true, i guess i'm just lazy xD
  ▲
▲ ▲
danklord
Posts: 9
Joined: Mon Jul 28, 2014 12:19 pm

Re: Purus Pasta Client [Now with botting API!]

Post by danklord »

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.
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Purus Pasta Client [Now with botting API!]

Post by shubla »

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
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
danklord
Posts: 9
Joined: Mon Jul 28, 2014 12:19 pm

Re: Purus Pasta Client [Now with botting API!]

Post by danklord »

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);
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Purus Pasta Client [Now with botting API!]

Post by shubla »

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);
You can use doClick

Code: Select all

PBot.doClick(gob, 1, 0);
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
danklord
Posts: 9
Joined: Mon Jul 28, 2014 12:19 pm

Re: Purus Pasta Client [Now with botting API!]

Post by danklord »

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.
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Purus Pasta Client [Now with botting API!]

Post by shubla »

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.
Would be interesting to know what kind of stuff is possible to do with API.
And what is not, so it could be made possible.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
danklord
Posts: 9
Joined: Mon Jul 28, 2014 12:19 pm

Re: Purus Pasta Client [Now with botting API!]

Post by danklord »

shubla wrote:
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.
Would be interesting to know what kind of stuff is possible to do with API.
And what is not, so it could be made possible.
So far seems with nashorn and a bit of time you can do anything really, long as you have class instances to work with can call anything from the haven client directly pretty easily.

For example I was messing with this to get details off items outside the PBot api calls(like getname getid ect) which uses the WItem Class passed from the api -> GItem Class -> Quality Class -> Quality Value.

Code: Select all

    var containers = ["branch"];
    var items = PBot.getInventoryItemsByNames(PBot.playerInventory(), containers);
    for(var i=0; i<items.length; i++) {
        PBot.sysMsg(items[i].item.getname(), 255, 102, 0); 
        PBot.sysMsg(items[i].item.quality().q, 255, 102, 0);  
        PBot.sysMsg("------", 255, 102, 0); 
    }    
I'll post anything else as I figure other stuff out, but its a pretty cool system and leaves the door open to alot of stuff outside of the api if you have the time to figure it out.

Return to “The Wizards' Tower”