summaryrefslogtreecommitdiff
path: root/npc/guild
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-09 08:05:22 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-09 08:05:22 +0000
commit12aacd58a920722a6946ae326f6b779ddbdf05e4 (patch)
treea66e8e973cdc939d4b582132e7122d4f8a36d5f8 /npc/guild
parent1745c6c17c039ef17d103eea9dcce7e4978cb79a (diff)
downloadhercules-12aacd58a920722a6946ae326f6b779ddbdf05e4.tar.gz
hercules-12aacd58a920722a6946ae326f6b779ddbdf05e4.tar.bz2
hercules-12aacd58a920722a6946ae326f6b779ddbdf05e4.tar.xz
hercules-12aacd58a920722a6946ae326f6b779ddbdf05e4.zip
Fixed a bug in r11633 always spawning only 1 chest type
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11874 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild')
-rw-r--r--npc/guild/gldfunc_treasure.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt
index 2b6b1ab8a..1fd255139 100644
--- a/npc/guild/gldfunc_treasure.txt
+++ b/npc/guild/gldfunc_treasure.txt
@@ -77,7 +77,7 @@ function script F_GldTreas {
}
for (set .@i,1; .@i <= getarg(3) ; set .@i,.@i+1) {
// set treasure box ID
- set getarg(4), getarg(5)+((getarg(3)+1) & 1);
+ set getarg(4), getarg(5) + (.@i+1) % 2;
areamonster getarg(0),getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
}
return;