Advertisement
Guest User

bot

a guest
Dec 20th, 2015
900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. //
  2. //
  3. // Author Goddameit
  4. // Version 2015/12/20
  5. // Web http://goo.gl/0vY9GV
  6. //
  7. //
  8. - script bot_at -1,{
  9. function __onoff ;
  10. OnInit:
  11. bindatcmd "boton",strnpcinfo(3)+"::OnDo";
  12. bindatcmd "botoff",strnpcinfo(3)+"::OnDo2";
  13. bindatcmd "botend",strnpcinfo(3)+"::OnDo2";
  14. end;
  15. OnDo:
  16. sc_end SC_BOT;
  17. .@SP_BOT_NA = 1;
  18. while(1)
  19. {
  20. .@C = select("[Finish]","[Cancel]","Normal Attack "+__onoff(.@SP_BOT_NA))k;
  21. if( .@C == 1 )
  22. break;
  23. else if( .@C == 2 )
  24. close;
  25. else
  26. switch(.@C)
  27. {
  28. case 3:
  29. .@SP_BOT_NA = !.@SP_BOT_NA;
  30. break;
  31. }
  32. }
  33. message strcharinfo(0),"RUN";
  34. if( .@C == 1 || .@C > 2 )
  35. {
  36. mes "OK";
  37. close2;
  38. }
  39. sc_start4 SC_BOT,600000,.@SP_BOT_NA,0,0,0;
  40. end;
  41. OnDo2:
  42. sc_end SC_BOT;
  43. message strcharinfo(0),"END";
  44. end;
  45. function __onoff {
  46. if(getarg(0) == 0)
  47. return "^BEBEBE[OFF]^000000";
  48. else
  49. return "^000088[ON]^000000";
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement