H&H Groovy bot
Moderator: Phades
-
boshaw
- Posts: 1612
- Joined: Tue Jun 01, 2010 10:22 pm
Re: H&H Groovy bot
find LC objects in ocache memory and record their positions. if they move then someone picked them up. positon is object.getc();
-
Myzreal
- Posts: 69
- Joined: Sun Jul 03, 2011 5:32 pm
Re: H&H Groovy bot
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
-
boshaw
- Posts: 1612
- Joined: Tue Jun 01, 2010 10:22 pm
Re: H&H Groovy bot
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
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
-
Momoka
- Posts: 46
- Joined: Sun Jul 17, 2011 6:21 am
Re: H&H Groovy bot
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.
--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.
-
boshaw
- Posts: 1612
- Joined: Tue Jun 01, 2010 10:22 pm
Re: H&H Groovy bot
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
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
-
Momoka
- Posts: 46
- Joined: Sun Jul 17, 2011 6:21 am
Re: H&H Groovy bot
That doesn't seem reliable at all. And that's harder to remember/read.
-
boshaw
- Posts: 1612
- Joined: Tue Jun 01, 2010 10:22 pm
Re: H&H Groovy bot
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
-
Momoka
- Posts: 46
- Joined: Sun Jul 17, 2011 6:21 am
Re: H&H Groovy bot
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.
I got the gob, I can get it's coords and just click it with the harvest cursor.
-
Sarchi
- Posts: 2517
- Joined: Sat Jun 12, 2010 1:14 am
- Location: 109, -37
Re: H&H Groovy bot
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).
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).
-
Hourai_Chimes
- Posts: 321
- Joined: Sun Jul 17, 2011 8:44 pm
Re: H&H Groovy bot
A random generatored one or a set of prefix ones?
Btw you fight like a dairy farmer.
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.