Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by yanke ( 15 years ago )
void wait_context_menu() { while (!ContextMenuReady) sleep(100); }
void wait_begin_move() { while(!Moving) sleep(100); }
void wait_end_move() { while(Moving) sleep(100); }
void wait_move() {
while (1) {
wait_begin_move();
wait_end_move();
sleep(500);
if (!Moving) break;
}
}
void wait_chi_cursor() { while(!is_cursor("chi")) sleep(100); }
void wait_dig_cursor() { while(!is_cursor("dig")) sleep(100); }
void wait_arw_cursor() { while(!is_cursor("arw")) sleep(100); }
void wait_mine_cursor() { while(!is_cursor("mine")) sleep(100); }
void wait_harvest_cursor() { while(!is_cursor("harvest")) sleep(100); }
void wait_hourglass_on() { while(!HourGlass) sleep(100); }
void wait_hourglass_off() { while(HourGlass) sleep(100); }
void wait_hourglass() {
while (1) {
wait_hourglass_on();
wait_hourglass_off();
sleep(1000);
if (!HourGlass) break;
}
}
void wait_drop() { while(DraggingItem) sleep(100); }
void wait_drag() { while(!DraggingItem) sleep(100); }
void wait_build() { while(!BuildReady) sleep(100); }
void main()
{
while(1)
{
if(Hungry < 60) {
drop();
do_click(find_object_by_name("cclosed",5),3,0);
while(!have_inventory("Chest")) sleep(100);
set_inventory("Chest");
while(next_item) {
item_click("iact");
wait_context_menu();
select_context_menu("Eat");
sleep(1000);
map_click(0,0,3,0);
sleep(1000);
if(Hungry > 80) break();
}
}
if(!have_inventory("Inventory")) open_inventory();
while(!have_inventory("Inventory")) sleep(100);
set_inventory("Inventory");
inventory("Inventory",5,3,"take");
wait_drag();
map_interact_click(find_object_by_name("barrel",5),0);
wait_move();
item_drop(5,3);
wait_drop();
map_move_step(-1,0);
inventory("Inventory",5,3,"take");
wait_drag();
map_interact_click(find_object_by_name("barrel",5),0);
wait_move();
item_drop(5,3);
wait_drop();
inventory("Inventory",5,3,"iact");
wait_context_menu();
select_context_menu("Drink");
wait_hourglass();
map_move_step(-1,0);
wait_move();
while (Stamina > 40) {
send_action("plow");
wait_dig_cursor();
map_click(0,0,1,0);
wait_hourglass();
}
}
}
Revise this Paste