summaryrefslogtreecommitdiff
path: root/npc/guild/gldfunc_treasure.txt
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 06:01:36 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 06:01:36 +0000
commit23aa6d218ca1c69f234725f5d78aae1f42e326db (patch)
tree35ef24fa1bdef928e17b1d395602448638f65e3c /npc/guild/gldfunc_treasure.txt
parent0aede80c1e609b65c2c029be2bce6107a7504f0a (diff)
downloadhercules-23aa6d218ca1c69f234725f5d78aae1f42e326db.tar.gz
hercules-23aa6d218ca1c69f234725f5d78aae1f42e326db.tar.bz2
hercules-23aa6d218ca1c69f234725f5d78aae1f42e326db.tar.xz
hercules-23aa6d218ca1c69f234725f5d78aae1f42e326db.zip
Fixed treasure number 'round exploit'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7288 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild/gldfunc_treasure.txt')
-rw-r--r--npc/guild/gldfunc_treasure.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt
index ad4e3bb20..ab885d149 100644
--- a/npc/guild/gldfunc_treasure.txt
+++ b/npc/guild/gldfunc_treasure.txt
@@ -35,6 +35,7 @@
//= 1.3 Fixed treasure boxes spawn. (Unrolled one loop a bit) [Lupus]
//= 1.4 New number of Treasure Boxes per castle: 25 at 100 Economic pts [Lupus]
//= So you get your first chest only when your Economic Pts >= 4
+//= 1.5 Fixed treasure number 'round exploit' [Lupus]
//============================================================
@@ -49,10 +50,8 @@ function script F_GldTreas {
KillMonster getarg(0)+".gat","Treasure_"+getarg(1)+"::OnDied";
if (GetCastleData(getarg(0)+".gat",2) > 100) return;
if (GetCastleData(getarg(0)+".gat",1) == 0) return;
-//Old Formula for 20 Boxes at 100 pts:
- //set getarg(2),GetCastleData(getarg(0)+".gat",2)/5+4;
-//New, correct formula for 25 boxes at 100 pts:
- set getarg(2),GetCastleData(getarg(0)+".gat",2)/4;
+//[New] correct formula for 25 boxes at 100 pts:
+ set getarg(2),GetCastleData(getarg(0)+".gat",2)>>2;
if (getarg(2) <= 0) return;
set getarg(3), getarg(2); //sets the counter variable = to the box number amount