floating_rates.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. prontera,3,4,5 script FloatingRates -1,{
  18. end;
  19. OnInit:
  20. //add any other HOURS
  21. OnHour00:
  22. OnHour06:
  23. OnHour12:
  24. OnHour18:
  25. //-------------------
  26. set $@brate,rand(100,150);
  27. set $@jrate,rand(100,150);
  28. set $@drate,rand(100,150);
  29. //Base exp
  30. setbattleflag("base_exp_rate",$@brate);
  31. //Job exp
  32. setbattleflag("job_exp_rate",$@jrate);
  33. //Drops
  34. setbattleflag("item_rate_common",$@drate);
  35. setbattleflag("item_rate_heal",$@drate);
  36. setbattleflag("item_rate_use",$@drate);
  37. setbattleflag("item_rate_equip",$@drate);
  38. //we don't change card drops rate, because these values won't change them anyway
  39. announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
  40. end;
  41. }