Advertisement
Guest User

Untitled

a guest
Oct 14th, 2017
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. prontera,153,232,5 script LMS Manager 483,{
  2.  
  3. mes "[LMS Manager]";
  4. mes "Hello What can I do for you?";
  5. next;
  6. menu "Register",-,"What is LMS?",what,"Leave",leave;
  7. next;
  8. if (!.allow_enter) {
  9. mes "Registration isn't allowed at the moment.";
  10. close;
  11. }
  12. mes "[LMS Manager]";
  13. mes "Thank you for registering Mr. " + strcharinfo(0) + ", Have fun!";
  14. close2;
  15. npctalk ""+strcharinfo(0)+" has registered for the Last Man Standing.";
  16. warp "pvp_n_7-5",103,99;
  17. end;
  18. what:
  19. mes "[LMS Manager]";
  20. mes "LMS is also known as Last Man Standing Event";
  21. next;
  22. mes "[LMS Manager]";
  23. mes "LMS is also like a PvP.";
  24. mes "The only difference is at LMS you will get 10 TCG if you are the Last Man Standing at the arena.";
  25. next;
  26. mes "[LMS Manager]";
  27. mes "That's all";
  28. close;
  29. leave:
  30. mes "[LMS Manager]";
  31. mes "I hope you will register next time";
  32. close;
  33.  
  34.  
  35. OnClock0145:
  36. OnClock0245:
  37. OnClock0345:
  38. OnClock0445:
  39. OnClock0545:
  40. OnClock0645:
  41. OnClock0745:
  42. OnClock0845:
  43. OnClock0945:
  44. OnClock1045:
  45. OnClock1145:
  46. OnClock1245:
  47. OnClock1345:
  48. OnClock1445:
  49. OnClock1545:
  50. OnClock1645:
  51. OnClock1745:
  52. OnClock1845:
  53. OnClock1945:
  54. OnClock2045:
  55. OnClock2145:
  56. OnClock2245:
  57. OnClock2345:
  58. OnMinute45:
  59. enablenpc "LMS Manager";
  60. delwaitingroom;
  61. waitingroom "L.M.S. Registration",0;
  62. pvpoff "pvp_n_7-5";
  63. announce "LMS Manager: The Last Man Standing event will be starting shortly.",0;
  64. sleep2 1000;
  65. .allow_enter = 1;
  66. announce "LMS Manager: Those who want to play, please proceed to Prontera and Register.",0;
  67. sleep2 1000;
  68. announce "LMS Manager: After 1 Minute the Registration will close.",0;
  69. sleep2 60000;
  70. announce "LMS Manager: Please go to prontera and Register now if you want to join.",0;
  71. disablenpc "Mr. Banker";
  72. sleep2 1500;
  73. announce "LMS Manager: Last 30 seconds.",0;
  74. sleep2 30000;
  75. announce "LMS Manager: If you want to join please Register in Prontera.",0;
  76. sleep2 5000;
  77. for( set .@s,10; .@s > 0 ; set .@s,.@s - 1 ){
  78. announce "LMS Manager: "+.@s+" Seconds to go ~ Hurry Up !!",0;
  79. sleep2 1000;
  80. }
  81. .allow_enter = 0;
  82. announce "LMS Manager: Time's up.",0;
  83. delwaitingroom;
  84. disablenpc "LMS Manager";
  85. stopnpctimer;
  86. pvpoff "pvp_n_7-5";
  87. mapannounce "pvp_n_7-5","LMS Manager: The Last Man Standing Event will start shortly",0;
  88. sleep2 1000;
  89. if(getmapusers("pvp_n_7-5") == 1){
  90. mapannounce "pvp_n_7-5","LMS Manager: Event Ended 1 Participant Only..",0;
  91. pvpoff "pvp_n_7-5";
  92. mapwarp "pvp_n_7-5","prontera",156,191;
  93. stopnpctimer;
  94. }
  95. mapannounce "pvp_n_7-5","LMS Manager:But before we start this is just a few reminders..",0;
  96. sleep2 1000;
  97. mapannounce "pvp_n_7-5","LMS Manager: Only the Last Man Standing will win this event!!",0;
  98. sleep2 1000;
  99. mapannounce "pvp_n_7-5","LMS Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
  100. sleep2 1000;
  101. mapannounce "pvp_n_7-5","LMS Manager: Get ready at the count of 5 we will start!....",0;
  102. sleep2 1000;
  103. for( set .@s,5; .@s > 0; set .@s,.@s - 1 ){
  104. mapannounce "pvp_n_7-5","LMS Manager: "+.@s+" Seconds to go ~ !!",0;
  105. sleep2 1000;
  106. }
  107. pvpon "pvp_n_7-5";
  108. enablenpc "Mr. Banker";
  109. initnpctimer;
  110. end;
  111.  
  112. OnTimer5000:
  113. if(getmapusers("pvp_n_7-5") == 0){
  114. Announce "Event Cancelled due to lack of participants.",0;
  115. stopnpctimer;
  116. }else if(getmapusers("pvp_n_7-5") == 1){
  117. mapannounce "pvp_n_7-5","Mr. Banker: Please talk to me to get your prize..",0;
  118. pvpoff "pvp_n_7-5";
  119. stopnpctimer;
  120. }else if(getmapusers("pvp_n_7-5") == 2){
  121. mapannounce "pvp_n_7-5","Mr. Banker: Last 2 Brave warriors are still alive!",0;
  122. initnpctimer;
  123. }else if(getmapusers("pvp_n_7-5") > 2){
  124. initnpctimer;
  125. }
  126. end;
  127.  
  128. OnInit:
  129. disablenpc "Mr. Banker";
  130. disablenpc "LMS Manager";
  131. end;
  132. }
  133. //------------------------
  134.  
  135. //pvp_n_7-5,100,100,3 script Checker 780,{
  136.  
  137. //mes "[Checker]";
  138. //mes "Hi " + strcharinfo(0) + ", Want to check how many are you here?";
  139. //next;
  140. //mes "There are currently ["+getmapusers("pvp_n_7-5")+"]players on map";
  141. //close;
  142. //
  143. //OnInit:
  144. //waitingroom "Map Checker",0;
  145. //end;
  146. //}
  147.  
  148. //--------------------------
  149.  
  150. //--------------------------
  151. pvp_n_7-5,99,100,3 script Mr. Banker 56,{
  152. if(getmapusers("pvp_n_7-5") > 1){
  153. enablenpc "Mr. Banker";
  154. npctalk "Only the last Survivor can talk with me.";
  155. end;
  156. }
  157. mes "[banker]";
  158. mes "Congrats. You've won.";
  159. next;
  160. announce "Mr. Banker: We have a winner! well done "+strcharinfo(0)+".",0;
  161. getitem 6417, 3;
  162. mes "You will return now";
  163. close2;
  164. warp "prontera",156,228;
  165. disablenpc "Mr. Banker";
  166. end;
  167.  
  168. OnInit:
  169. while(1){
  170. delwaitingroom;
  171. waitingroom "["+getmapusers("pvp_n_7-5")+"] Participants ",0;
  172. sleep 1000;
  173. }
  174. end;
  175.  
  176.  
  177. OnPCDieEvent:
  178. if( strcharinfo(3) != "pvp_n_7-5")end;
  179. announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
  180. sleep2 100;
  181. warp "prontera",156,191;
  182. end;
  183.  
  184. }
  185.  
  186.  
  187. // == Mapflags
  188. pvp_n_7-5 mapflag pvp
  189. pvp_n_7-5 mapflag nowarp
  190. pvp_n_7-5 mapflag nowarpto
  191. pvp_n_7-5 mapflag noteleport
  192. pvp_n_7-5 mapflag nosave
  193. pvp_n_7-5 mapflag nomemo
  194. pvp_n_7-5 mapflag nobranch
  195. pvp_n_7-5 mapflag pvp_noparty
  196. pvp_n_7-5 mapflag pvp_noguild
  197.  
  198. ////////////////
  199. - script dualclientkicker -1,{
  200. OnPCLoadMapEvent:
  201. set .@charmap$, strcharinfo(3);
  202. query_sql("SELECT FIND_IN_SET('"+.@charmap$+"', '"+.maps$+"');",.@q);
  203. if(.@charmap$!=.tmp$[(.@q-1)]) end;
  204. set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE `account_id` IN (SELECT `account_id` FROM `login` WHERE `last_ip` = (SELECT `last_ip` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND `online` <> 0;",.@a);
  205. if(.@len-1) {
  206. for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
  207. getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d]));
  208. if(.tmp$[(.@q-1)]==.@map$&&rid2name(.@a[.@d])!=strcharinfo(0)) {
  209. dispbottom "Duel accounts not allowed in LMS.";
  210. warp "geffen",0,0;
  211. }
  212. }
  213. }
  214. end;
  215.  
  216. OnInit:
  217. set .maps$ , "pvp_n_7-5";
  218. explode( .tmp$ , .maps$, ",") ;
  219. set .lens , getarraysize(.tmp$) ;
  220. for(set .a,0;.a<.lens;set .a,.a+1)
  221. setmapflag .tmp$[.a], mf_loadevent ;
  222. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement