Anemone Client

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

Moderator: Phades

Re: Anemone Client

Postby legacydoomer » Sun Sep 28, 2014 3:19 am

With which command do i send my Bot in a random direction? (need that for my forager bot)
Since this code ain't efficent :/ (it makes him going for ridges and boulders, but he somehow walks in small circles.)

Code: Select all
import java.lang.*;
import haven.event.*;
import haven.*;

maid.doSay("BOT: foragebot");

//---------------------------------------------------------------------------------------------------------------

chopRadius = 120;

   
while (true) {
    Gob[] gobs = maid.doAreaList(chopRadius)
   
    for (Gob g : gobs) {
        String gobName = maid.getName(g);
      
        if (gobName != null && (gobName.indexOf("herbs") > 0)) {
      
         if (maid.meterStamina != null && maid.meterStamina.value < 20) {
            sleep();
         }
           
         hasPath = maid.pathFind(g.getc(), 4, false);
           
         if (!hasPath)
            continue;
      
         maid.doRightClick(g);

         flowerMenu = maid.waitForFlowerMenu();

         maid.doSelect(flowerMenu, "Pick");
      
         maid.waitForItemCreate(1);
         inv = maid.getInventory();
         int freeSlots = maid.getInventoryFreeSlots(inv);
      
         if (freeSlots < 1) {
            maid.doAction("act", "theTrav", "hearth");
            Thread.sleep(3500); // wait for teleport
         }

         if (maid.meterHunger != null && maid.meterHunger.type == MeterEventObjectHunger.HungerType.VERY_HUNGRY) {
            eat();
         }
      }
      if (gobName != null && gobName.indexOf("mountain/n2w") > 0 ||
      gobName.indexOf("bumlings/03") > 0 ||
      gobName.indexOf("mountain/w2n") > 0) {
      
         if (maid.meterStamina != null && maid.meterStamina.value < 20) {
            sleep();
         }
           
         hasPath = maid.pathFind(g.getc(), 4, false);
           
         if (!hasPath)
            continue;

         if (maid.meterHunger != null && maid.meterHunger.type == MeterEventObjectHunger.HungerType.VERY_HUNGRY) {
            eat();
         }
      }
       

    }
}

def sleep() {
    Thread.sleep(30*1000); // rest for 2 minutes
}

def eat() {
    Inventory inv = maid.getInventory();

    Item[] items = maid.getItems(inv);
      
    for (Item i : items) {
        String a = i.res.res.name ;
        ItemType itemType = i.getItemType(i);
       
        // feast
        if (itemType == ItemType.FOOD_FEP || itemType == ItemType.FOOD_NO_FEP) {
            maid.doInteract(i);
            flowerMenu = maid.waitForFlowerMenu();
            maid.doSelect(flowerMenu, "Eat");
            maid.waitForItemDestroy();
            break;
        }
    }   
}
Image
User avatar
legacydoomer
 
Posts: 23
Joined: Mon Jan 03, 2011 11:26 pm

Re: Anemone Client

Postby deuceman2008 » Tue Oct 14, 2014 4:34 pm

Every time I open the run.bat, It says a few messages and then closes in the span of half a second. I managed to make out:
Cant find the main class: haven.maidframe.

I dont know what it said after that.
And it said a whole bunch of other stuff before that.
Help!

Edit: NVM I found the problem, I don't have the current version of java. I can't update on this computer because I'm not admin so I'll just use Apoc Lite. Doesn't have geolocation though...
deuceman2008
 
Posts: 14
Joined: Wed Nov 14, 2012 4:17 pm

Re: Anemone Client

Postby shubla » Fri Oct 17, 2014 8:36 am

Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Anemone Client

Postby borka » Tue Oct 21, 2014 4:43 am

yes the video is working ;)

And installing, creating the run.bat and using the hotbars with Anemone is still the same ...
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Anemone Client

Postby algam » Thu Nov 06, 2014 7:17 am

Hi,
Is there a way to detect if a tile is ploughed or not?
I tried something with mapview.map.getground(coord) but it always returns null and I do not have other idea :)
algam
 
Posts: 108
Joined: Thu Mar 04, 2010 3:11 pm

Re: Anemone Client

Postby Habeeb » Sat Nov 08, 2014 4:02 pm

I filled a pepper shaker with black pepper and it causes the client to freeze every time I view it.
Habeeb
 
Posts: 15
Joined: Wed Jul 29, 2009 11:20 pm

Re: Anemone Client

Postby Negoveio » Tue Dec 02, 2014 10:23 pm

My friend goes to login screen everytime he enters a timber house.
Negoveio
 
Posts: 27
Joined: Sat Oct 12, 2013 11:32 am

Re: Anemone Client

Postby borka » Wed Dec 03, 2014 8:08 am

@Habeeb
is this related? viewtopic.php?f=4&t=29950

@ Negoveio
check with other clients (default and Ender) - if it's happening there too it's a problem with his connection
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Anemone Client

Postby Negoveio » Wed Dec 03, 2014 4:21 pm

Borka, it was already a pain in the ass for anemone to work on his pc, we literally gave up, but when the error appeared in another friend's pc and i fixed with anemone we stopped caring. He had the black background thingie too, but i logged on his char and removed him of the zone that was causing the problem. We're still not certain whether he can enter houses or not. We're gonna try the normal client probably.
Negoveio
 
Posts: 27
Joined: Sat Oct 12, 2013 11:32 am

Re: Anemone Client

Postby borka » Wed Dec 03, 2014 11:06 pm

Also try "direct connection" in Java Control Panel and check for Port forwarding in his router settings (hopefully it's not a certain Speedport model)
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

PreviousNext

Return to The Wizards' Tower

Who is online

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