H&H Groovy bot

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

Moderator: Phades

Re: H&H Groovy bot

Postby boshaw » Tue Aug 16, 2011 4:27 pm

find LC objects in ocache memory and record their positions. if they move then someone picked them up. positon is object.getc();
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Postby Myzreal » Tue Aug 16, 2011 7:15 pm

You're my god man, but is there a way to record the name of the player who did that, having him in kin ofc?
Paste me to get hacked: http://a/%%30%30
Myzreal
 
Posts: 69
Joined: Sun Jul 03, 2011 5:32 pm

Re: H&H Groovy bot

Postby boshaw » Tue Aug 16, 2011 9:54 pm

if you know the LC object is being used then you know the location of the LC via getc() and obviously it must be moved by a player so you take that getc() and do some semi-accurate search through all objects in ocache to find what player is within 11 units (1 tile) of the LC. most likely it's that guy.

idk might be more than 11 tiles idk how it compares when you have a LC above you, do some testing of player objects holding LCs and compare the positons of LC to the player to see how far the player should be from the LC if he's holding it.

and the figure out their name you take the ocache object (gob) and do:
gob.getattr(KinInfo.class).name

this assumes you have them kinned and thus know their name
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Postby Momoka » Fri Aug 19, 2011 1:15 am

How are you guys checking if a tile is harvestable?

--edit--

Never mind, It's easier to check for the item name ("plant/flax") via find then the flowermenu. At least that way there are no misclicks.
User avatar
Momoka
 
Posts: 46
Joined: Sun Jul 17, 2011 6:21 am

Re: H&H Groovy bot

Postby boshaw » Fri Aug 19, 2011 2:40 pm

even easier method is just checking if it's plant.GetBlob(0) >= value where plant is Gob type from ocache.

carrots : >= 3
beetroot == 3
wheat == 3
hemp >= 3
flax == 3
peas == 4
hops == 3
pumpkin == 6
onion == 3
poppy = 4
tea == 3
wine == 3
tobacco == 4
pepper == 3

that combined with knowing it's resname includes "plants" will work just fine
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Postby Momoka » Fri Aug 19, 2011 4:53 pm

That doesn't seem reliable at all. And that's harder to remember/read.
User avatar
Momoka
 
Posts: 46
Joined: Sun Jul 17, 2011 6:21 am

Re: H&H Groovy bot

Postby boshaw » Fri Aug 19, 2011 5:19 pm

it's very reliable and it's faster. Your method requires sending the server a click msg and then have to wait until you receive flowermenu widgets to confirm vs my method which just checks the objects blob(0) and can be done in a simple if else statement or switch depending on if groovy allows for each plant type
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Postby Momoka » Sat Aug 20, 2011 8:22 am

Not really. I don't even have to check for the flowermenu. Just that the resource matches the string.

I got the gob, I can get it's coords and just click it with the harvest cursor.
User avatar
Momoka
 
Posts: 46
Joined: Sun Jul 17, 2011 6:21 am

Re: H&H Groovy bot

Postby Sarchi » Sun Aug 28, 2011 10:36 pm

Hey broskis. Got a request.

Does anyone know how to make an autotyper bot (legal one that doesn't crash clients and get me lolbanned) that types a set of phrases randomly? I want one for combat that can be used to taunt people and make them angry (without risking those precious seconds typing some bullshit manually).
User avatar
Sarchi
 
Posts: 2517
Joined: Sat Jun 12, 2010 1:14 am
Location: 109, -37

Re: H&H Groovy bot

Postby Hourai_Chimes » Sun Aug 28, 2011 11:43 pm

A random generatored one or a set of prefix ones?

Btw you fight like a dairy farmer.
You laugh at me because I am different. I laugh at you because you are all the same.
Hourai_Chimes
 
Posts: 321
Joined: Sun Jul 17, 2011 8:44 pm

PreviousNext

Return to The Wizards' Tower

Who is online

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