viewing paste Unknown #616 | C

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
-       script  NMM     -1,{
        OnClock0300:
        OnClock0600:
        OnClock0900:
        OnClock1200:
        OnClock0000:
                set .@Nightmare,1;
                announce "Nightmare has just started",bc_all;
                sleep 2000;
                announce "Every 3 hours, for 15 min only, every monster in the game will give 2x more Base/Job experience (including MvPs);",bc_all;
                sleep 2000;
                announce "BUT, during these 15 minuts, the server turns into PK (player killer) mode",bc_all;
                sleep 2000;
                announce "When killed by another player during NMM, the death penalty is doubled (2% loss instead of 1%);",bc_all;
                sleep 2000;
                announce "while death caused by a monster is dealt with the regular 1% penalty.",bc_all;
                sleep 2000;
                announce "Players whose level is lower than lv40 can't kill/be killed by other players during NMM ",bc_all;
                setbattleflag "pk_mode",1;
                set BaseExp, BaseExp+1000;
                set JobExp, JobExp+1000;
                atcommand "@reloadbattleconf";
                sleep 1000*60*15;       // More readable
                set .@Nightmare,0;
                setbattleflag "pk_mode",0;
                atcommand "@reloadbattleconf";
                announce "Now starts another day, you had sweet dreams ? Nightmare Mode deactivated!",bc_all;
                end;
 
        OnPCDieEvent:
                if (.@Nightmare) callfunc "PenaltyBaseExp", (killerrid >= 2000000?2:1);
                end;
}
 
function        script  PenaltyBaseExp  {
        if (BaseExp) {
                set BaseExp, BaseExp / 100 * getarg(0);
                announce "Nightmare Penalty: -" + getarg(0) + "% Base Exp", bc_self, 0xEAC8E7;
        }
        return;
}
Viewed 469 times, submitted by Myzter.