Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  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.  
  18. - script FloatingRates -1,{
  19. OnInit:
  20. //add any other HOURS
  21. OnHour00:
  22. OnHour06:
  23. OnHour12:
  24. OnHour18:
  25. //-------------------
  26. set $@brate,rand(500,750);
  27. set $@jrate,rand(500,750);
  28. set $@drate,rand(300,300);
  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. atcommand "@reloadmobdb";
  40.  
  41. announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
  42. end;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement