summaryrefslogtreecommitdiff
path: root/npc/guild/agit_template.txt
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-08 16:05:45 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-08 16:05:45 +0000
commit031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1 (patch)
tree020cc790de870e3741ff1ee8158b766706afee3a /npc/guild/agit_template.txt
parent5c9db014d2a4522df865b789e1b0eabd9e4ab68d (diff)
downloadhercules-031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1.tar.gz
hercules-031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1.tar.bz2
hercules-031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1.tar.xz
hercules-031bcfea33d24d3dd8d7ebf8b22bcdd9090c3af1.zip
* 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
Diffstat (limited to 'npc/guild/agit_template.txt')
-rw-r--r--npc/guild/agit_template.txt11
1 files changed, 10 insertions, 1 deletions
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