From 12aacd58a920722a6946ae326f6b779ddbdf05e4 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 9 Dec 2007 08:05:22 +0000 Subject: 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 --- npc/guild/gldfunc_treasure.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/guild/gldfunc_treasure.txt') 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; -- cgit v1.2.3-70-g09d2