summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-30 04:19:05 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-30 04:19:05 +0000
commitde63a9411eee816fcab1937bb184b143dc604884 (patch)
tree264650e1961df96ce1cc198b1e19004e6a258854
parent0a17e1c3f7cc374c9d6d0dd96ffee4bc7c554b08 (diff)
downloadhercules-de63a9411eee816fcab1937bb184b143dc604884.tar.gz
hercules-de63a9411eee816fcab1937bb184b143dc604884.tar.bz2
hercules-de63a9411eee816fcab1937bb184b143dc604884.tar.xz
hercules-de63a9411eee816fcab1937bb184b143dc604884.zip
added floating server rates event
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7404 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--npc/Changelog.txt4
-rw-r--r--npc/custom/floating_rates.txt45
-rw-r--r--npc/scripts_custom.conf4
3 files changed, 52 insertions, 1 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt
index 3ee186b43..fbd7774fa 100644
--- a/npc/Changelog.txt
+++ b/npc/Changelog.txt
@@ -38,6 +38,10 @@ Playtester
Date Added
======
+06/30
+ * Added custom/floating_rates.txt [Lupus]
+ Random change of Drop/Exp rates from 1x to 1.5x every 6 hours
+ NOTE! Take a look at an incredible script function 'setbattleflag'
06/29
* Fixed many typos on cities/alberta.txt and airports/airships.txt, with information from Crono/Hollengrhen [Evera]
- Fixed many typos on cities/aldebaran.txt [Evera]
diff --git a/npc/custom/floating_rates.txt b/npc/custom/floating_rates.txt
new file mode 100644
index 000000000..906afb74b
--- /dev/null
+++ b/npc/custom/floating_rates.txt
@@ -0,0 +1,45 @@
+//===== eAthena Script ======================================================================
+//= Floating Server Rates
+//===== Original By =========================================================================
+//= Lupus
+//===== Current Version: ====================================================================
+//= 1.0
+//===== Compatible With: ====================================================================
+//= Any eAthena, that has 'setbattleflag' function
+//===== 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%
+//===== Comments and Credits ================================================================
+//= You can make incredible scripts with 'setbattleflag'!
+//===========================================================================================
+
+
+prontera.gat,3,4,5 script FloatingRates -1,{
+ end;
+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
+
+ announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
+ end;
+}
diff --git a/npc/scripts_custom.conf b/npc/scripts_custom.conf
index 1722d2a10..7d98bef6a 100644
--- a/npc/scripts_custom.conf
+++ b/npc/scripts_custom.conf
@@ -130,4 +130,6 @@ npc: npc/custom/jobs/jobmaster.txt
// Disable shops in the Prontera streets and open a special market place.
//npc/custom/market.txt
// Quest for: Bird Nest,Lion Mask,Skeleton Manteau,Fashion Hip Sack,Sales Banner
-//npc: npc/custom/quests/may_hats.txt \ No newline at end of file
+//npc: npc/custom/quests/may_hats.txt
+// Random change of Drop/Exp rates 1x ~ 1.5x every 6 hours on your server
+//npc: npc/custom/floating_rates.txt \ No newline at end of file