jrdimpfl wrote:is there a way to just get it to drop the logs off at your hearth fire as opposed to the village idol?
I keep getting an error...
- Code: Select all
Jun 30, 2011 2:38:40 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: teleport to the hearth fire
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Stockpile Logs ...
Jun 30, 2011 2:38:44 PM sun.reflect.NativeMethodAccessorImpl invoke0
SEVERE: Error: can't find claim... maybe we're not in the village...
Even though I am in the village
Bot searches for object named "vclaim" (Village teleport, I don't know why it could'nt find it), the object names are displayed at top left corner.
Well in the function "takeCareOfLogs()" you could comment lines
[code]
teleportToYourVillage();
//ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
sleep(500);
stockPileLogs();
if (androidIsHungry())
feedDroid();
recharge_wine_bottle();
ark_bot.mapview.map_move_step(-1, 0);
thread.sleep(200);
check_travel_weariness();
teleportToHearthFire()
[code]
And replace it with something like,
[code]
def hearthID = ark_bot.find_object_by_name("hearth", 200);
if (hearthID){
pathFinder.travelTo(hearthID);
ark_bot.DoClick(ark_bot.MyCoord(), MOUSE_RIGHT_BUTTON, 0); // drop log
thread.sleep(1000);
} else {
println 'No hearth fire around!'
}
[code]
Groovy is really simple language and by looking in ark_bot.java you can easily figure out API to use. Of course you need some Java background but if you don't have any programming experience and want to write simple bot it shouldn't take more than two weeks to learn how to program in Groovy. And it's a good exercise
Anyhow you can ask someone else to write it for you.