viewing paste Unknown #8168 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
//=============== 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;
}
Viewed 1069 times, submitted by Guest.