Advertisement
icabit

LMS

Jan 26th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. - script LMS#disable -1,{
  2.  
  3. OnInit:
  4. disablenpc "All Job Manager";
  5. end;
  6. }
  7.  
  8. - script LMS -1,{
  9.  
  10. OnHour01:
  11. OnHour07:
  12. OnHour13:
  13. OnHour20:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
  14. goto startlmsevent;
  15.  
  16. startlmsevent:
  17. announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
  18. sleep2 10000;
  19. announce "Mr. Manager: Those who want to play, please proceed to Prontera and enter the portal.",0;
  20. enablenpc "All Job Manager";
  21. sleep2 10000;
  22. announce "Mr. Manager: After 1 Minute the portal will close.",0;
  23. sleep2 10000;
  24. announce "Mr. Manager: Please go to Prontera and enter the portal now if you want to join. The prize is 200m coin",0;
  25. sleep2 10000;
  26. initnpctimer;
  27. end;
  28.  
  29. OnTimer30000:
  30. announce "Mr. Manager: Last 30 seconds.",0;
  31. sleep2 10000;
  32. announce "Mr. Manager: If you want to join please enter the portal in Prontera.",0;
  33. end;
  34.  
  35. OnTimer50000:
  36. announce "Mr. Manager: Last 10 seconds.",0;
  37. end;
  38.  
  39. OnTimer55000:
  40. announce "Mr. Manager: 5.",0;
  41. end;
  42.  
  43. OnTimer56000:
  44. announce "Mr. Manager: 4.",0;
  45. end;
  46.  
  47. OnTimer57000:
  48. announce "Mr. Manager: 3.",0;
  49. end;
  50.  
  51. OnTimer58000:
  52. announce "Mr. Manager: 2.",0;
  53. end;
  54.  
  55. OnTimer59000:
  56. announce "Mr. Manager: 1.",0;
  57. end;
  58.  
  59. OnTimer60000:
  60. announce "Mr. Manager: Time's up.",0;
  61. end;
  62.  
  63. OnTimer61000:
  64. disablenpc "All Job Manager";
  65. donpcevent "lmscheck::OnEnable";
  66. stopnpctimer;
  67. end;
  68. }
  69. //---------All Job Registration---------------
  70. prontera,156,173,0 warp All Job Manager 2,2,guild_vs1,0,0
  71.  
  72.  
  73. //--------------------------
  74. - script lmscheck -1,{
  75.  
  76. OnEnable:
  77. pvpoff "guild_vs1";
  78. mapannounce "guild_vs1","Mr. Manager:The Last Man Standing Event will start shortly",0;
  79. sleep2 10000;
  80. mapannounce "guild_vs1","Mr. Manager:But before we start this is just a few reminders..",0;
  81. sleep2 10000;
  82. mapannounce "guild_vs1","Mr. Manager:Using all kinds of skill is allowed..",0;
  83. sleep2 10000;
  84. mapannounce "guild_vs1","Mr. Manager: Only the Last Man Standing will win this event!!",0;
  85. sleep2 10000;
  86. mapannounce "guild_vs1","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
  87. sleep2 10000;
  88. goto L_Start;
  89. end;
  90. L_Start:
  91. if(getmapusers("guild_vs1") == 1) goto L_Champ;
  92. if(getmapusers("guild_vs1") == 0) goto L_None;
  93. if(getmapusers("guild_vs1") > 1) {
  94. mapannounce "guild_vs1","Mr. Manager: Get ready at the count of 5 we will start!....",0;
  95. sleep2 10000;
  96. mapannounce "guild_vs1","Mr. Manager: 5",0;
  97. sleep2 5000;
  98. mapannounce "guild_vs1","Mr. Manager: 4",0;
  99. sleep2 4000;
  100. mapannounce "guild_vs1","Mr. Manager: 3",0;
  101. sleep2 3000;
  102. mapannounce "guild_vs1","Mr. Manager: 2",0;
  103. sleep2 2000;
  104. mapannounce "guild_vs1","Mr. Manager: 1",0;
  105. sleep2 1000;
  106. pvpon "guild_vs1";
  107. goto timer;
  108. end;
  109. }
  110. timer:
  111. initnpctimer;
  112. end;
  113.  
  114. OnTimer1000:
  115. end;
  116.  
  117. OnTimer1100:
  118. if(getmapusers("guild_vs1") == 0) goto L_None;
  119. if(getmapusers("guild_vs1") == 1) goto L_Champ;
  120. if(getmapusers("guild_vs1") > 2) goto timer;
  121. if(getmapusers("guild_vs1") == 2) goto champ;
  122. stopnpctimer;
  123. end;
  124.  
  125. champ:
  126. announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
  127. sleep2 10000;
  128. if(getmapusers("guild_vs1") == 1) goto L_Champ;
  129. if(getmapusers("guild_vs1") > 1) goto timer;
  130. end;
  131.  
  132. L_Champ:
  133. mapannounce "guild_vs1","Mr. Banker: Please talk to me to get your prize..",0;
  134. pvpoff "guild_vs1";
  135. announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
  136. getitem 671,2; // Change This item id to what ever you want . item id,amount
  137. dispbottom "You just won the event";
  138. mes "You will return now";
  139. warp "prontera",156,191;
  140. stopnpctimer;
  141. end;
  142.  
  143. L_None:
  144. pvpoff "guild_vs1";
  145. stopnpctimer;
  146. end;
  147. }
  148. //----- Die = warp prt -----
  149. - script Killa_warp1 -1,{
  150.  
  151. OnPCDieEvent:
  152. getmapxy(.@map$,.@x,.@y,0);
  153. if(.@map$=="guild_vs1")
  154. {
  155. set #kill_point, 0;
  156. announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
  157. warp "prontera",156,191;
  158. atcommand "@alive";
  159. end;
  160. }
  161. OnPCKillEvent:
  162. getmapxy(.@map$,.@x,.@y,0);
  163. if(.@map$=="guild_vs1")
  164. {
  165. set #kill_point,#kill_point+1;
  166. if ( #kill_point % 4 == 0) {
  167. announce ""+strcharinfo(0)+" have made 4 Consecutive Kills!!He will be granted an item",bc_all;
  168. getitem 673,1;
  169. end;
  170. }
  171. }
  172. }
  173.  
  174.  
  175.  
  176.  
  177. // == Mapflags
  178. guild_vs1 mapflag noreturn
  179. guild_vs1 mapflag noicewall
  180. guild_vs1 mapflag nowarpto
  181. guild_vs1 mapflag noteleport
  182. guild_vs1 mapflag nosave
  183. guild_vs1 mapflag nomemo
  184. guild_vs1 mapflag nobranch
  185. guild_vs1 mapflag pvp_noguild
  186. guild_vs1 mapflag pvp_noparty
  187. guild_vs1 mapflag nocommand 60
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement