floating_rates.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===== rAthena Script =======================================
  2. //= Floating Server Rates
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  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. //===== Additional Comments: =================================
  15. //= You can make incredible scripts with 'setbattleflag'!
  16. //============================================================
  17. - script FloatingRates -1,{
  18. OnInit:
  19. //add any other HOURS
  20. OnHour00:
  21. OnHour06:
  22. OnHour12:
  23. OnHour18:
  24. //-------------------
  25. set $@brate,rand(100,150);
  26. set $@jrate,rand(100,150);
  27. set $@drate,rand(100,150);
  28. //Base exp
  29. setbattleflag("base_exp_rate",$@brate);
  30. //Job exp
  31. setbattleflag("job_exp_rate",$@jrate);
  32. //Drops
  33. setbattleflag("item_rate_common",$@drate);
  34. setbattleflag("item_rate_heal",$@drate);
  35. setbattleflag("item_rate_use",$@drate);
  36. setbattleflag("item_rate_equip",$@drate,true); // Apply new rates to configs set above
  37. //we don't change card drops rate, because these values won't change them anyway
  38. announce "Current rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
  39. end;
  40. }