Moderator: Phades
java -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r /res
"C:\Program Files\Java\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r /res
Chemox wrote:
- Code: Select all
Exception in thread "Haven UI thread" java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at haven.Config.saveOptions(Config.java:839)
at haven.OptWnd$39.changed(OptWnd.java:453)
at haven.OptWnd.<init>(OptWnd.java:443)
at haven.SlenHud$9.<init>(SlenHud.java:476)
at haven.SlenHud.toggleopts(SlenHud.java:476)
at haven.SlenHud.wdgmsg(SlenHud.java:293)
at haven.Widget.wdgmsg(Widget.java:275)
at haven.Widget.wdgmsg(Widget.java:268)
at haven.IButton.click(IButton.java:77)
at haven.IButton.mouseup(IButton.java:96)
at haven.UI.mouseup(UI.java:350)
at haven.HavenPanel.dispatch(HavenPanel.java:348)
at haven.HavenPanel.run(HavenPanel.java:398)
at java.lang.Thread.run(Unknown Source)
Chemox wrote:Wonder why you try to save registry keys though
- Code: Select all
WARNING: Could not open/create prefs root node Software\JavaSo
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
borka wrote:Is run.bat residing in Anemone folder? If so your run.bat should look like this:
- Code: Select all
java -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r /res
To use it you should check whether java is set in environment
If not set in environment your run.bat should look like this
- Code: Select all
"C:\Program Files\Java\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r /res
If run.bat is not in Anemone folder move it there ...
seksitalo wrote:1. how do i make my bot to pick up the log? i can find them , but just dont know how to interact with them...
2. how to teleport to heathfire
3. can i make the bot send key strokes?
// setup drop location for logs. 2 tiles away from the HF.
hf = maid.doAreaFind(50, "hearth-play");
logDropCoord = hf.getc().sub(0, -11*2);
// list all objects in 50 radius
Gob[] gobs = maid.doAreaList(50)
for (Gob g : gobs) {
String gobName = maid.getName(g);
if (gobName != null && gobName.indexOf("trees/log") > 0) {
// ignore logs at the drop location
if (g.getc().equals(logDropCoord)) {
continue;
}
// pathfind to the log
hasPath = maid.pathFind(g.getc(), 4, false);
if (!hasPath)
continue;
// lift it up
maid.doAction("act", "carry");
maid.doLeftClick(g);
Thread.sleep(300); // lifting up takes time...
// teleport to the HF
maid.doAction("act", "theTrav", "hearth");
Thread.sleep(3500); // teleporting takes time..
// drop it
maid.doRightClick(logDropCoord);
Thread.sleep(1500); // walking to the drop location takes time...
}
}
MrFreed wrote:romovs wrote:Hello everyone,
CASSHERN!!!!
Users browsing this forum: Claude [Bot] and 1 guest