H&H Groovy bot

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

Moderator: Phades

PanAeon
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Post by PanAeon »

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
User avatar
Fiyero
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Post by Fiyero »

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()?
PanAeon
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Post by PanAeon »

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'.
User avatar
Fiyero
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Post by Fiyero »

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.

:)
PanAeon
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Post by PanAeon »

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.
User avatar
Fiyero
Posts: 32
Joined: Wed Jul 20, 2011 10:12 pm

Re: H&H Groovy bot

Post by Fiyero »

Thanks Pan, I'll try it out this weekend!
robinx
Posts: 107
Joined: Sat Jul 16, 2011 2:40 pm

Re: H&H Groovy bot

Post by robinx »

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
deadloko
Posts: 2
Joined: Thu Jan 20, 2011 6:28 pm

Re: H&H Groovy bot

Post by deadloko »

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...
User avatar
Vayiel
Posts: 6
Joined: Wed Jul 14, 2010 2:53 pm

Re: H&H Groovy bot

Post by Vayiel »

Is there a bot, which would make Cone Cows every 20 Minutes and place them in the Study inventory?
User avatar
Hyrion
Posts: 92
Joined: Sun Jun 12, 2011 10:14 pm

Re: H&H Groovy bot

Post by Hyrion »

no, but you could make one with this (in theory)
Image

Return to “The Wizards' Tower”