Union Client Scripts

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

Moderator: Phades

taliss
Posts: 18
Joined: Tue Oct 30, 2012 10:03 pm

Re: Union Client Scripts

Post by taliss »

Zonia wrote:Hi, i was trying to run the farming script posted on the first page but i get this error.
When i start the script seedbags open and the popup with the different croops pops up but then it finishes.
fehler.jpg
would be very nice if someone could help me or give me a hint.
Do you have Skype? or vent?

My vent channel is public for ANYONE who wants to join.

darknet.clanvent.com
5001

All Races/Countries/Languages accepted.


If you come in vent or give me your skype i will help you figure out your issue as the farmer works for me!

I also would like to know if someone can give me tips on scripting a bot to put clay into build signs after having filled his pack with it.
Zonia
Posts: 70
Joined: Thu Feb 10, 2011 12:15 pm

Re: Union Client Scripts

Post by Zonia »

Zonia wrote:Hi, i was trying to run the farming script posted on the first page but i get this error.
When i start the script seedbags open and the popup with the different croops pops up but then it finishes.
fehler.jpg
would be very nice if someone could help me or give me a hint.
Solved it by using the x64 instead of the x32 client from http://www.havenandhearth.ru/viewtopic.php?f=17&t=1522
robinx
Posts: 107
Joined: Sat Jul 16, 2011 2:40 pm

Re: Union Client Scripts

Post by robinx »

Code: Select all

function dropore() {
var items = inventory.getItems("invobjs/ore-iron");
 for (var i = 0; i < items.length; i++) {
   items[i].drop();
jWaitDrop();
 } 
}
Why this function don't work ? :<
Image
User avatar
Arcanist
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: Union Client Scripts

Post by Arcanist »

robinx wrote:

Code: Select all

function dropore() {
var items = inventory.getItems("invobjs/ore-iron");
 for (var i = 0; i < items.length; i++) {
   items[i].drop();
jWaitDrop();
 } 
}
Why this function don't work ? :<
try

Code: Select all

function dropore() {
var items = inventory.getItems("invobjs/ore-iron");
 for (var i = 0; i < items.length; i++) {
   items[i].dropSuchAll();
 } 
} 
or

var ore = inventory.getItems("ore-iron");
if(ore.length > 0)
if(ore[0].isActual())
ore[0].dropSuchAll();

The documentation hints that drop() does not work??
drop () - Method in class union.jsbot.JSItem
VES throws planes do not works with underwear on course
I know drop (int, int) drops the item into an inventory, so perhaps drop() does the same, but in the first empty location it can find.
User avatar
Bramson
Posts: 244
Joined: Tue Jul 02, 2013 5:48 am
Location: Hawaii

Re: Union Client Scripts

Post by Bramson »

Code: Select all

function dropore() {
  var oreInInv = inventory.getItems("invobjs/ore-iron");
  while (oreInInv.length > 0) {
    oreInInv = inventory.getItems("invobjs/ore-iron");
    oreInInv[0].drop();
    jWaitDrop();
    }
}
"All video/images of coles abominably wearing beard will be purged from the forums." - Jorb

"We won't ever deploy our militia to fight anyone." - Robben_DuMarsch, leader of New Brodgar; diagnosis: Napoleon Syndrome
Bottest
Posts: 8
Joined: Thu Apr 25, 2013 12:34 pm

Re: Union Client Scripts

Post by Bottest »

Hey,

has anyone got the "farming script" with a working grape-function? In my case, most farm scripts run, but the grapes. I can select press, barrel and lchest, define the area and hit confirm. Then, the char does, well nothing. Sometimes he walks to the barrel, thats it.
Anyone got a clue how to fix that?

And while i write i might just ask right away: Is there a script for union that mines a definded area? I used the kt-client for that stuff, but sadly after selecting the area-to-mine the char mines the first tile and then stops.

All help will be gladly taken^^

THanks and a nice day
dralex
Posts: 1
Joined: Sat Feb 01, 2014 10:58 am

Re: Union Client Scripts

Post by dralex »

Greetings
Please tell me whether there is a script:
1. Flour for manufacturing - take from one cabinet bags with grain, grind and decompose the cabinets casually drink water.
2. To collect honey and wax every 20-30 minutes, around the clock. With unfolding on chests and maybe not with one hive.
If someone can write or throw links will be very grateful.
Thanks.
User avatar
jordancoles
Posts: 14168
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: Union Client Scripts

Post by jordancoles »

Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:
Check out my pro-tips thread
Image Image Image
Bottest
Posts: 8
Joined: Thu Apr 25, 2013 12:34 pm

Re: Union Client Scripts

Post by Bottest »

Hey, i hope anyone can help me:
I want the character to move to the curio first, and then picks it. So i thought of adding the "//StuffCoord = Stuff.position(); //jPFmove(Stuff.position()) // jWaitMove();" commands to the getstuff function.
But with those added, the script stops working. Anyone got a clue, how to "pathfind" to the curio before picking it?
Thank you^^

Code: Select all

function GetStuff() {
       var Stuff = jGetObjects(25,jCoord(0,0),"fourleafclover");
       StartCoord = jMyCoords();
       while ((inventory.freeSlots() > 3)&&(Stuff.length>0)) {
          AwayFromGround();
          jPrint(Stuff.length);
				//StuffCoord = Stuff.position();
				//jPFmove(Stuff.position())
				  //     jWaitMove();
		  Stuff[0].doClick(1,0);
		  jWaitMove(6000);
          Stuff[0].doClick(3,0);
          jWaitPopup();
          jSelectContextMenu("Pick");
          jWaitMove(6000);
          jWaitProgress(10000);
          Stuff = NewArrayWithout1stElement(Stuff);
       }   
       AwayFromGround();
       PreviousCoord(StartCoord);
    }
keybarer2
Posts: 1
Joined: Fri Feb 07, 2014 11:59 am

Re: Union Client Scripts

Post by keybarer2 »

Bottest wrote:Hey, i hope anyone can help me:
I want the character to move to the curio first, and then picks it. So i thought of adding the "//StuffCoord = Stuff.position(); //jPFmove(Stuff.position()) // jWaitMove();" commands to the getstuff function.
But with those added, the script stops working. Anyone got a clue, how to "pathfind" to the curio before picking it?
Thank you^^

Code: Select all

function GetStuff() {
       var Stuff = jGetObjects(25,jCoord(0,0),"fourleafclover");
       StartCoord = jMyCoords();
       while ((inventory.freeSlots() > 3)&&(Stuff.length>0)) {
          AwayFromGround();
          jPrint(Stuff.length);
				//StuffCoord = Stuff.position();
				//jPFmove(Stuff.position())
				  //     jWaitMove();
		  Stuff[0].doClick(1,0);
		  jWaitMove(6000);
          Stuff[0].doClick(3,0);
          jWaitPopup();
          jSelectContextMenu("Pick");
          jWaitMove(6000);
          jWaitProgress(10000);
          Stuff = NewArrayWithout1stElement(Stuff);
       }   
       AwayFromGround();
       PreviousCoord(StartCoord);
    }
try useing:
PFGo(Stuff.position()); instead of your //jPFmove(Stuff.position())
and here is the PFGo() function:

Code: Select all

 function PFGo(Coord) {
   if (jMyCoords()==Coord) return;
   jPFMove(Coord);
    while (jIsMoving() || jMyCoords().dist(Coord) > 10) {
      jSleep(200);
   }
 }

antually your picking code should look like:

Code: Select all

 
      PFGo(Stuff[i].position());
      Stuff[i].doClick(3,0);
      jWaitPopup();
      jSelectContextMenu("Pick");
      jWaitMove(6000);
      jWaitProgress(20000);

Return to “The Wizards' Tower”