H&H Groovy bot

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

Moderator: Phades

Re: H&H Groovy bot

Postby jrdimpfl » Thu Jun 30, 2011 7:11 pm

is there a way to just get it to drop the logs off at your hearth fire as opposed to the village idol?

I keep getting an error...

Code: Select all
Jun 30, 2011 2:38:40 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: teleport to the hearth fire
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Stockpile Logs ...
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
SEVERE: Error: can't find claim... maybe we're not in the village...


Even though I am in the village
ImageMy Therapy Art ThreadImage
She:kon! Oh niyohtenhatye? : Yoyaneratye.
User avatar
jrdimpfl
 
Posts: 91
Joined: Wed Jun 23, 2010 6:40 pm

Re: H&H Groovy bot

Postby Sarchi » Thu Jun 30, 2011 8:53 pm

omfg you botters should be ashamed
User avatar
Sarchi
 
Posts: 2517
Joined: Sat Jun 12, 2010 1:14 am
Location: 109, -37

Re: H&H Groovy bot

Postby burgingham » Thu Jun 30, 2011 9:06 pm

lol
User avatar
burgingham
 
Posts: 8486
Joined: Fri Aug 14, 2009 10:58 pm

Re: H&H Groovy bot

Postby rozn » Fri Jul 01, 2011 7:52 am

Haha Sarchi.... :lol:
Certainly, in taking revenge, a man is but even with his enemy; but in passing it over, he is superior; for it is a prince’s part to pardon. - A wise friend.
User avatar
rozn
 
Posts: 1386
Joined: Sun Apr 11, 2010 2:18 pm
Location: A wonderful place called

Re: H&H Groovy bot

Postby PanAeon » Fri Jul 01, 2011 8:41 am

jrdimpfl wrote:is there a way to just get it to drop the logs off at your hearth fire as opposed to the village idol?

I keep getting an error...

Code: Select all
Jun 30, 2011 2:38:40 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: teleport to the hearth fire
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Stockpile Logs ...
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
SEVERE: Error: can't find claim... maybe we're not in the village...


Even though I am in the village


Bot searches for object named "vclaim" (Village teleport, I don't know why it could'nt find it), the object names are displayed at top left corner.
Well in the function "takeCareOfLogs()" you could comment lines

[code]
teleportToYourVillage();

//ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
sleep(500);
stockPileLogs();
if (androidIsHungry())
feedDroid();
recharge_wine_bottle();
ark_bot.mapview.map_move_step(-1, 0);
thread.sleep(200);
check_travel_weariness();
teleportToHearthFire()
[code]

And replace it with something like,
[code]
def hearthID = ark_bot.find_object_by_name("hearth", 200);
if (hearthID){
pathFinder.travelTo(hearthID);
ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
thread.sleep(1000);
} else {
println 'No hearth fire around!'
}
[code]

Groovy is really simple language and by looking in ark_bot.java you can easily figure out API to use. Of course you need some Java background but if you don't have any programming experience and want to write simple bot it shouldn't take more than two weeks to learn how to program in Groovy. And it's a good exercise :)
Anyhow you can ask someone else to write it for you.
PanAeon
 
Posts: 10
Joined: Tue May 24, 2011 7:31 am

Re: H&H Groovy bot

Postby jrdimpfl » Fri Jul 01, 2011 6:39 pm

PanAeon wrote:
Code: Select all
teleportToYourVillage();
         
//ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
sleep(500);
stockPileLogs();
if (androidIsHungry())
   feedDroid();
recharge_wine_bottle();
ark_bot.mapview.map_move_step(-1, 0);
thread.sleep(200);
check_travel_weariness();
teleportToHearthFire()


And replace it with something like,
Code: Select all
def hearthID = ark_bot.find_object_by_name("hearth", 200);
if (hearthID){
        pathFinder.travelTo(hearthID);
   ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
   thread.sleep(1000);
} else {
     println 'No hearth fire around!'
}



All this does is gets a log, teleports me to my Hearth, drops the log, picks it back up, drops the log, picks it back up. Rinse and repeat.
ImageMy Therapy Art ThreadImage
She:kon! Oh niyohtenhatye? : Yoyaneratye.
User avatar
jrdimpfl
 
Posts: 91
Joined: Wed Jun 23, 2010 6:40 pm

Re: H&H Groovy bot

Postby DoomedProphet » Fri Jul 01, 2011 11:45 pm

Bots are approved of in this game..? What is this, I don't even...

Definitely a different community than most.

Either way, nifty bot. I may take a peek at it later.
DoomedProphet
 
Posts: 10
Joined: Wed Jun 29, 2011 7:47 pm

Re: H&H Groovy bot

Postby MagicManICT » Sat Jul 02, 2011 3:00 am

DoomedProphet wrote:Bots are approved of in this game..? What is this, I don't even...

Definitely a different community than most.

Either way, nifty bot. I may take a peek at it later.


No, but there's no EULA to get you banned over it, either. They're tolerated. Nothing is saying the game won't get changed to nerf the benefits or the ability of botting, either. Example: the transition from w4 to w5.

Warning: there are some that will kill on sight anyone that's botting.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: H&H Groovy bot

Postby burgingham » Sat Jul 02, 2011 5:20 am

Nothing saying the devs won't punish you for using them either. Usually they don't, but it is also known that Jorb (and most likely Loftar too) doesn't like them much. I recall him removing a tree that was used to gather branches for loom botting in w2 so the character walked into the water instead up to the tree (branches were unlimited back then and swimming wasn't toggled).
User avatar
burgingham
 
Posts: 8486
Joined: Fri Aug 14, 2009 10:58 pm

Re: H&H Groovy bot

Postby Phaen » Sat Jul 02, 2011 5:27 am

I wouldn't say it's 'approved of.'

It would be nice if botting weren't possible, but it is =(
Image
User avatar
Phaen
 
Posts: 995
Joined: Fri Jan 21, 2011 2:17 am

PreviousNext

Return to The Wizards' Tower

Who is online

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