git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11874 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -1,5 +1,7 @@
Date Added
======
+2007/12/09
+ * Fixed a bug in r11633 always spawning only 1 chest type [ultramage]
2007/12/08
* Removed double tabs from mapflag/warp/script/function/duplicate declarations. [FlavioJS]
2007/12/02
@@ -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;