From 23aa6d218ca1c69f234725f5d78aae1f42e326db Mon Sep 17 00:00:00 2001 From: Lupus Date: Thu, 22 Jun 2006 06:01:36 +0000 Subject: Fixed treasure number 'round exploit' git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7288 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/guild/gldfunc_treasure.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'npc/guild') 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 -- cgit v1.2.3-60-g2f50