From 031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 8 May 2008 16:05:45 +0000 Subject: * Fixed times-invested not resetting in WoE scripts. - Fixed a warning when the standard chest spawn time triggered. - Corrected several flag-in spawn points, (burgerpot:1475) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12691 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/guild/agit_template.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/guild/agit_template.txt') diff --git a/npc/guild/agit_template.txt b/npc/guild/agit_template.txt index b33902a2e..ecd119780 100644 --- a/npc/guild/agit_template.txt +++ b/npc/guild/agit_template.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.0 +//= 1.1 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -33,6 +33,8 @@ //= treasure chest spawned. //===== Additional Comments: ================================= //= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Daily investement will now be reset. [L0ne_W0lf] +//= Template will no longer try to spawn chests. //============================================================ // AGIT Manager Template @@ -1131,6 +1133,9 @@ OnTouch: end; OnClock0001: + // Do nothing if this script is the template. + if (strnpcinfo(1) == "Gld_Trea_Spawn") end; + // If there is no owner, do nothing. if (!GetCastleData(strnpcinfo(2),1)) end; @@ -1243,6 +1248,10 @@ OnClock0001: end; } + // Reset daily investment limit. + setcastledata strnpcinfo(2),4,0; + setcastledata strnpcinfo(2),5,0; + // Spawn boxes in proper order. for (set .@i,0; .@i <= .@Treasure ; set .@i,.@i+1) { // set treasure box ID -- cgit v1.2.3-60-g2f50