summaryrefslogtreecommitdiff
path: root/npc/guild/gldfunc_treasure.txt
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-06 09:45:05 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-06 09:45:05 +0000
commit0274c80ae6686b12763ca9ec9a5911e313bdaf64 (patch)
treedcaf1c7def41fef9c2ea18d1b1c0776710671032 /npc/guild/gldfunc_treasure.txt
parent90bb183a7ee4eddf031fa3a1e939c79b33bd5129 (diff)
downloadhercules-0274c80ae6686b12763ca9ec9a5911e313bdaf64.tar.gz
hercules-0274c80ae6686b12763ca9ec9a5911e313bdaf64.tar.bz2
hercules-0274c80ae6686b12763ca9ec9a5911e313bdaf64.tar.xz
hercules-0274c80ae6686b12763ca9ec9a5911e313bdaf64.zip
offical novice Castles restrictions, treasure spawns, manager. Onlly entranse + mob spawns are custom
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8943 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild/gldfunc_treasure.txt')
-rw-r--r--npc/guild/gldfunc_treasure.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt
index 17d3380aa..9118e8a82 100644
--- a/npc/guild/gldfunc_treasure.txt
+++ b/npc/guild/gldfunc_treasure.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= holyAngelX (1.0) Akaru and ho|yAnge|X (1.1)
//===== Current Version: =====================================
-//= 1.7
+//= 1.8
//===== Compatible With: =====================================
//= eAthena 1+; RO Episode 4+
//===== Description: =========================================
@@ -37,6 +37,7 @@
//= 1.5 Fixed treasure number 'round exploit' [Lupus]
//= 1.6 to Aegis X.2 formula 4..24 Treasure Chests [Lupus]
//= 1.7 Box Count fix by Zoc. Now it spawns 1st/2nd Treasure Chest 50%/50% [Lupus]
+//= 1.8 Official Treasure Spawn in Novice Castles. Had to add +1 in odd/even formula to leave correct ID of NG Treasure Box 8) [Lupus]
//============================================================
@@ -60,7 +61,7 @@ function script F_GldTreas {
set getarg(3), getarg(2); //sets the counter variable = to the box number amount
L_SPAWN:
- set getarg(4), getarg(5)+(getarg(3) & 1); //sets the box id variable = to the box id
+ set getarg(4), getarg(5)+((getarg(3)+1) & 1); //sets the box id variable = to the box id
areamonster getarg(0)+".gat",getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
set getarg(3), getarg(3) - 1;
if(getarg(3) > 0) goto L_SPAWN;