viewing paste Unknown #14126 | 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 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
//===== rAthena Script =======================================
//= Floating Rates
//===== Support ==============================================
//= Vist: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/script_commands.txt
//= to know how to change the time settings
//===== By: ================================================== 
//= Mysterious
//===== Current Version: =====================================
//= 1.5
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= EXP Doubles on Weekends
//===== Other Information: ===================================
// Every weekend, starting on Fridays, players will gain
// double EXP. The script will announce when Double EXP has
// begun so that players know.
//===== TODO: ================================================
// 1) Optimize script a little more
// 2) Make script more friendly
//===== Additional Comments: =================================
//= v1.0 - Intitial Re-release [Mysterious]
//= v1.1 - Made it so that it starts on Friday, ends on Sunday [Mysterious]
//= v1.2 - Optimized entire script [Mysterious]
//= v1.3 - Made it more friendly [Mysterious]
//= v1.4 - Optimized [Mysterious]
//= v1.5 - Adjusted a few things [Mysterious]
//============================================================
-   script  FloatingRates   -1,{
    
 
OnInit:
    //Note: You can always set a standard exp. rate or set it as a rand
    set $@brate, 3500; // Change the value here for your Base Experience
    set $@jrate, 3500; // Change the value here for your Job Experience
    set $@drate, 1000;
// =========================
OnClock0000:
    if( gettime(4)==6 ) { Saturday
        //Base Experience
        setbattleflag("base_exp_rate",$@brate);
        //Job Experience
        setbattleflag("job_exp_rate",$@jrate);
        //Drops
        setbattleflag("item_rate_common",$@drate);
        setbattleflag("item_rate_heal",$@drate);
        setbattleflag("item_rate_use",$@drate);
        setbattleflag("item_rate_equip",$@drate);
        // Reload the database
        atcommand "@reloadmobdb";
 
        announce "X2 increased EXP and DROP rates for this whole Saturday starts now! Enjoy!",bc_all,0xFF6060;  
    }
end;
}
 
 
-   script  FloatingAnn#1   -1,{
 
OnClock0000:
if(gettime(4) == 0) { // On Saturday at 11:59pm server time, Double EXP event will end
    announce "X2 increased EXP and DROP rates has ended!",bc_all,0xFF6060;
    setbattleflag("base_exp_rate", 2000 ); // Set this rates back to your regular server's rates
    setbattleflag("job_exp_rate", 2000 ); // Set this rates back to your regular server's rates
    //Drops
    setbattleflag("item_rate_common", 500 );
    setbattleflag("item_rate_heal", 500 );
    setbattleflag("item_rate_use", 500 );
    setbattleflag("item_rate_equip", 500 );
    atcommand "@reloadmobdb";
    }
 
end;
}
Viewed 726 times, submitted by Guest.