//=============== Novice RFYL======= - script announce_nvz -1,{ OnMinute45: if(agitcheck() == 1) end; announce "The Novice Run for your life Event will begin in 3 minutes.",0; killmonsterall "quiz_01"; mapwarp "quiz_01","mooc",160,140; sleep2 5000; announce "The NPC 'Novice RFYL' has appeared in Mooc 159 191!",0; enablenpc "Novice RFYL"; sleep2 55000; announce "Novice Run for your life will begin in 2 minutes. Warp Mooc 159 191 to join!",0; sleep2 60000; announce "Novice Run for your life will begin in 1 minute! Warp Mooc 159 191 to join!",0; sleep2 30000; announce "Warper will close in 30 seconds!",0; sleep2 30000; announce "Warper Closed!",0; disablenpc "Novice RFYL"; sleep2 5000; mapannounce "quiz_01","You better get ready guys!",0; sleep2 5000; mapannounce "quiz_01","Every 30 seconds the monster will appear!",0; sleep2 5000; mapannounce "quiz_01","Novice run for your life will begin in 5",0; sleep2 1000; mapannounce "quiz_01","4",0; sleep2 1000; mapannounce "quiz_01","3",0; sleep2 1000; mapannounce "quiz_01","2",0; sleep2 1000; mapannounce "quiz_01","1",0; sleep2 1000; mapannounce "quiz_01","RUN FOR YOUR LIVES!!",0,0x00FF00; monster "quiz_01",42,369,"Zombie",1036,10; sleep2 30000; monster "quiz_01",42,369,"Zombie",1036,10; sleep2 30000; monster "quiz_01",42,369,"Multong Bakla",1201,10; sleep2 60000; monster "quiz_01",42,369,"Multong Bakla",1201,10; initnpctimer; end; OnTimer5000: if ( getmapusers("quiz_01") == 0 ) { killmonsterall "quiz_01"; disablenpc "Prize"; stopnpctimer; end; } else if ( getmapusers("quiz_01") > 1 ) { if ($@NvZCounter >= 5){ switch(rand(0,2)){ case 0: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break; case 1: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break; case 2: mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; break; } } else { mapannounce "quiz_01",getmapusers("quiz_01") +" players are still alive.",0,0x00FF00; } sleep2 10000; set $@NvZCounter,$@NvZCounter+1; initnpctimer; end; } initnpctimer; end; OnPCDieEvent: getmapxy .@mapnvz$,.@xnvz,.@ynvz,0; if ( .@mapnvz$ == "quiz_01") { sleep2 1; warp "mooc",160,140; atcommand "@alive "+ strcharinfo(0); dispbottom "You have lost..."; } sleep2 1000; if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) { killmonsterall "quiz_01"; mapannounce "quiz_01","You have won, please approach to Prize NPC.",0; enablenpc "Prize"; set $@NvZCounter,0; stopnpctimer; killmonsterall "quiz_01"; end; } end; } quiz_01,42,378,3 script Prize 811,{ mes "^FF00FF Claim Your Prize?"; menu "No",-,"Yes",L_yes; close; L_yes: if (sex == 1) { announce ""+strcharinfo(0)+" won the Novice run for your life Event!",bc_all,0; } else { announce ""+strcharinfo(0)+" won the Novice run for your life Event!",bc_all,0; } getitem 30005,20; warp "mooc",160,140; sleep2 250; disablenpc "Prize"; end; } mooc,159,191,0 script Novice RFYL 723,{ if (BaseLevel > 1 || class > 0) { goto L_No; } else { if (class == 0) { goto L_event; } L_event: sc_end SC_ALL; percentheal 100,100; atcommand "@storeall"; warp "quiz_01",42,369; end; L_No: mes "[^0000FFNovice RFYL^000000]"; mes "^696969You are not a level 1 novice! Cheater!^000000"; close; }