Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- volume(0);
- // Set current player afk state
- push(@&afk_key,"%PLAYER%");
- push(@afk_value,true);
- look(225,90);
- keydown(forward);
- wait(200ms);
- keyup(forward);
- #attack_wait = 0;
- do;
- pick("golden_sword");
- if("golden_sword" == %ITEM%);
- look(225,90);
- key(attack);
- inc(#attack_wait,1);
- if(50 <= #attack_wait);
- #attack_wait = 0;
- wait(500ms);
- endif;
- else;
- look(300,75);
- wait(100ms);
- key(use);
- wait(200ms);
- endif;
- //Eat
- if(%HUNGER% < 18);
- look(0,0);
- &foods[] = split(" ","cookie rotten_flesh spider_eye fish rabbit mutton pumpkin_pie apple beef porkchop chicken poisonous_potato melon potato baked_potato cooked_chicken cooked_mutton mushroom_stew bread cooked_rabbit cooked_fished carrot cooked_porkchop cooked_beef golden_carrot golden_apple rabbit_stew");
- foreach(&foods,&cfood);
- pick("%&cfood%");
- next;
- do(150);
- key(use);
- loop;
- endif;
- if((%HUNGER% < 2) || (%HEALTH% < 2));
- disconnect();
- endif;
- loop;
- stop();
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement