Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- //
- // Author Goddameit
- // Version 2015/12/20
- // Web http://goo.gl/0vY9GV
- //
- //
- - script bot_at -1,{
- function __onoff ;
- OnInit:
- bindatcmd "boton",strnpcinfo(3)+"::OnDo";
- bindatcmd "botoff",strnpcinfo(3)+"::OnDo2";
- bindatcmd "botend",strnpcinfo(3)+"::OnDo2";
- end;
- OnDo:
- sc_end SC_BOT;
- .@SP_BOT_NA = 1;
- while(1)
- {
- .@C = select("[Finish]","[Cancel]","Normal Attack "+__onoff(.@SP_BOT_NA))k;
- if( .@C == 1 )
- break;
- else if( .@C == 2 )
- close;
- else
- switch(.@C)
- {
- case 3:
- .@SP_BOT_NA = !.@SP_BOT_NA;
- break;
- }
- }
- message strcharinfo(0),"RUN";
- if( .@C == 1 || .@C > 2 )
- {
- mes "OK";
- close2;
- }
- sc_start4 SC_BOT,600000,.@SP_BOT_NA,0,0,0;
- end;
- OnDo2:
- sc_end SC_BOT;
- message strcharinfo(0),"END";
- end;
- function __onoff {
- if(getarg(0) == 0)
- return "^BEBEBE[OFF]^000000";
- else
- return "^000088[ON]^000000";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement