$${
toggle(esc)
if(esc)
LOG("&6[zESC]&bLIGADA")
SET(#pa,277)
SET(#durab,75)
SET(#delay,10ms)
SET(#bloco,2)
do;
pick(277);
key(attack);
wait(115ms);
pick(2);
key(use);
loop;
endif;
do
look(60,40)
wait(500ms)
look(90,40)
wait(500ms)
look(110,40)
wait(500ms)
look(90,40)
wait(500ms)
look(60,40)
loop
endif
else
LOG("&6[zESC]&cDESLIGADA")
stop()
endif
}$$
A maneira como eu faria partindo desse código ai seria assim:
Código:
$${
toggle(esc);
if(esc);
LOG("&6[zESC]&bLIGADA");
SET(#pa,277);
SET(#durab,75);
SET(#delay,10ms);
SET(#bloco,2);
SET(#dir,1);
do;
if(%#dir%=1);
look(60,40);
#dir=2;
elseif(%#dir%=2);
look(90,40);
#dir=3;
elseif(%#dir%=3);
look(110,40);
#dir=4;
elseif(%#dir%=4);
look(90,40);
#dir=5;
elseif(%#dir%=5);
look(60,40);
#dir=1;
endif;
pick(277);
key(attack);
wait(115ms);
pick(%#bloco%);
key(use);
loop;
else;
LOG("&6[zESC]&cDESLIGADA");
stop();
endif;
}$$