viewing paste Unknown #16922 | Athena

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
-    script    triple_exp    -1,{
OnInit:
    // original Base/Job Exp and Drop Rates
    set .bexp_rate, 75; //Put you rate...
    set .jexp_rate, 75; //put you rate...
 
 
OnHour13:
OnHour14:
    if( gettime(4) != 0 && gettime(4) != 6 || ( gettime(4) == 1 && gettime(3) >= 13 ) ) { // Monday to Friday
        if( gettime(3) >= 14 || gettime(3) < 13 ) {
            announce "Double EXP Event is finished!",bc_all,0xFF6060;
            callsub L_ratio, 1;
        }
        else {
            announce "Double EXP Event Starting!", bc_all;
            callsub L_ratio, 2;
        }
    }
OnHour12:
    if( !gettime(4) || ( gettime(4) == 6 && gettime(3) >= 12 ) || ( gettime(4) == 1 && gettime(3) < 12 ) ) {
        announce "Triple EXP Event is Starting!",bc_all,0xFF6060;
        callsub L_ratio, 3;
    }
    else if( gettime(4) == 1 && gettime(3) == 12 ) {
        announce "Triple EXP Event is finished!",bc_all,0xFF6060;
        callsub L_ratio, 1;
    }
    else
        callsub L_ratio, 1;
    end;
 
 
L_ratio:
    setbattleflag "base_exp_rate", .bexp_rate * 100 * getarg( 0 );
    setbattleflag "job_exp_rate", .jexp_rate * 100 * getarg( 0 );
    set .ratio, getarg( 0 );
    atcommand "@reloadmobdb";
    end;
    
OnMinute01:
    if( .ratio == 3 )
        announce "Weekend Triple EXP Event is currently in affect, Enjoy and have a great day!",bc_all,0xFF6060;
    end;
    if( .ratio == 2 )
        announce "Weekdays Double EXP Event is currently in affect, Enjoy and have a great day!",bc_all,0xFF6060;
    end;
}
Viewed 654 times, submitted by Guest.