Advertisement
akbare

[Ragnarok] Jumper Event

Jan 25th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. //==========================================================//
  2. //========= Script by RyCHIRO =========//
  3. //========= [url="http://reincarnation-network.com"]http://reincarnation-network.com[/url] =========//
  4. //========= [url="http://chiyan-ro.com"]http://chiyan-ro.com[/url] =========//
  5. //==========================================================//
  6. - script jumpevent -1,{
  7. OnWhisperGlobal:
  8. if ( getgmlevel() < 99 ) end;
  9. L_JumpAdmin:
  10. mes "[Manager]";
  11. mes "^FF0000~Hi GM " + strcharinfo(0) + "!~^000000";
  12. mes "^FF0000The Current Prize is:^000000";
  13. mes "^FF00001. Random Prize:^000000 ^008000"+$jmp_item_amount1+" "+getitemname($jmp_item_id1)+"^000000";
  14. mes "^FF00002. Random Prize:^000000 ^008000"+$jmp_item_amount2+" "+getitemname($jmp_item_id2)+"^000000";
  15. mes "^FF00003. Random Prize:^000000 ^008000"+$jmp_item_amount3+" "+getitemname($jmp_item_id3)+"^000000";
  16. switch(select("Start Jump Event?:Set Prize:Not today Fellas!")){
  17. case 1:
  18. next;
  19. if( $@JumpStart == 1 ){
  20. mes "[Manager]";
  21. mes "I Can't Start The Event!!";
  22. mes "The Event is still ON!!";
  23. next;
  24. goto L_JumpAdmin;
  25. }
  26. next;
  27. mes "[Manager]";
  28. mes "^FF0000~Sure thing!~^000000";
  29. close2;
  30. goto L_StartJmp;
  31. case 2:
  32. next;
  33. mes "[Manager]";
  34. mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  35. menu "Set Prize 1",SP1,"Set Prize 2",SP2,"Set Prize 3",SP3,"Go Back to main",L_JumpAdmin;
  36. SP1:
  37. next;
  38. mes "[Manager]";
  39. mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  40. input $jmp_item_id1;
  41. next;
  42. mes "[Manager]";
  43. mes "^FF0000~How many if this item should I give away?~^000000";
  44. input $jmp_item_amount1;
  45. next;
  46. mes "[Manager]";
  47. mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount1 +" "+ getitemname($jmp_item_id1) +"^000000? ^FF0000Great.~^000000";
  48. next;
  49. goto L_JumpAdmin;
  50. SP2:
  51. next;
  52. mes "[Manager]";
  53. mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  54. input $jmp_item_id2;
  55. next;
  56. mes "[Manager]";
  57. mes "^FF0000~How many if this item should I give away?~^000000";
  58. input $jmp_item_amount2;
  59. next;
  60. mes "[Manager]";
  61. mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount2 +" "+ getitemname($jmp_item_id2) +"^000000? ^FF0000Great.~^000000";
  62. next;
  63. goto L_JumpAdmin;
  64. SP3:
  65. next;
  66. mes "[Manager]";
  67. mes "^FF0000~What should the prize for winning be? Please input the ID.~^000000";
  68. input $jmp_item_id3;
  69. next;
  70. mes "[Manager]";
  71. mes "^FF0000~How many if this item should I give away?~^000000";
  72. input $jmp_item_amount3;
  73. next;
  74. mes "[Manager]";
  75. mes "^FF0000~So, the prize is^000000 ^008000"+ $jmp_item_amount3 +" "+ getitemname($jmp_item_id3) +"^000000? ^FF0000Great.~^000000";
  76. next;
  77. goto L_JumpAdmin;
  78. Case 3:
  79. next;
  80. mes "[Manager]";
  81. mes "Bye!!";
  82. close;
  83. }// End Admin Manager...
  84. OnMinute46:
  85. L_StartJmp:
  86. announce "Jumper Event: Jumper Event will begin in 20 seconds",bc_blue;
  87. sleep2 5000;
  88. announce "Jumper Event: I'm Going to JUMP somewhere..!!",bc_blue;
  89. sleep2 5000;
  90. announce "Jumper Event: By the way I'm going to disguise into a random monster.!!",bc_blue;
  91. sleep2 10000;
  92. announce "Jumper Event: Last 10 seconds",bc_blue;
  93. sleep2 10000;
  94. set $@ran, rand(1,10);
  95. if ($@ran == 10) set $@jmpmap$,"hugel";
  96. if ($@ran == 9) set $@jmpmap$,"yuno";
  97. if ($@ran == 8) set $@jmpmap$,"comodo";
  98. if ($@ran == 7) set $@jmpmap$,"xmas";
  99. if ($@ran == 6) set $@jmpmap$,"aldebaran";
  100. if ($@ran == 5) set $@jmpmap$,"izlude";
  101. if ($@ran == 4) set $@jmpmap$,"payon";
  102. if ($@ran == 3) set $@jmpmap$,"geffen";
  103. if ($@ran == 2) set $@jmpmap$,"morocc";
  104. if ($@ran == 1) set $@jmpmap$,"prontera";
  105. announce "Jumper Event: Go Find me!! I'm here in "+$@jmpmap$+"!!!",bc_blue;
  106. set $@JmpRnd,10;
  107. goto onstart;
  108. onstart:
  109. if ($@JmpRnd == 0){
  110. stopnpctimer;
  111. set $@JumpStart,0;
  112. sleep2 3000;
  113. announce "Jumper Event: Jumper Event is now OVER!!",bc_blue;
  114. sleep2 15000;
  115. movenpc "Jumper"+$@ran+"",1,1; //move the NPC
  116. setnpcdisplay "Jumper"+$@ran+"",1002;
  117. end;
  118. }
  119. if ($@JmpRnd == 10){
  120. goto onstart2;
  121. }
  122. stopnpctimer;
  123. sleep2 3000;
  124. announce "Jumper Event: Next Round will begin in 15 seconds...",bc_blue;
  125. sleep2 15000;
  126. setnpcdisplay "Jumper"+$@ran+"",1002;
  127. movenpc "Jumper"+$@ran+"",1,1; //move the NPC
  128. set $@ran, rand(1,10);
  129. if ($@ran == 10) set $@jmpmap$,"hugel";
  130. if ($@ran == 9) set $@jmpmap$,"yuno";
  131. if ($@ran == 8) set $@jmpmap$,"comodo";
  132. if ($@ran == 7) set $@jmpmap$,"xmas";
  133. if ($@ran == 6) set $@jmpmap$,"aldebaran";
  134. if ($@ran == 5) set $@jmpmap$,"izlude";
  135. if ($@ran == 4) set $@jmpmap$,"payon";
  136. if ($@ran == 3) set $@jmpmap$,"geffen";
  137. if ($@ran == 2) set $@jmpmap$,"morocc";
  138. if ($@ran == 1) set $@jmpmap$,"prontera";
  139. announce "Jumper Event: Go Find me!! I'm here in "+$@jmpmap$+"!!!",bc_blue;
  140. goto onstart2;
  141. onstart2:
  142. set $monster, rand(1001,1995);
  143. if($monster == 1003 || $monster == 1218 || $monster == 1006 || $monster == 1017 || $monster == 1021 || $monster == 1022 || $monster == 1027 || $monster == 1043 || $monster == 1006 || $monster == 1136 || $monster == 1137 || $monster == 1168 || $monster == 1171 || $monster == 1172 || $monster == 1173 || $monster == 1181 || $monster == 1210 || $monster == 1223 || $monster == 1284 || ($monster >= 1324 && $monster <= 1363) || $monster == 1006 || $monster == 1407 || $monster == 1411 || $monster == 1414 || $monster == 1496 || $monster == 1501 || $monster == 1900){ goto onstart2; end; }
  144. while(1) { //Initiate an infinite loop
  145. set $@jx,rand(0,300); //Set a randon X coordinate
  146. set $@jy,rand(0,300); //Set a random Y coordinate
  147. if(checkcell(""+$@jmpmap$+"",$@jx,$@jy,cell_chkpass)) break; //If cell is walkable break out of the loop
  148. }
  149. initnpctimer;
  150. set $@JumpStart,1;
  151. movenpc "Jumper"+$@ran+"",$@jx,$@jy; //move the NPC
  152. setnpcdisplay "Jumper"+$@ran+"",$monster;
  153. set $@JmpRnd,$@JmpRnd-1;
  154. end;
  155. OnTimer60000:
  156. set $@JumpStart,0;
  157. announce "Jumper Event: WOW no One Found ME!! I'm here in "+$@jmpmap$+" "+$@jx+" "+$@jy+"!!",bc_blue;
  158. sleep2 3000;
  159. donpcevent "jumpevent::onstart";
  160. end;
  161. }//End Script
  162. - script Jumper -1,{
  163. if( $@JumpStart == 0 ){
  164. mes "[Jumper Event]";
  165. mes "I'm sorry, Someone Found me..";
  166. close;
  167. }
  168. set $@prize, rand(1,100);
  169. if ( $@prize <= 50 ){
  170. set $@JumpStart,0;
  171. getitem $jmp_item_id1,$jmp_item_amount1;
  172. announce "• SP-John Best •: "+strcharinfo(0)+" is the WINNER!! I'm here in "+$@jmpmap$+" "+$@jx+" "+$@jy+"!!",bc_blue;
  173. donpcevent "jumpevent::onstart";
  174. mes "[Jumper Event]";
  175. mes "WOW you found me!!";
  176. mes "Take this as a REWARD!!";
  177. mes "You got ^008000"+ $jmp_item_amount1 +" "+ getitemname($jmp_item_id1) +"^000000";
  178. close;
  179. end;
  180. }
  181. set $@prize, rand(1,100);
  182. if ( $@prize <= 49 ){
  183. set $@JumpStart,0;
  184. getitem $jmp_item_id2,$jmp_item_amount2;
  185. announce "Jumper Event: "+strcharinfo(0)+" is the WINNER!! I'm here in "+$@jmpmap$+" "+$@jx+" "+$@jy+"!!",bc_blue;
  186. donpcevent "jumpevent::onstart";
  187. mes "[• SP-John Best •]";
  188. mes "WOW you found me!!";
  189. mes "Take this as a REWARD!!";
  190. mes "You got ^008000"+ $jmp_item_amount2 +" "+ getitemname($jmp_item_id2) +"^000000";
  191. close;
  192. end;
  193. }
  194. set $@prize, rand(1,100);
  195. if ( $@prize <= 48 ){
  196. set $@JumpStart,0;
  197. getitem $jmp_item_id3,$jmp_item_amount3;
  198. announce "Jumper Event: "+strcharinfo(0)+" is the WINNER!! I'm here in "+$@jmpmap$+" "+$@jx+" "+$@jy+"!!",bc_blue;
  199. donpcevent "jumpevent::onstart";
  200. mes "[Jumper Event]";
  201. mes "WOW you found me!!";
  202. mes "Take this as a REWARD!!";
  203. mes "You got ^008000"+ $jmp_item_amount3 +" "+ getitemname($jmp_item_id3) +"^000000";
  204. close;
  205. end;
  206. }
  207. }//End Script
  208. prontera,1,1,1 duplicate(Jumper) Jumper1 1002
  209. morocc,1,1,1 duplicate(Jumper) Jumper2 1002
  210. geffen,1,1,1 duplicate(Jumper) Jumper3 1002
  211. payon,1,1,1 duplicate(Jumper) Jumper4 1002
  212. izlude,1,1,1 duplicate(Jumper) Jumper5 1002
  213. aldebaran,1,1,1 duplicate(Jumper) Jumper6 1002
  214. xmas,1,1,1 duplicate(Jumper) Jumper7 1002
  215. comodo,1,1,1 duplicate(Jumper) Jumper8 1002
  216. yuno,1,1,1 duplicate(Jumper) Jumper9 1002
  217. hugel,1,1,1 duplicate(Jumper) Jumper10 1002
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement