yuhsing

Untitled

May 10th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. quiz_00,27,116,4 script Prophet 922,{
  2. end;
  3.  
  4. Ondeact:
  5. set $@disguiseactive,0;
  6. stopnpctimer;
  7. end;
  8.  
  9. OnDisguiseStart:
  10. if(( $round >= $roundmax) ) {
  11. set $@disguiseactive,0;
  12. donpcevent "EventWarp::OnEventFind";
  13. set $@currentmob,0;
  14. setnpcdisplay("Prophet",922);
  15. npctalk $round + " rounds completed. The event is over...!";
  16. mapannounce "quiz_00","[ Disguise ]: " + $round + " Rounds completed. The event is over...! The Event will start Again later.",bc_blue;
  17. set $round,0;
  18. sleep2 1000;
  19. mapwarp "quiz_00","bcrotown",133,111;
  20. end;
  21. }
  22. while(!strmobinfo(3,$@currentmob)) {
  23. set $@currentmob,rand(1001,1915);
  24. }
  25. npctalk "Please remember that names are case sensitive and spelling counts. " + $round + " rounds completed of " + $roundmax + "... 5 seconds per transformations!";
  26. sleep 5000;
  27. npctalk "30 seconds remaining to guess what I am.......";
  28. initnpctimer;
  29. setnpcdisplay("Prophet",$@currentmob);
  30. end;
  31.  
  32. OnTimer15000:
  33. npctalk "15 seconds left!";
  34. end;
  35.  
  36. OnTimer25000:
  37. npctalk "5 seconds left!";
  38. end;
  39.  
  40. OnTimer30000:
  41. npctalk "Time is up! The correct answer was " + strmobinfo(1,$@currentmob);
  42. set $@currentmob,0;
  43. set $round,$round+1;
  44. stopnpctimer;
  45. sleep 5000;
  46. callsub OnDisguiseStart;
  47. end;
  48.  
  49. Check:
  50. if($@currentmob == 0) end;
  51. if((strmobinfo(1,$@currentmob) == $@p1$) || (" " + strmobinfo(1,$@currentmob) == $@p2$)) {
  52. getitem $get_item_id,$get_item_amount;
  53. specialeffect2 67;
  54. set $@currentmob,0;
  55. set $round,$round+1;
  56. set $@vtemp,getnpctimer(0)/1000;
  57. set $@vtemp2,$@vtemp % 1000;
  58. npctalk strcharinfo(0) + " was correct! Total time taken: " + $@vtemp + "." + $@vtemp2 + " seconds";
  59. set $DisguiseEventWin$, strcharinfo(0);
  60. stopnpctimer;
  61. sleep 5000;
  62. callsub OnDisguiseStart;
  63. }
  64. end;
  65.  
  66. OnInit:
  67. set $roundmax,20;
  68. set $@disguiseactive,0;
  69. set $get_item_id,7227;
  70. set $get_item_amount,3;
  71. defpattern 1, "([^:]+):(.*)", "Check";
  72. activatepset 1;
  73. end;
  74. }
  75.  
  76. - script DisguiseStarts -1,{
  77.  
  78. OnClock0200:
  79. OnClock1400:
  80. OnClock2100:
  81. OnClock0900:
  82. Onautoact:
  83. set $@disguiseactivea,1;
  84. set $@disguiseactive,1;
  85. announce "[ Disguise ]: The Disguise event will be starting shortly.",bc_blue;
  86. donpcevent "EventWarp::OnEventFind";
  87. sleep2 2000;
  88. announce "[ Disguise ]: Those who want to play, please proceed to the BCRO Town Map ( @go 0 ) and enter the [ Event Warp Portal ].",bc_blue;
  89. sleep2 1000;
  90. initnpctimer;
  91. end;
  92.  
  93. OnTimer30000:
  94. announce "[ Disguise ]: Last 30 seconds.",bc_blue;
  95.  
  96. OnTimer35000:
  97. announce "[ Disguise ]: If you want to join please enter the [ Event Warp Portal ] in BCRO Town Map ( @go 0 ).",bc_blue;
  98. end;
  99.  
  100. OnTimer50000:
  101. announce "[ Disguise ]: Last 10 seconds.",bc_blue;
  102. end;
  103.  
  104. OnTimer55000:
  105. announce "[ Disguise ]: 5.",bc_blue;
  106. end;
  107.  
  108. OnTimer56000:
  109. announce "[ Disguise ]: 4.",bc_blue;
  110. end;
  111.  
  112. OnTimer57000:
  113. announce "[ Disguise ]: 3.",bc_blue;
  114. end;
  115.  
  116. OnTimer58000:
  117. announce "[ Disguise ]: 2.",bc_blue;
  118. end;
  119.  
  120. OnTimer59000:
  121. announce "[ Disguise ]: 1.",bc_blue;
  122. end;
  123.  
  124. OnTimer60000:
  125. announce "[ Disguise ]: Time's up.",bc_blue;
  126. end;
  127.  
  128. OnTimer61000:
  129. set $@disguiseactivea, 0;
  130. if(getmapusers("quiz_00") <= 1) {
  131. set $@disguiseactive, 0;
  132. announce "[ Disguise ]: Event Failed to Start, Atleast Two player's are needed to start the event.",bc_blue;
  133. donpcevent "EventWarp::OnEventFind";
  134. mapwarp "quiz_00","bcrotown",133,111;
  135. stopnpctimer;
  136. end;
  137. }
  138. donpcevent "Prophet::OnDisguiseStart";
  139. end;
  140.  
  141. OnTimer62000:
  142. donpcevent "EventWarp::OnEventFind";
  143. stopnpctimer;
  144. end;
  145.  
  146. Ondeact:
  147. announce "[ Disguise ]: The Disguise event is being Terminated, Accept my Appoligies!",bc_blue;
  148. set $@disguiseactivea,0;
  149. set $@disguiseactive,0;
  150. donpcevent "EventWarp::OnEventFind";
  151. stopnpctimer;
  152. end;
  153. }
  154.  
  155. - script Disguisewall -1,{
  156.  
  157. OnInit:
  158. setwall "quiz_00",27,121,2,2,0,"DisguiseWall1";
  159. setwall "quiz_00",26,121,2,2,0,"DisguiseWall2";
  160. setwall "quiz_00",25,121,2,2,0,"DisguiseWall3";
  161. setwall "quiz_00",24,121,2,2,0,"DisguiseWall4";
  162. setwall "quiz_00",23,121,2,2,0,"DisguiseWall5";
  163. setwall "quiz_00",22,121,2,2,0,"DisguiseWall6";
  164. setwall "quiz_00",22,120,2,2,0,"DisguiseWall7";
  165. setwall "quiz_00",22,119,2,2,0,"DisguiseWall9";
  166. setwall "quiz_00",22,118,2,2,0,"DisguiseWall10";
  167. setwall "quiz_00",22,117,2,2,0,"DisguiseWall11";
  168. setwall "quiz_00",22,116,2,2,0,"DisguiseWall12";
  169. setwall "quiz_00",22,115,2,2,0,"DisguiseWall13";
  170. setwall "quiz_00",22,114,2,2,0,"DisguiseWall14";
  171. setwall "quiz_00",22,113,2,2,0,"DisguiseWall15";
  172. setwall "quiz_00",22,112,2,2,0,"DisguiseWall16";
  173. setwall "quiz_00",23,112,2,2,0,"DisguiseWall17";
  174. setwall "quiz_00",24,112,2,2,0,"DisguiseWall18";
  175. setwall "quiz_00",25,112,2,2,0,"DisguiseWall20";
  176. setwall "quiz_00",26,112,2,2,0,"DisguiseWall21";
  177. setwall "quiz_00",27,112,2,2,0,"DisguiseWall22";
  178. end;
  179. }
Advertisement
Add Comment
Please, Sign In to add comment