H&H Groovy bot

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

Moderator: Phades

Re: H&H Groovy bot

Postby zevnab1 » Thu Dec 01, 2011 7:02 pm

i need simple script for bot only to chop down trees around nothing more, can someone write it please?
zevnab1
 
Posts: 2
Joined: Thu Dec 01, 2011 6:21 pm

Re: H&H Groovy bot

Postby smileyguy4you2 » Fri Dec 02, 2011 12:14 am

bruthol, your updated lumberjack bot is not filling wine anymore, any idea why it stopped workin?
smileyguy4you2
 
Posts: 5
Joined: Thu Oct 13, 2011 10:31 pm

Re: H&H Groovy bot

Postby dullah » Fri Dec 02, 2011 11:52 am

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
dullah
 
Posts: 199
Joined: Sun Nov 15, 2009 7:09 am

Re: H&H Groovy bot

Postby Oddity » Tue Dec 06, 2011 5:55 pm

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
Oddity
 
Posts: 1979
Joined: Sun Jun 20, 2010 12:04 am
Location: BC, Canadia

Re: H&H Groovy bot

Postby boshaw » Tue Dec 06, 2011 5:58 pm

Oddity wrote:Gob vs. Glob: What does each mean?

Glob => global stuff
Gob => Game object (people,buildings,cliffs,etc)
User avatar
boshaw
 
Posts: 1590
Joined: Tue Jun 01, 2010 10:22 pm

Re: H&H Groovy bot

Postby Leny-m » Thu Dec 29, 2011 7:37 pm

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
Leny-m
 
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: H&H Groovy bot

Postby ArvinJA » Thu Dec 29, 2011 11:17 pm

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
ArvinJA
 
Posts: 1255
Joined: Sun Mar 20, 2011 1:02 pm
Location: Sweden

Re: H&H Groovy bot

Postby Leny-m » Fri Dec 30, 2011 8:13 am

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
Leny-m
 
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: H&H Groovy bot

Postby Oddity » Wed Jan 11, 2012 10:52 pm

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
User avatar
Oddity
 
Posts: 1979
Joined: Sun Jun 20, 2010 12:04 am
Location: BC, Canadia

Re: H&H Groovy bot

Postby marvi » Thu Jan 12, 2012 12:24 am

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.
marvi
 
Posts: 138
Joined: Thu Feb 18, 2010 3:41 pm

PreviousNext

Return to The Wizards' Tower

Who is online

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