Guest User

Untitled

a guest
May 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. - script MVPController -1,{
  2.  
  3. //WHISPER CONTROL
  4. OnWhisperGlobal:
  5.  
  6. //ANTI-NUB\\
  7. if(getgmlevel() != 99) { end; }
  8.  
  9. //MVP LIST
  10. //---------
  11. setarray .mvplist[0], 0, 1038, 1039, 1046, 1059, 1086, 1087, 1096, 1112, 1115, 1120, 1147, 1150, 1157, 1159, 1190, 1251, 1252, 1272, 1312, 1373, 1388, 1389, 1418, 1492, 1511, 1582, 1583, 1623, 1630, 1658, 1685, 1688, 1708, 1719, 1734, 1751, 1768, 1779, 1785, 1832, 1871, 1873, 1885;
  12. //---------
  13.  
  14. //Commands:
  15. if(@whispervar0$=="start") { //First MVP Startup
  16.  
  17. set $@run,1;
  18. announce "Public MVP Room Started! Click the MVP Room Warper to join the fun!",0;
  19. set .spawn,getelementofarray(.mvplist,rand(45));
  20. //announce .spawn,bc_map;
  21. monster "2008rwc_08",0,0,strmobinfo(1,.spawn),.spawn,1,"MVPController::OnMVPKill";
  22. mapannounce "2008rwc_08","A " + strmobinfo(1,.spawn) + " has been spawned! Level: " + strmobinfo(3,.spawn) + " HP: " + strmobinfo(4,.spawn),0;
  23. doevent "Public MVP Room#mvpwarp::OnPMVPRoomOpen";
  24. end;
  25.  
  26. }
  27.  
  28. if(@whispervar0$=="stop") { set $@run,0; announce "Public MVP Room is now Closed.",0; doevent "Public MVP Room#mvpwarp::OnPMVPRoomClose"; mapwarp "2008rwc_08","prontera",155,187; end; } //.. and you're a moron if you don't get this one
  29. if(@whispervar0$=="clear") { killmonster "2008rwc_08","MVPController::OnMVPKill"; mapannounce "2008rwc_08","MVP Room cleared by GM",0; } //Forcekill
  30.  
  31. OnMVPKill:
  32. if($@run==1) {
  33. //attachrid(2000001);
  34. mapannounce "2008rwc_08",strcharinfo(0) + " has killed the MVP! Good Work!",0,0xFF6600;
  35. atcommand "@effect 500";
  36. atcommand "@effect 410";
  37. atcommand "@effect 328";
  38. initnpctimer;
  39. end;
  40. }
  41.  
  42. OnTimer3500:
  43. if($@run==1) {
  44. attachrid(2000001);
  45. mapannounce "2008rwc_08","Spawning next MVP...",0,0x66FF22;
  46. end;
  47. }
  48.  
  49.  
  50. OnTimer10000:
  51. if($@run==1){
  52. attachrid(2000001);
  53. set .spawn,getelementofarray(.mvplist,rand(45));
  54. monster "2008rwc_08",0,0,strmobinfo(1,.spawn),.spawn,1,"MVPController::OnMVPKill";
  55. mapannounce "2008rwc_08","A " + strmobinfo(1,.spawn) + " has been spawned! Level: " + strmobinfo(3,.spawn) + " HP: " + strmobinfo(4,.spawn),0,0xFF0000;
  56. stopnpctimer;
  57. }
  58.  
  59. }
  60.  
  61. 2008rwc_08,50,52,4 script MVP Master#mvpmas 803,{
  62.  
  63. if(@notalk != 1) {
  64. mes "[MVP Master]";
  65. mes "Welcome to the Public MVP Room!";
  66. mes "Here, random MVPs and mobs will spawn";
  67. mes "regularly for you to combat!";
  68. next;
  69.  
  70. mes "[MVP Master]";
  71. mes "Click me if you";
  72. mes "would like to spawn a";
  73. mes "specific MVP,";
  74. mes "or need a Heal.";
  75. set @notalk,1;
  76. close;
  77. }
  78.  
  79. mes "[MVP Master]";
  80. mes "Welcome, select an option.";
  81. menu "Heal me, please!",L_heal,"Spawn a certain MVP",L_spawn;
  82.  
  83. L_heal:
  84. percentheal 100,100;
  85. close;
  86.  
  87. L_spawn:
  88. next;
  89. mes "[MVP Master]";
  90. mes "I apologize,";
  91. mes "This feature is not yet";
  92. mes "available. You will be";
  93. mes "notified when it is";
  94. mes "implemented.";
  95. close;
  96.  
  97. }
  98.  
  99.  
  100. //MVP Room Warper
  101. prontera,149,193,6 script Public MVP Room#mvpwarp 429,{
  102.  
  103. //Room closed - idle chitchat.
  104. if($@op==0) {
  105.  
  106. mes "^FF0000[MVP Room Warper]^000000";
  107. mes "Hi!";
  108. mes "Click on me when";
  109. mes "the Public MVP Room";
  110. mes "is open, and I'll";
  111. mes "warp you there!";
  112. next;
  113. mes "^FF0000[MVP Room Warper]^000000";
  114. mes "For more information";
  115. mes "regarding this room,";
  116. mes "please contact an";
  117. mes "administrator.";
  118. mes " ";
  119. mes "Thanks!";
  120. close;
  121.  
  122. }
  123.  
  124. if($@op==1) {
  125.  
  126. if(Class <= 20) {
  127. mes "^FF0000[MVP Room Warper]^000000";
  128. mes "Sorry, only rebirth classes";
  129. mes "and above can join!";
  130. next;
  131. mes "^FF0000[MVP Room Warper]^000000";
  132. mes "Come back when you've";
  133. mes "been reborn.";
  134. close;
  135. }
  136.  
  137. //Else, player is not a nub....
  138. percentheal 100,100; //I thought I would be nice and heal them before they joined. Aren't I sweet?
  139. warp "2008rwc_08",50,59; //warpwarpwarp
  140. end;
  141. }
  142.  
  143. OnPMVPRoomOpen:
  144.  
  145. set $@op,1;
  146. waitingroom "Public MVP Room Open!",1;
  147. end;
  148.  
  149. OnPMVPRoomClose:
  150.  
  151. set $@op,0;
  152. delwaitingroom;
  153. end;
  154.  
  155. }
Add Comment
Please, Sign In to add comment