Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. - script LMS#disable -1,{
  2.  
  3. OnInit:
  4. disablenpc "Mr. Banker";
  5. disablenpc "All Job Manager";
  6. end;
  7. }
  8.  
  9. - script LMS -1,{
  10.  
  11. OnClock0100:
  12. OnClock0400:
  13. OnClock0700:
  14. OnClock1000:
  15. OnClock1300:
  16. OnClock1600:
  17. OnClock1900:
  18. OnClock2200:
  19.  
  20.  
  21. startlmsevent:
  22. announce "LMS: The Last Man Standing event will be starting shortly.",0;
  23. sleep2 10000;
  24. announce "LMS: Those who want to play, please proceed to Prontera and Register.",0;
  25. sleep2 10000;
  26. announce "LMS: After 1 Minute the Registration will close.",0;
  27. sleep2 10000;
  28. announce "LMS: Please go to Prontera and Register now if you want to join.",0;
  29. enablenpc "All Job Manager";
  30. initnpctimer;
  31. end;
  32.  
  33. OnTimer30000:
  34. announce "LMS: Last 30 seconds.",0;
  35. sleep2 5000;
  36. announce "LMS: If you want to join please Register in Prontera.",0;
  37. end;
  38.  
  39. OnTimer50000:
  40. announce "LMS: Last 10 seconds.",0;
  41. end;
  42.  
  43. OnTimer55000:
  44. announce "LMS: 5.",0;
  45. end;
  46.  
  47. OnTimer56000:
  48. announce "LMS: 4.",0;
  49. end;
  50.  
  51. OnTimer57000:
  52. announce "LMS: 3.",0;
  53. end;
  54.  
  55. OnTimer58000:
  56. announce "LMS: 2.",0;
  57. end;
  58.  
  59. OnTimer59000:
  60. announce "LMS: 1.",0;
  61. end;
  62.  
  63. OnTimer60000:
  64. announce "LMS: Time's up.",0;
  65. end;
  66.  
  67. OnTimer61000:
  68. disablenpc "All Job Manager";
  69. donpcevent "Mr. Banker::OnEnable";
  70. stopnpctimer;
  71. end;
  72. }
  73. //---------All Job Registration---------------
  74. umbala,95,153,4 script All Job Manager 106,{
  75. if( Class == Job_Novice ){ mes "Novice cant join."; close; }
  76. mes "[LMS]";
  77. mes "Hello What can I do for you?";
  78. next;
  79. menu "Register",-,"What is LMS?",what,"Leave",leave;
  80. next;
  81. mes "[LMS]";
  82. mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
  83.  
  84. warp "pvp_n_2-5",99,101;
  85. end;
  86. what:
  87. mes "[LMS]";
  88. mes "LMS is also known as Last Man Standing Event";
  89. next;
  90. mes "[LMS]";
  91. mes "LMS is also like a PvP.";
  92. mes "The only difference is at LMS you will get 5pcs. of Poring Coins if you are the Last Man Standing at the arena.";
  93. next;
  94. mes "[LMS]";
  95. mes "That's all";
  96. close;
  97. leave:
  98. mes "[LMS]";
  99. mes "I hope you will register next time";
  100. close;
  101.  
  102.  
  103. }
  104.  
  105. //--------------------------
  106.  
  107. //--------------------------
  108. pvp_n_2-5,99,100,3 script Mr. Banker 56,{
  109.  
  110. mes "[Banker]";
  111. mes "Congrats. You've won.";
  112. next;
  113. announce "LMS: We have a winner! well done "+strcharinfo(0)+".",0;
  114. getitem 7539, 5;// Change This item id to what ever you want . item id,amount
  115. dispbottom "5 pcs of Poring Coins";
  116. mes "You will return now";
  117. warp "prontera",156,180;
  118. disablenpc "Mr. Banker";
  119. close;
  120. end;
  121.  
  122. OnEnable:
  123. pvpoff "pvp_n_1-5";
  124. mapannounce "pvp_n_2-5","LMS: The Last Man Standing Event will start shortly",0;
  125. sleep2 10000;
  126. mapannounce "pvp_n_2-5","LMS: But before we start this is just a few reminders..",0;
  127. sleep2 10000;
  128. mapannounce "pvp_n_2-5","LMS: Using Cloaking , Hiding is strictly not allowed..",0;
  129. sleep2 10000;
  130. mapannounce "pvp_n_2-5","LMS: Only the Last Man Standing will win this event!!",0;
  131. sleep2 10000;
  132. mapannounce "pvp_n_2-5","LMS: What are we waiting for? Let's Get Ready to Rumble!!...",0;
  133. sleep2 10000;
  134. goto L_Start;
  135. end;
  136. L_Start:
  137. if(getmapusers("pvp_n_2-5") == 1) goto L_exit;
  138. if(getmapusers("pvp_n_2-5") == 0) goto L_None;
  139. if(getmapusers("pvp_n_2-5") > 1) {
  140. mapannounce "pvp_n_2-5","LMS: Get ready at the count of 5 we will start!....",0;
  141. sleep2 10000;
  142. mapannounce "pvp_n_2-5"," LMS: 5",0;
  143. sleep2 5000;
  144. mapannounce "pvp_n_2-5","LMS: 4",0;
  145. sleep2 4000;
  146. mapannounce "pvp_n_2-5","LMS: 3",0;
  147. sleep2 3000;
  148. mapannounce "pvp_n_2-5","LMS: 2",0;
  149. sleep2 2000;
  150. mapannounce "pvp_n_2-5","LMS: 1",0;
  151. sleep2 1000;
  152. pvpon "pvp_n_2-5";
  153. goto timer;
  154. end;
  155. }
  156. timer:
  157. initnpctimer;
  158. end;
  159.  
  160. OnTimer1000:
  161. end;
  162.  
  163. OnTimer1100:
  164. if(getmapusers("pvp_n_2-5") == 1) goto L_Champ;
  165. if(getmapusers("pvp_n_2-5") > 2) goto timer;
  166. if(getmapusers("pvp_n_2-5") == 2) goto champ;
  167. stopnpctimer;
  168. end;
  169.  
  170. champ:
  171. announce "LMS: Last 2 Brave warriors are still alive!",0;
  172. sleep2 10000;
  173. if(getmapusers("pvp_n_2-5") == 1) goto L_Champ;
  174. if(getmapusers("pvp_n_2-5") > 1) goto timer;
  175. end;
  176.  
  177. L_Champ:
  178. mapannounce "pvp_n_2-5","LMS: Please talk to me to get your prize..",0;
  179. pvpoff "pvp_n_2-5";
  180. enablenpc "Mr. Banker";
  181. end;
  182.  
  183. L_None:
  184. disablenpc "Mr. Banker";
  185. pvpoff "pvp_n_2-5";
  186. end;
  187. L_exit:
  188. announce "Only 1 Joins LMS",0;
  189. sleep2 3000;
  190. announce "I'm not in the mood to play the event",0;
  191. sleep2 3000;
  192. announce "The event is over , NO WINNER",0;
  193. sleep2 3000;
  194. announce "Tnx for playing",0;
  195. mapwarp "pvp_n_2-5","prontera",156,180;
  196. end;
  197. }
  198. //----- Die = warp prt -----
  199. - script Killa_warp -1,{
  200.  
  201. OnPCDieEvent:
  202. getmapxy(.@map$,.@x,.@y,0);
  203. if(.@map$=="pvp_n_2-5")
  204. {
  205. set #kill_point, 0;
  206. announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
  207. warp "prontera",156,180;
  208. end;
  209. }
  210. OnPCKillEvent:
  211. getmapxy(.@map$,.@x,.@y,0);
  212. if(.@map$=="pvp_n_2-5")
  213. {
  214. set #kill_point,#kill_point+1;
  215. if ( #kill_point % 4 == 0) {
  216. announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all;
  217. getitem 673, 1;
  218. end;
  219. }
  220. }
  221. }
  222.  
  223. // == Mapflags
  224.  
  225. pvp_n_1-5 mapflag nowarp
  226. pvp_n_1-5 mapflag nowarpto
  227. pvp_n_1-5 mapflag noteleport
  228. pvp_n_1-5 mapflag nosave
  229. pvp_n_1-5 mapflag nomemo
  230. pvp_n_1-5 mapflag nobranch
  231. pvp_n_1-5 mapflag pvp_noparty
  232. pvp_n_1-5 mapflag restricted 1
  233. pvp_n_1-5 mapflag gvg off
  234. //pvp_n_1-5 mapflag pvp
  235. pvp_n_1-5 mapflag nocommand 40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement