Advertisement
Guest User

Untitled

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