Advertisement
Emistry

[RO] Farming with Simple Math Antibot

Oct 15th, 2016
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. // https://rathena.org/board/topic/107629-antibot-for-farming-room/
  2.  
  3. - script AntiBot1 -1,{
  4. function GetString;
  5.  
  6. OnCheck:
  7. if ( rand( 100 ) < 10 ) { 10% trigger
  8. switch( rand(2) ){
  9. Case 0:
  10. set .@String$,GetString( 15,rand(5,10) );
  11. mes "Input the ^FF0000RED COLOUR^000000 part";
  12. mes "^0000FF"+GetString( 15,rand(5,10) )+"^FF0000"+.@String$+"^0000FF"+GetString( 15,rand(3,10) )+"^000000";
  13. input .@Input$;
  14. if( .@Input$ != .@String$ ){
  15. mes "Wrong..";
  16. atcommand "@kick "+strcharinfo(0);
  17. }
  18. break;
  19.  
  20. Case 1:
  21. set .@A,rand(1000);
  22. set .@B,rand(1000);
  23. mes "If A = "+.@A+" B = "+.@B;
  24. switch( rand(4) ){
  25. Case 0:
  26. set .@Answer,.@A + .@B;
  27. mes "How many is A + B ?";
  28. break;
  29. Case 1:
  30. set .@Answer,.@A - .@B;
  31. mes "How many is A - B ?";
  32. break;
  33. Case 2:
  34. set .@Answer,.@A * .@B;
  35. mes "How many is A * B ?";
  36. break;
  37. Case 3:
  38. set .@Answer,.@A / .@B;
  39. mes "How many is A / B ?";
  40. break;
  41. }
  42. input .@Input;
  43. if( .@Input != .@Answer ){
  44. mes "Wrong";
  45. atcommand "@kick "+strcharinfo(0);
  46. }
  47. break;
  48. }
  49. close;
  50. }
  51. end;
  52.  
  53. function GetString {
  54. if( getarg(0) & 1 ) setarray .@List$[ getarraysize( .@List$ ) ],"1","2","3","4","5","6","7","8","9";
  55. if( getarg(0) & 2 ) setarray .@List$[ getarraysize( .@List$ ) ],"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z";
  56. if( getarg(0) & 4 ) setarray .@List$[ getarraysize( .@List$ ) ],"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z";
  57. if( getarg(0) & 8 ) setarray .@List$[ getarraysize( .@List$ ) ],"!","@","#","$","%","^","&","*","(",")","-","=","/","+";
  58.  
  59. set .@Str$,"";
  60. while( getstrlen( .@Str$ ) < getarg(1) )
  61. set .@Str$,.@Str$ + .@List$[ rand( getarraysize( .@List$ ) ) ];
  62.  
  63. return .@Str$;
  64.  
  65. }
  66.  
  67. }
  68.  
  69. Welgaia,87,149,5 script Farming Room 871,{
  70. mes "[Game Master]";
  71. mes "Hello, "+strcharinfo(0)+" I'm Game Master.";
  72. next;
  73. mes "Solve Antibot";
  74. callfunc "AntiBot1";
  75. next;
  76. menu "Poring Coin Room",O_Damn;
  77.  
  78. O_Rule:
  79. mes "[Game Master]";
  80. mes "Gold Room";
  81. next;
  82. warp "ordeal_3-2",29,152;
  83. L_All:
  84. announce "Game Master: "+strcharinfo(0)+" Enter Gold Room",0;
  85. close;
  86.  
  87. O_Damn:
  88. mes "[Game Master]";
  89. mes "Farming Room";
  90. next;
  91. warp "bat_c02",82,101;
  92. L_Blue:
  93. announce "Game Master: "+strcharinfo(0)+" Enter Poring Coin Room",0;
  94. close;
  95.  
  96. LCancel:
  97. mes "[Game Master]";
  98. mes "Ygg Seed Room";
  99. next;
  100. warp "ordeal_2-2",26,153;
  101.  
  102. L_Red:
  103. announce "Game Master: "+strcharinfo(0)+" Enter Ygg Seed Room",0;
  104. close;
  105.  
  106. OnInit:
  107. waitingroom "Hunt Poring Coin!",0;
  108. end;
  109. }
  110.  
  111. bat_c02,82,101,6 script Game Master 759,{
  112. mes "[Game Master]";
  113. mes "Hello, "+strcharinfo(0)+" I'm Game Master.";
  114. next;
  115. menu "Free Buff",F_Buff,"Heal Me",Heal_Me,"Main Town",M_To;
  116.  
  117. F_Buff:
  118. percentheal 100,100;
  119. skilleffect 34,0; sc_start SC_BLESSING,360000,10;
  120. skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
  121. specialeffect2 300;
  122. emotion e_kis;
  123. close;
  124.  
  125.  
  126. Heal_Me:
  127. percentheal 100,100;
  128. end;
  129.  
  130. M_To:
  131. mes "Hello, "+strcharinfo(0)+" Wanna Go Main Town.";
  132. next;
  133. mes "Bye!!";
  134. warp "Welgaia",156,101;
  135. close;
  136.  
  137. OnInit:
  138. waitingroom "Farming Room",0;
  139. end;
  140. }
  141.  
  142. // ---- Monsters for the Farming Room
  143. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  144. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  145. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  146. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  147. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  148. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  149. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  150. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  151. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  152. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  153. bat_c02,0,0,0,0 monster Kill Me Please! 1815,50,1000,1100,"AntiBot1::OnCheck"
  154. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  155. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  156. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  157. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  158. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  159. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  160. bat_c02,0,0,0,0 monster Kill Me Please! 1815,80,300,330"AntiBot1::OnCheck"
  161. bat_c02,0,0,0,0 monster Kill Me Please! 1815,500,300,330"AntiBot1::OnCheck"
  162.  
  163. //bat_c02,0,0,0,0 monster Kill Me Please! 1904,10,2000,2200
  164.  
  165.  
  166. // mapflag //
  167. bat_c02 mapflag nosave SavePoint
  168. bat_c02 mapflag noexp
  169. bat_c02 mapflag noskill
  170. bat_c02 mapflag nomemo
  171. bat_c02 mapflag nobranch
  172. bat_c02 mapflag nopvp
  173. bat_c02 mapflag nogvg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement