H&H Groovy bot

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

Moderator: Phades

zevnab1
Posts: 2
Joined: Thu Dec 01, 2011 6:21 pm

Re: H&H Groovy bot

Post by zevnab1 »

i need simple script for bot only to chop down trees around nothing more, can someone write it please?
smileyguy4you2
Posts: 5
Joined: Thu Oct 13, 2011 10:31 pm

Re: H&H Groovy bot

Post by smileyguy4you2 »

bruthol, your updated lumberjack bot is not filling wine anymore, any idea why it stopped workin?
User avatar
dullah
Posts: 199
Joined: Sun Nov 15, 2009 7:09 am

Re: H&H Groovy bot

Post by dullah »

is there an elegant way to attach a debugger to the client.
i need to track values of some stuff, and its kinda overkill to launch the script to see results with each modification

Thanks
User avatar
Oddity
Posts: 1983
Joined: Sun Jun 20, 2010 12:04 am
Location: BC, Canadia

Re: H&H Groovy bot

Post by Oddity »

Gob vs. Glob: What does each mean?
jadamkaz wrote:ah i remember my run in with odditown they are good ppl im sure the only reason they killed ME is because they are troll hunters and i was a troll
User avatar
boshaw
Posts: 1612
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Post by boshaw »

Oddity wrote:Gob vs. Glob: What does each mean?
Glob => global stuff
Gob => Game object (people,buildings,cliffs,etc)
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: H&H Groovy bot

Post by Leny-m »

Someone already talked about the study inventory but I didnt understand.

Basicaly I want my script to pick up curios from cupboard and intelligently put them in my study inventory. Dont worry about the interaction with cupboard, thats easy. I just need that part when I put something in the study.

SetInventory("study") didnt work :-)
Image Image Image Image Image
Leny
User avatar
ArvinJA
Posts: 1255
Joined: Sun Mar 20, 2011 1:02 pm
Location: Sweden

Re: H&H Groovy bot

Post by ArvinJA »

Leny-m wrote:Someone already talked about the study inventory but I didnt understand.

Basicaly I want my script to pick up curios from cupboard and intelligently put them in my study inventory. Dont worry about the interaction with cupboard, thats easy. I just need that part when I put something in the study.

SetInventory("study") didnt work :-)
Are you solving the knapsack problem?
The low life has lost its appeal
And I'm tired of walking these streets
To a room with its cupboards bare
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: H&H Groovy bot

Post by Leny-m »

ArvinJA wrote:
Leny-m wrote:Someone already talked about the study inventory but I didnt understand.

Basicaly I want my script to pick up curios from cupboard and intelligently put them in my study inventory. Dont worry about the interaction with cupboard, thats easy. I just need that part when I put something in the study.

SetInventory("study") didnt work :-)
Are you solving the knapsack problem?
Among other things. Right now I am not even able to reach the study inventory a put something in there.
Image Image Image Image Image
Leny
User avatar
Oddity
Posts: 1983
Joined: Sun Jun 20, 2010 12:04 am
Location: BC, Canadia

Re: H&H Groovy bot

Post by Oddity »

I can't seem to figure out how to activate the "Press" button for the winepress. In fact, I don't think I can even find it. My Winepress's inventory's widgets consist of an IButton for dumping the contents of the inventory to the ground, and each grape in the invo (if any) is also a widget. No "press" button that I can find.
jadamkaz wrote:ah i remember my run in with odditown they are good ppl im sure the only reason they killed ME is because they are troll hunters and i was a troll
marvi
Posts: 138
Joined: Thu Feb 18, 2010 3:41 pm

Re: H&H Groovy bot

Post by marvi »

Winepress window has following structure:

Image

So you need something like findWindow("Winepress")?.findButton("Press").click().

Edit. Speaking of which... I'll leave my client here for history, I'm not even sure if it works.

Sources: here
Compiled version: here
There is even doc written on my poor english: here

Example of the script that can be written with this client. It will eat everything from the table, pretty useless:

Code: Select all

import static sys.*

// get table window
def tablewnd = findWindow("Table")
if (tablewnd == null) {
    println "Where is mah table >:|"
    return
}

// find food inventory by it's size
def foodinv = tablewnd.inventories.find { it.rowCount == 6 && it.columnCount == 6 }
if (foodinv == null) {
    println "Wtf... empty table."
    return
}

// Feast!
tablewnd.findButton("Feast!").click()
waitCursor("eat")

for (item in foodinv.items) {
    item.take()
    waitHourglass()
}
Other scripts can be found in repo. Scripts like harvest_area, plant_area and trough can be very useful I guess.
Last edited by marvi on Thu Jan 12, 2012 1:15 am, edited 1 time in total.

Return to “The Wizards' Tower”