diff options
Diffstat (limited to 'npc/guild/gldfunc_treasure.txt')
-rw-r--r-- | npc/guild/gldfunc_treasure.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt index d296397ff..2b3a97ae3 100644 --- a/npc/guild/gldfunc_treasure.txt +++ b/npc/guild/gldfunc_treasure.txt @@ -50,7 +50,12 @@ function script F_GldTreas { killmonster getarg(0)+".gat","Treasure_"+getarg(1)+"::OnDied";
if(GetCastleData(getarg(0)+".gat",2) > 100 || GetCastleData(getarg(0)+".gat",1) == 0) return;
//sets the counter variable = to the box number amount
- set $@n,GetCastleData(getarg(0)+".gat",2)/5+4;
+ if(getarg(0) == "nguild_prt" || getarg(0) == "nguild_alde" || getarg(0) == "nguild_gef" || getarg(0) == "nguild_pay" ) {
+ //Novice Castles can't have more than 1
+ set $@n,1;
+ }else{
+ set $@n,GetCastleData(getarg(0)+".gat",2)/5+4;
+ }
L_SPAWN:
areamonster getarg(0)+".gat",getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(5)+($@n & 1),1,"Treasure_"+getarg(1)+"::OnDied";
set $@n, $@n - 1;
|