H&H Groovy bot

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

Moderator: Phades

Re: H&H Groovy bot

Postby PanAeon » Tue Jul 19, 2011 5:00 pm

BruThoL wrote:
DatOneGuy wrote:I'm working on a farming bot myself atm, running into some problems that are annoying.

A farming bot is very good especially flax. I was working on a flax bot earlier but the biggest issue was to make it streamlined to do it all on several bots, but every bot be the same. My plan was to have 25 tile wide fields, a loom on one side, a banner sign on the other. :V
Still think it could work, just need to get all the work going, food will probably be an issue depending on size of field.


wow man, sound like linen huge industry xD
I'm currently working on it.

I think it'll require the field to be delimited by layed stone and it'll auto-detect the area to harvest.

Edit : if I manage to get that ¤*!@~# mapview.gobatpos returning something else than null! :roll:


You won't because gobatpos returns position of gob (something like barrel or cow) id on that coordinates, take a look at class Tile. It's somewhere in Resource.java
PanAeon
 
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Postby Fiyero » Thu Jul 21, 2011 11:02 pm

Just for us newbies @ this client:

If you want to run a groovy script, you need to configure it on haven.conf (bot1=groovy scriptname)

bot1 is started with F1
bot2 is started with F2
F3 stops the current script

:P

Now a question for the pros, how can I find out the name of an item I want to us using findItembyName()?
User avatar
Fiyero
 
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Postby PanAeon » Sat Jul 23, 2011 9:26 pm

Fiyero wrote:Just for us newbies @ this client:

Now a question for the pros, how can I find out the name of an item I want to us using findItembyName()?


Do you mean find_object_by_name() ? I thought the client by default will print debug info on the left side. (press F11 or F12 if I remember it correct to turn on debug mode), then you'll see resource name when you place mouse cursor over it. Anyway you can always go to the res folder, the resource filenames of objects are they actual 'names'.
PanAeon
 
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Postby Fiyero » Mon Jul 25, 2011 5:25 pm

PanAeon wrote:
Fiyero wrote: I thought the client by default will print debug info on the left side.


There are some gobs that do not display their name, like dragonflies, carts, plows or toads, is there a way to dynamically "find them"?

Im assming the getName() function returns null or empty on these and thus the find function which uses indexOf on the getName method wont work.

Also, how can I tell if the tile Im standing on is plowed or not?

Thanks Pan for this wonderful tool, kudos to arksu as well.

:)
User avatar
Fiyero
 
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Postby PanAeon » Fri Jul 29, 2011 8:47 am

You can find whether tile C is plowed by calling ark_bot.mapview.map.gettilen(ark_bot.mapview.tilify(C).div(11)) != 9
Try calling find_map_object with 'plow', I think it should work... Don't know why debug doesn't show names of objects like plow.
PanAeon
 
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Postby Fiyero » Fri Jul 29, 2011 2:22 pm

Thanks Pan, I'll try it out this weekend!
User avatar
Fiyero
 
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Postby robinx » Fri Jul 29, 2011 9:34 pm

what i need do to bot Lamber collect wooden block to the corner post my palisade. I can not write because I ask the creator of bots and other professionals from this;)
Image
robinx
 
Posts: 106
Joined: Sat Jul 16, 2011 2:40 pm

Re: H&H Groovy bot

Postby deadloko » Wed Aug 03, 2011 11:53 pm

Anyone knows how to put something inside the boat with this bot? I can't interact with the boat standart way as it is not inventory...
deadloko
 
Posts: 2
Joined: Thu Jan 20, 2011 6:28 pm

Re: H&H Groovy bot

Postby Vayiel » Fri Aug 05, 2011 8:27 pm

Is there a bot, which would make Cone Cows every 20 Minutes and place them in the Study inventory?
User avatar
Vayiel
 
Posts: 6
Joined: Wed Jul 14, 2010 2:53 pm

Re: H&H Groovy bot

Postby Hyrion » Fri Aug 05, 2011 8:35 pm

no, but you could make one with this (in theory)
Image
User avatar
Hyrion
 
Posts: 92
Joined: Sun Jun 12, 2011 10:14 pm

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 0 guests