[1] | 1 | //===== eAthena Script ====================================================================== |
---|
| 2 | //= Floating Server Rates |
---|
| 3 | //===== Original By ========================================================================= |
---|
| 4 | //= Lupus |
---|
| 5 | //===== Current Version: ==================================================================== |
---|
| 6 | //= 1.0 |
---|
| 7 | //===== Compatible With: ==================================================================== |
---|
| 8 | //= Any eAthena, that has 'setbattleflag' function |
---|
| 9 | //===== Description: ======================================================================== |
---|
| 10 | //= It's a simply example of setbattleflag |
---|
| 11 | //= This script will change your server rates from 1x to 1.5x every 6 hours |
---|
| 12 | //= Note: It doesn't affect Card granted drops, MVP & Treasure Chests drops ^_- |
---|
| 13 | //= It also doesn't affect CARD drops, because they are just 0.01% |
---|
| 14 | //===== Comments and Credits ================================================================ |
---|
| 15 | //= You can make incredible scripts with 'setbattleflag'! |
---|
| 16 | //=========================================================================================== |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | prontera,3,4,5 script FloatingRates -1,{ |
---|
| 20 | end; |
---|
| 21 | OnInit: |
---|
| 22 | |
---|
| 23 | //add any other HOURS |
---|
| 24 | OnHour00: |
---|
| 25 | OnHour06: |
---|
| 26 | OnHour12: |
---|
| 27 | OnHour18: |
---|
| 28 | //------------------- |
---|
| 29 | set $@brate,rand(100,150); |
---|
| 30 | set $@jrate,rand(100,150); |
---|
| 31 | set $@drate,rand(100,150); |
---|
| 32 | //Base exp |
---|
| 33 | setbattleflag("base_exp_rate",$@brate); |
---|
| 34 | //Job exp |
---|
| 35 | setbattleflag("job_exp_rate",$@jrate); |
---|
| 36 | //Drops |
---|
| 37 | setbattleflag("item_rate_common",$@drate); |
---|
| 38 | setbattleflag("item_rate_heal",$@drate); |
---|
| 39 | setbattleflag("item_rate_use",$@drate); |
---|
| 40 | setbattleflag("item_rate_equip",$@drate); |
---|
| 41 | //we don't change card drops rate, because these values won't change them anyway |
---|
| 42 | |
---|
| 43 | announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060; |
---|
| 44 | end; |
---|
| 45 | } |
---|