diff options
Diffstat (limited to 'npc/guild/agit_template.txt')
-rw-r--r-- | npc/guild/agit_template.txt | 4 |
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; |