Advertisement
Guest User

Untitled

a guest
Nov 20th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.72 KB | None | 0 0
  1. -   script  left4dead   -1,{
  2. OnInit: bindatcmd("nvz","left4dead::OnEvent"); end;
  3.  
  4. OnEvent:
  5.     announce "Event Zombie Vs. Novice will begin in ~5~",0;
  6.     sleep 1000;
  7.     announce "Event Zombie Vs. Novice will begin in ~4~",0;
  8.     sleep 1000;
  9.     announce "Event Zombie Vs. Novice will begin in ~3~",0;
  10.     sleep 1000;
  11.     announce "Event Zombie Vs. Novice will begin in ~2~",0;
  12.     sleep 1000;
  13.     announce "Event Zombie Vs. Novice will begin in ~1~",0;
  14.     sleep 1000;
  15.     //if ( getmapusers("quiz_01") <= 1){
  16.     //announce "Not enough players.. Event cancelled.",0;
  17.     //sleep 1000;
  18.     //}
  19.     announce "Event 'Zombie Vs. Novice' has begun!!",0,0x00FF00;
  20.     announce "Novice RFYL Event: "+getmapusers("quiz_01")+" players in the Event.",0,0x00FF00;
  21.     sleep 5000;
  22.     mapannounce "quiz_01","WARNING: Four Zombies will spawn near the center in 10 seconds and everytime a players dies!",0;
  23.     sleep 5000;
  24.     monster "quiz_01",42,369,"LEFT4DEAD",1015,4;
  25.     end;
  26.  
  27.  
  28. winner:
  29.     killmonsterall "quiz_01";
  30.     mapannounce "quiz_01","You have won",0;
  31.     enablenpc "Prize";
  32.     stopnpctimer;
  33.     close;
  34.     end;
  35.  
  36. OnPCDieEvent:
  37.     getmapxy .@maprfyl$,.@xrfyl,.@yrfyl,0;
  38.     if ( .@maprfyl$ == "quiz_01") {
  39.         monster "quiz_01",.@xrfyl,.@yrfyl,""+strcharinfo(0)+"",1015,1;
  40.         announce "Novice RFYL Event: "+getmapusers("quiz_01")+" remaining players in the Event.",0,0x00FF00;
  41.         sleep2 1;
  42.         warp "prontera",156,223;
  43.         atcommand "@alive "+ strcharinfo(0);
  44.         dispbottom "You have died...";
  45.         if ( getmapusers("quiz_01") <= 1) goto winner;
  46.     }
  47.     end;
  48. }
  49.  
  50. quiz_01,42,369,3    script  Prize   72,{
  51.  
  52. announce "Novice RFYL Event: " + strcharinfo (0) + " won! " + (sex == 1?"He": "She") +" won an item!",0;
  53. getitem 501,1;
  54. warp "prontera",156,223;
  55. disablenpc "Prize";
  56. end;
  57.  
  58. OnInit:
  59.     disablenpc "Prize";
  60.     end;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement