summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-10-15 22:40:00 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-10-15 22:40:00 +0000
commit1fabc2250529b3ed092c2635c09023d8dd6f74e9 (patch)
treed0d7fdb007d5d226854b96cc0a057acae2ab963b /npc
parentf58856d5ab5a79e09e4aad906cecd7aa931a2224 (diff)
downloadhercules-1fabc2250529b3ed092c2635c09023d8dd6f74e9.tar.gz
hercules-1fabc2250529b3ed092c2635c09023d8dd6f74e9.tar.bz2
hercules-1fabc2250529b3ed092c2635c09023d8dd6f74e9.tar.xz
hercules-1fabc2250529b3ed092c2635c09023d8dd6f74e9.zip
- Fixed .@GID not being set in Gld_Trea_Spawn, since r13559. (bugreport:5067)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14974 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/guild/agit_template.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/guild/agit_template.txt b/npc/guild/agit_template.txt
index 68e9e7f3a..41b706fb2 100644
--- a/npc/guild/agit_template.txt
+++ b/npc/guild/agit_template.txt
@@ -1156,8 +1156,10 @@ OnClock0001:
// Do nothing if this script is the template.
if (strnpcinfo(1) == "Gld_Trea_Spawn") end;
+ set .@GID, GetCastleData(strnpcinfo(2),1);
+
// If there is no owner, do nothing.
- if (!GetCastleData(strnpcinfo(2),1)) end;
+ if (!.@GID) end;
// Is there Economy in this castle?
set .@Treasure,GetCastleData(strnpcinfo(2),2)/5+4;