From 1fabc2250529b3ed092c2635c09023d8dd6f74e9 Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 15 Oct 2011 22:40:00 +0000 Subject: - 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 --- npc/guild/agit_template.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc/guild') 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; -- cgit v1.2.3-60-g2f50