Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- if(auto);
- unset(auto);
- LOG("&5Macro &4OFF");
- stop();
- else;
- set(auto);
- LOG("&5Macro&2ON");
- //calculando a direção
- #es = 1;
- IFMATCHES(%DIRECTION%,N);
- &mob = NORTH;
- ENDIF;
- IFMATCHES(%DIRECTION%,S);
- &mob = SOUTH;
- ENDIF;
- IFMATCHES(%DIRECTION%,W);
- &mob = WEST;
- ENDIF;
- IFMATCHES(%DIRECTION%,E);
- &mob = EAST;
- ENDIF;
- do;
- look(%&mob%);
- slot(%#es%);
- do;
- //calculando o hit
- SET(&hit, %HIT%);
- SET(&target, ENTITY);
- //atacando se mob
- IF(&hit = &target);
- KEY(attack);
- wait(50ms);
- loop;
- Endif;
- //reparando
- while(%DURABILITY% > 19);
- #es = #es+1;
- if(%#es% = 10);
- unset(auto);
- LOG("&5Macro &4OFF");
- stop();
- else;
- endif;
- Loop;
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement