summaryrefslogtreecommitdiff
path: root/npc/custom/etc/floating_rates.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 02:36:44 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 02:36:44 +0000
commit6979b1d621c2e5c6dab882e3825c4a867d19ba98 (patch)
tree225a767df0994bd069bc148eafd0e9d90b5804b9 /npc/custom/etc/floating_rates.txt
parentfb10d4b4a1cf11daf0be70c2c03ca12358b22fbe (diff)
downloadhercules-6979b1d621c2e5c6dab882e3825c4a867d19ba98.tar.gz
hercules-6979b1d621c2e5c6dab882e3825c4a867d19ba98.tar.bz2
hercules-6979b1d621c2e5c6dab882e3825c4a867d19ba98.tar.xz
hercules-6979b1d621c2e5c6dab882e3825c4a867d19ba98.zip
/custom/ folder overhaul:
==== Script Changes ==== * Warper replaced with Euphy's Warper v1.2 * Stylist replaced with a much more efficient script * Healer replaced with more efficient script * MVP Arena heavily condensed, and text edited * Removed logout suggestion in Reset NPC (why was that there?) * Quest Warper added to scripts_custom.conf [bug fix] ==== Reorganization ==== * All folders in root directory removed except "battleground", "events", "quests" * All non-essential scripts in root directory moved to "etc" folder * A few files renamed for easier identification * scripts_custom.conf reordered for easier identification git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16193 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/etc/floating_rates.txt')
-rw-r--r--npc/custom/etc/floating_rates.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/npc/custom/etc/floating_rates.txt b/npc/custom/etc/floating_rates.txt
new file mode 100644
index 000000000..84d16ba9a
--- /dev/null
+++ b/npc/custom/etc/floating_rates.txt
@@ -0,0 +1,43 @@
+//===== rAthena Script =======================================
+//= Floating Server Rates
+//===== By: ==================================================
+//= Lupus
+//===== Current Version: =====================================
+//= 1.0
+//===== Compatible With: =====================================
+//= rAthena SVN
+//===== Description: =========================================
+//= It's a simply example of setbattleflag
+//= This script will change your server rates from 1x to 1.5x every 6 hours
+//= Note: It doesn't affect Card granted drops, MVP & Treasure Chests drops ^_-
+//= It also doesn't affect CARD drops, because they are just 0.01%
+//===== Additional Comments: =================================
+//= You can make incredible scripts with 'setbattleflag'!
+//============================================================
+
+- script FloatingRates -1,{
+OnInit:
+//add any other HOURS
+OnHour00:
+OnHour06:
+OnHour12:
+OnHour18:
+//-------------------
+ set $@brate,rand(100,150);
+ set $@jrate,rand(100,150);
+ set $@drate,rand(100,150);
+ //Base exp
+ setbattleflag("base_exp_rate",$@brate);
+ //Job exp
+ 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);
+ //we don't change card drops rate, because these values won't change them anyway
+ atcommand "@reloadmobdb";
+
+ announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
+ end;
+}