Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. - script nvz_manager -1,{
  2. OnInit:
  3. disablenpc("Novice vs. Zombie");
  4. disablenpc("Prize");
  5. .nvzEventRunning = 0;
  6. .nvzZombieSpawnCount = 4;
  7. end;
  8.  
  9. OnClock0130:
  10. OnClock0830:
  11. OnClock1330:
  12. OnClock1730:
  13. OnClock1930:
  14. OnClock2230:
  15. disablenpc("Prize");
  16. initnpctimer;
  17. announce("Zombie Vs. Novice event will begin in 3 minutes! Please make a level 1 Novice in order to join!", bc_all);
  18. end;
  19.  
  20. OnTimer5000:
  21. announce("At the south of Prontera(Main Town) has appeared npc ' Novice vs. Zombie '!", bc_all);
  22. enablenpc("Novice vs. Zombie");
  23. end;
  24.  
  25. OnTimer60000:
  26. announce("Zombie Vs. Novice event will begin in 2 minutes! Please make a level 1 Novice in order to join!", bc_all);
  27. end;
  28.  
  29. OnTimer120000:
  30. announce("Zombie Vs. Novice event will begin in 1 minutes! Please make a level 1 Novice in order to join!", bc_all);
  31. end;
  32.  
  33. OnTimer150000:
  34. announce("In 30 seconds the monster will be started!", bc_map);
  35. end;
  36.  
  37. OnTimer175000:
  38. announce("Event Zombie Vs. Novice will begin in ~5~!", bc_all);
  39. announce "",0;
  40. end;
  41.  
  42. OnTimer176000:
  43. announce("~4~!", bc_all);
  44. end;
  45.  
  46. OnTimer177000:
  47. announce("~3~!", bc_all);
  48. end;
  49.  
  50. OnTimer178000:
  51. announce("~2~!", bc_all);
  52. end;
  53.  
  54. OnTimer179000:
  55. announce("~1~!", bc_all);
  56. end;
  57.  
  58. OnTimer180000:
  59. .nvzEventRunning = 1;
  60. .nvzZombieCount = .nvzZombieSpawnCount;
  61. announce("The 'Zombie Vs. Novice' Event has begun!", bc_all, 0x00FF00);
  62. disablenpc("Novice vs. Zombie");
  63.  
  64. for(.@i = 1; .@i <= .nvzZombieSpawnCount; .@i++)
  65. monster("quiz_01", 42, 369, "Zombie-" + .@i, 1036, 1, strnpcinfo(3) + "::OnZombieKilled");
  66. end;
  67.  
  68. OnPCLogoutEvent:
  69. OnPCDieEvent:
  70. if( .nvzEventRunning == 0 || strcharinfo(PC_MAP) != "quiz_01" ) end;
  71.  
  72. warp("prontera", 154, 95);
  73. atcommand("@alive");
  74. dispbottom("You have lost...");
  75.  
  76. if( getmapusers("quiz_01") > 1 ) {
  77. announce(getmapusers("quiz_01") + " people still fight for their lives.", bc_map, 0x00FF00);
  78. end;
  79. }
  80.  
  81. if( getmapusers("quiz_01") == 1 ){
  82. killmonsterall("quiz_01");
  83. announce("You have won! Please claim your price at the Prize NPC!", bc_map);
  84. enablenpc("Prize");
  85. .nvzEventRunning = 0;
  86. }
  87.  
  88. if( getmapusers("quiz_01") == 0 ){
  89. killmonsterall("quiz_01");
  90. .nvzEventRunning = 0;
  91. }
  92. end;
  93.  
  94. OnZombieKilled:
  95. .nvzZombieCount--;
  96. if(.nvzZombieCount == 0) {
  97. announce("You have won! Please claim your price at the Prize NPC.", bc_map);
  98. enablenpc("Prize");
  99. announce("'Zombie Vs. Novice' has ended as all Zombies have been killed!", bc_all);
  100. .nvzEventRunning = 0;
  101. }
  102. end;
  103. }
  104.  
  105. quiz_01,42,369,3 script Prize 72,{
  106. announce("In ' Zombie Vs. Novice ' has won" + strcharinfo (0) + "! We congratulate " + ((Sex) ? "him" : "her") + "!", bc_all);
  107. getitem(7539,2);
  108. warp("prontera", 154, 95);
  109. }
  110.  
  111. prontera,156,73,3 script Novice vs. Zombie 1015,{
  112. if (BaseLevel > 1) {
  113. mes("[^0000FFZombie Vs. Novice^000000]");
  114. mes("You are not a level 1 novice");
  115. close;
  116. }
  117.  
  118. mes("[^0000FFZombie Vs. Novice^000000]");
  119. mes("Do you want to join the Zombie Vs. Novice Event?");
  120. next;
  121. switch(select("Yes", "No")) {
  122. case 1:
  123. sc_end(SC_ALL);
  124. sc_start(SC_DECREASEAGI, 300000, 10);
  125. percentheal(100, 100);
  126. atcommand("@storeall");
  127. warp("quiz_01", 42, 369);
  128. break;
  129. case 2:
  130. mes "[^0000FFZombie Vs. Novice^000000]";
  131. mes "Allright, you can join anytime you want.";
  132. close;
  133. break;
  134. }
  135. end;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement