-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
Yea I'm in the process of making an in game console but for now we use the debug console
-
sfs0014
- Posts: 3
- Joined: Sat Apr 27, 2013 9:46 pm
Re: Prime - Amber Tweaks and Scripting API
Sorry, Brand New to Scripting.
What is scripting exactly, Botting?
How is/can it be used in conjunction with a 'Main Character'?
Will it work with World 10?
What is scripting exactly, Botting?
How is/can it be used in conjunction with a 'Main Character'?
Will it work with World 10?
-
gigafunk
- Posts: 23
- Joined: Sat Apr 21, 2012 10:28 pm
Re: Prime - Amber Tweaks and Scripting API
Thanks for the info. And thanks so much Paradoxs. Thanks iamahh.
sfs0014
1. Scripting is making a list of actions you want something to perform. In this case, you can make your character,main or alt, perform actions based on your list, or script.
2. different people call it different things. You make "bots" ie "robots" with very very advanced scripts. But some scripts, like the ones built into purus pasta client, are more tools than "bot".
if you want to learn how to do it you will have to go watch some javascript tutorial videos and/or apps. theres tons of great entry level javascript stuff to learn with out there.
sfs0014
1. Scripting is making a list of actions you want something to perform. In this case, you can make your character,main or alt, perform actions based on your list, or script.
2. different people call it different things. You make "bots" ie "robots" with very very advanced scripts. But some scripts, like the ones built into purus pasta client, are more tools than "bot".
if you want to learn how to do it you will have to go watch some javascript tutorial videos and/or apps. theres tons of great entry level javascript stuff to learn with out there.
-
iamahh
- Posts: 1806
- Joined: Sat Dec 12, 2015 8:23 pm
Re: Prime - Amber Tweaks and Scripting API
will it be possible to click buttons at hotkey bars?
and set Ids and attributes to objects like stockpiles?
and set Ids and attributes to objects like stockpiles?
Last edited by iamahh on Sat Jan 07, 2017 2:14 pm, edited 1 time in total.
-
sfs0014
- Posts: 3
- Joined: Sat Apr 27, 2013 9:46 pm
Re: Prime - Amber Tweaks and Scripting API
Great, Thank you so much for the Reply!gigafunk wrote: sfs0014
1. Scripting is making a list of actions you want something to perform. In this case, you can make your character,main or alt, perform actions based on your list, or script.
2. different people call it different things. You make "bots" ie "robots" with very very advanced scripts. But some scripts, like the ones built into purus pasta client, are more tools than "bot".
if you want to learn how to do it you will have to go watch some javascript tutorial videos and/or apps. theres tons of great entry level javascript stuff to learn with out there.
God Bless.
-SFS
-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
Added to the list of features i'm aiming firiamahh wrote:will it be possible to click buttons at hotkey bars?
I have an idea for letting you set names to objects if thats what you mean, but I wont do that until Iv finished redoing ambers settings menuiamahh wrote:set Ids and attributes to objects like stockpiles?
Amber stores everything in registry and I want to move everything to a file so that i can add more settings and even begin to go into bot based settings and custom settings for individual bots or weird things like that, and storing those in the registry would be the kind of oversight I wont allow myself to be apart of.
-
gigafunk
- Posts: 23
- Joined: Sat Apr 21, 2012 10:28 pm
Re: Prime - Amber Tweaks and Scripting API
I read through the api, is there a way to heck how many open inv slots one has? I am trying to make a mussel picker that stops with one slot open. the built in mussel picker to come clients keeps picking till your hand is full, and you lose any curios in the water that pop up on the last one, and you need to drop the mussel in the water to move.
i see from the leveler sample script i can ask is the characters hands are empty with !hashand() , but i couldnt find anything that looked like it checked inv.
is a blank inv spot got an item name so i do something with
if (hasItems(Inventory.Player, "EmptySpaceItemName") > 1){
do whatever}
Ill make do without it, maybe i ccan combine some logic to figure out if i have a space left.
i see from the leveler sample script i can ask is the characters hands are empty with !hashand() , but i couldnt find anything that looked like it checked inv.
is a blank inv spot got an item name so i do something with
if (hasItems(Inventory.Player, "EmptySpaceItemName") > 1){
do whatever}
Ill make do without it, maybe i ccan combine some logic to figure out if i have a space left.
-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
not yet, its on my tiny list of stuff to add for Version 0.4 you'll see the ability soongigafunk wrote:I read through the api, is there a way to heck how many open inv slots one has? I am trying to make a mussel picker that stops with one slot open. the built in mussel picker to come clients keeps picking till your hand is full, and you lose any curios in the water that pop up on the last one, and you need to drop the mussel in the water to move.
i see from the leveler sample script i can ask is the characters hands are empty with !hashand() , but i couldnt find anything that looked like it checked inv.
is a blank inv spot got an item name so i do something with
if (hasItems(Inventory.Player, "EmptySpaceItemName") > 1){
do whatever}
Ill make do without it, maybe i ccan combine some logic to figure out if i have a space left.
Last edited by Paradoxs on Sat Jan 07, 2017 5:11 pm, edited 1 time in total.
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Prime - Amber Tweaks and Scripting API
http://semver.org/Paradoxs wrote: not yet, its on my tiny list of stuff to add for Version 0.5 you'll see the ability soon
(0.4 is just a world 10 update for the client)
Not that I'd know better. But using x.x.1 versions for minor fixes and stuff like that and x.1.x for new features might be handy and give users somekind of idea on what was implemented in latest update.

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
-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
No your right, its how I should probably do it. When I think of versioning I think of it in different light, which imho, probably isnt the best way to do release versioning.shubla wrote:http://semver.org/Paradoxs wrote: not yet, its on my tiny list of stuff to add for Version 0.5 you'll see the ability soon
(0.4 is just a world 10 update for the client)
Not that I'd know better. But using x.x.1 versions for minor fixes and stuff like that and x.1.x for new features might be handy and give users somekind of idea on what was implemented in latest update.
Changed my post, and my future versioning will match for the sake of simplicity