Union Client Scripts

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: Union Client Scripts

Postby Arcanist » Fri Oct 11, 2013 10:04 pm

Pjotr84 wrote:I've been trying to get the mussel script SuSavage posted to work, but when I start the script and it finds a mussel, the script finishes, but I still get the "pick" option from the flower menu. Also, the error "jSelectPopupMenu is not defined". I have all the files in place and the coords are in place inside the script code, so does anyone know what I need to do to fix this?



edit- I was going to help with that, but I won't get involved in auto forraging bots.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: Union Client Scripts

Postby Pjotr84 » Fri Oct 11, 2013 11:23 pm

Arcanist wrote:
Pjotr84 wrote:I've been trying to get the mussel script SuSavage posted to work, but when I start the script and it finds a mussel, the script finishes, but I still get the "pick" option from the flower menu. Also, the error "jSelectPopupMenu is not defined". I have all the files in place and the coords are in place inside the script code, so does anyone know what I need to do to fix this?



edit- I was going to help with that, but I won't get involved in auto forraging bots.


Fixed it already: Replace jSelectPopupMenu with jSelectContextMenu and you're good to go. Now I just have to find a way to let the script find and board my boat, once it's ported out from a crossroad. I presume the Xroad and the boat have to be quite close together in order for that to work.
_Gunnar wrote:Sorry, my bots achieved sentience and started writing other bots...


RIP Gemini
User avatar
Pjotr84
 
Posts: 58
Joined: Tue Jan 17, 2012 6:45 am
Location: Frisia

Re: Union Client Scripts

Postby killerdude54 » Fri Oct 18, 2013 1:25 am

How come when I run the grape bot on the farmer it doesn't work? I select the LC, Winepress, and Barrel, but when I input the area and run it, it does nothing. It just stands there, although it did go to the harvest tool.

Image

^ It's inventory.
killerdude54
 
Posts: 18
Joined: Wed Jul 06, 2011 4:32 am

Re: Union Client Scripts

Postby liamw1986 » Fri Oct 18, 2013 6:33 pm

Got some nice scripts in here :)

I'm wondering if there are resources available to learn java? I've been reading through here and it's clear to me that you need at least a basic understanding of the language to get them working. When it comes to coordinates in the scripts I'm guessing that they will need to be adjusted to fit with each individual's surroundings?

Anyway, kudos to the guys who have spent time creating these scripts for everyone and I hope to join their ranks soon!
..Wilson..
User avatar
liamw1986
 
Posts: 60
Joined: Sun Apr 01, 2012 4:33 pm

Re: Union Client Scripts

Postby Pjotr84 » Fri Oct 18, 2013 7:02 pm

Union client scripts use Javascript, actually, but there are loads of information available on the web. However, just by reading the scripts and figuring out what does what by altering them, you learn a lot and quite fast. I have almost zero prior programming knowledge and I've gotten it down surprisingly quickly.

As for the coords question, yes, you need to copy your own coords by using the koord script.
_Gunnar wrote:Sorry, my bots achieved sentience and started writing other bots...


RIP Gemini
User avatar
Pjotr84
 
Posts: 58
Joined: Tue Jan 17, 2012 6:45 am
Location: Frisia

Re: Union Client Scripts

Postby liamw1986 » Fri Oct 18, 2013 7:08 pm

Pjotr84 wrote:Union client scripts use Javascript, actually, but there are loads of information available on the web. However, just by reading the scripts and figuring out what does what by altering them, you learn a lot and quite fast. I have almost zero prior programming knowledge and I've gotten it down surprisingly quickly.

As for the coords question, yes, you need to copy your own coords by using the koord script.


koord script? do you mean the one posted by Susavage? I will play around with them but I only have one that works currently and that is the hunger 4x one. And how do I retrieve these koords? couldn't I just use the Ctrl+d function?
..Wilson..
User avatar
liamw1986
 
Posts: 60
Joined: Sun Apr 01, 2012 4:33 pm

Re: Union Client Scripts

Postby Pjotr84 » Tue Oct 22, 2013 1:48 am

Yes, you need the coords script that was provided. This script will output coords into a new file, once you click "exit". These coordinates should be copied into the actual script.

Speaking of scripts, I'm having a bit of trouble with the JPFmove instruction. Sometimes the script using it works without issue, but sometimes only the player path is drawn without any movement from my char. Anyone know how to solve this?

Edit: In addition I should say this issue always occurs when the char is at another object, so could it be it's blocked somehow, like when you move away from a quern after you're done grinding something? You always have to click twice to get away from it. To test, I've added a function to the script in question, which first moves away from the object the char is currently at.
_Gunnar wrote:Sorry, my bots achieved sentience and started writing other bots...


RIP Gemini
User avatar
Pjotr84
 
Posts: 58
Joined: Tue Jan 17, 2012 6:45 am
Location: Frisia

Re: Union Client Scripts

Postby liamw1986 » Tue Oct 22, 2013 2:28 am

It seems most of the scripts I have get the same error.

error.gif
You do not have the required permissions to view the files attached to this post.
..Wilson..
User avatar
liamw1986
 
Posts: 60
Joined: Sun Apr 01, 2012 4:33 pm

Re: Union Client Scripts

Postby Pjotr84 » Tue Oct 22, 2013 2:30 am

In line 1 of your script there's an illegal character, probably some special symbol. Remove that and try again :)
_Gunnar wrote:Sorry, my bots achieved sentience and started writing other bots...


RIP Gemini
User avatar
Pjotr84
 
Posts: 58
Joined: Tue Jan 17, 2012 6:45 am
Location: Frisia

Re: Union Client Scripts

Postby liamw1986 » Tue Oct 22, 2013 2:59 am

Cant seem to spot anything but perhaps im just ignorant.

This is what im using:

//#! name = Mussels auto pick up
//#! tooltip = Automatically pick ups mussels around you, just get close to them and press!
//#! icon = gfx/invobjs/mussel

include("jBotAPI");

function Main(){
while(true){
var mussels = jFindObjectByName("mussel", 15);
if(mussels != null && checkInventory().freeSlots() > 0){

jDoClick(mussels.getID(), 3, 0);
jSleep(100);

if(jWaitPopup(200)){jSelectContextMenu("Pick"); jWaitProgress(actionTimeout);}

}else{jToConsole("There isn't more mussels or space in the inventory!"); break;}
}
}

Main();
..Wilson..
User avatar
liamw1986
 
Posts: 60
Joined: Sun Apr 01, 2012 4:33 pm

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Amazon [Bot], Claude [Bot] and 1 guest