summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 18:28:22 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 18:28:22 +0000
commit647998c0b4bda1600c59323a4370be252701bc15 (patch)
treeaa06d30a05d8f862f5b2b4bc061ee91e4896be46 /npc
parent134bf364c8deffa192fb77a323b92b708a2e2276 (diff)
downloadhercules-647998c0b4bda1600c59323a4370be252701bc15.tar.gz
hercules-647998c0b4bda1600c59323a4370be252701bc15.tar.bz2
hercules-647998c0b4bda1600c59323a4370be252701bc15.tar.xz
hercules-647998c0b4bda1600c59323a4370be252701bc15.zip
Follow up to r13559, r13560 and r13561. Moved some stuff around in the WoESE agits, and corrected a few mistakes I made.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13566 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/Changelog.txt2
-rw-r--r--npc/guild/agit_template.txt28
-rw-r--r--npc/guild2/arug_cas01.txt25
-rw-r--r--npc/guild2/arug_cas02.txt27
-rw-r--r--npc/guild2/arug_cas03.txt27
-rw-r--r--npc/guild2/arug_cas04.txt27
-rw-r--r--npc/guild2/arug_cas05.txt28
-rw-r--r--npc/guild2/schg_cas01.txt29
-rw-r--r--npc/guild2/schg_cas02.txt27
-rw-r--r--npc/guild2/schg_cas03.txt27
-rw-r--r--npc/guild2/schg_cas04.txt27
-rw-r--r--npc/guild2/schg_cas05.txt27
-rw-r--r--npc/warps/fields/morroc_fild.txt5
13 files changed, 181 insertions, 125 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt
index 4b7219e80..1ddc4f791 100644
--- a/npc/Changelog.txt
+++ b/npc/Changelog.txt
@@ -1,5 +1,7 @@
Date Added
======
+2009/03/04
+ * Rev. 13566 Follow up to r13559, r13560 and r13561. Moved some stuff around in the WoESE agits, and corrected a few mistakes I made. [L0ne_W0lf]
2009/03/03
* Rev. 13563 Removed extra lines from schg_cas02 resetting data before eco/def is applied. (bugreport:2842) [L0ne_W0lf]
* Rev. 13561 Applied the updated eco/def investment system to Juno WoESE castles. [L0ne_W0lf]
diff --git a/npc/guild/agit_template.txt b/npc/guild/agit_template.txt
index 9c1f5330f..486f34c1c 100644
--- a/npc/guild/agit_template.txt
+++ b/npc/guild/agit_template.txt
@@ -46,6 +46,7 @@
//= Second invest is now quadruple the value of the first
//= Investing now happens at the turn of the day.
//= 1.6a Corrected conditions in the new investing blocks. [L0ne_W0lf]
+//= 1.6b Moved where investments are added to eco/def. [L0ne_W0lf]
//============================================================
// AGIT Manager Template
@@ -1253,32 +1254,33 @@ OnClock0001:
end;
}
- // Spawn boxes in proper order.
- for (set .@i,0; .@i <= .@Treasure ; set .@i,.@i+1) {
- // set treasure box ID
- set .@boxid, .@treasurebox + (.@i+2) % 2;
- set .@box,1 << .@i;
- // Spawn or do not spawn chests if one already exists.
- if ((getd("$@"+strnpcinfo(2)+"_treasure") & .@box) == 0) {
- monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(2)+"::OnTreasureDied"+.@i;
- setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") | .@box;
- }
- }
-
// Apply investment to Eco. and Def. Only happens if there were investments made.
// Permanent Development can only happen once per day.
if (GetCastleData(strnpcinfo(2),4)) {
set .@Economy,GetCastleData(strnpcinfo(2),2);
- SetCastleData strnpcinfo(2),2,.@Economy + GetCastleData(strnpcinfo(2),4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
+ SetCastleData strnpcinfo(2),2,.@Economy + GetCastleData(strnpcinfo(2),4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData(strnpcinfo(2),2) > 100) SetCastleData strnpcinfo(2),2,100;
}
if (GetCastleData(strnpcinfo(2),5)) {
set .@Defence,GetCastleData(strnpcinfo(2),3);
SetCastleData strnpcinfo(2),3,.@Defence + GetCastleData(strnpcinfo(2),5);
+ if (GetCastleData(strnpcinfo(2),3) > 100) SetCastleData strnpcinfo(2),3,100;
}
// Reset daily investment limits.
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
+ set .@boxid, .@treasurebox + (.@i+2) % 2;
+ set .@box,1 << .@i;
+ // Spawn or do not spawn chests if one already exists.
+ if ((getd("$@"+strnpcinfo(2)+"_treasure") & .@box) == 0) {
+ monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(2)+"::OnTreasureDied"+.@i;
+ setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") | .@box;
+ }
+ }
end;
// Individual "You killed a chest" events to ensure proper spawning at the change of day.
diff --git a/npc/guild2/arug_cas01.txt b/npc/guild2/arug_cas01.txt
index 3d549562f..f55845069 100644
--- a/npc/guild2/arug_cas01.txt
+++ b/npc/guild2/arug_cas01.txt
@@ -21,6 +21,8 @@
//= 1.6 Implemented new Wall System. [Zephyrus]
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.8 Applied updated eco/def systems. [L0ne_W0lf]
+//= 1.9 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
arug_cas01,1,1,0 script Manager#aru01_02 111,{
@@ -109,6 +111,19 @@ OnClock0001:
if (!GetCastleData("arug_cas01",1)) end;
killmonster "arug_cas01","Manager#aru01_02::OnTreasureDied";
+ if (GetCastleData("arug_cas01",4)) {
+ set .@Economy,GetCastleData("arug_cas01",2);
+ SetCastleData "arug_cas01",2,.@Economy + GetCastleData("arug_cas01",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("arug_cas01",2) > 100) SetCastleData "arug_cas01",2,100;
+ setcastledata "arug_cas01",4,0;
+ }
+ if (GetCastleData("arug_cas01",5)) {
+ set .@Defence,GetCastleData("arug_cas01",3);
+ SetCastleData "arug_cas01",3,.@Defence + GetCastleData("arug_cas01",5);
+ if (GetCastleData("arug_cas01",3) > 100) SetCastleData "arug_cas01",3,100;
+ setcastledata "arug_cas01",5,0;
+ }
+
set .@Treasure,GetCastleData("arug_cas01",2)/5+4;
if (.@Treasure) {
monster "arug_cas01",251,369,"Treasure Chest",1943,1,"Manager#aru01_02::OnTreasureDied";
@@ -156,16 +171,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas01",258,364,"Treasure Chest",1324,1,"Manager#aru01_02::OnTreasureDied";
}
- if (GetCastleData("arug_cas01",4)) {
- set .@Economy,GetCastleData("arug_cas01",2);
- SetCastleData "arug_cas01",2,.@Economy + GetCastleData("arug_cas01",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "arug_cas01",4,0;
- }
- if (GetCastleData("arug_cas01",5)) {
- set .@Defence,GetCastleData("arug_cas01",3);
- SetCastleData "arug_cas01",3,.@Defence + GetCastleData("arug_cas01",5);
- setcastledata "arug_cas01",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/arug_cas02.txt b/npc/guild2/arug_cas02.txt
index 71ee28fc4..844a9039a 100644
--- a/npc/guild2/arug_cas02.txt
+++ b/npc/guild2/arug_cas02.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 2.1
+//= 2.2
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -24,6 +24,8 @@
//= 1.9 Implemented new Wall System. [Zephyrus]
//= 2.0 Replaced effect numerics with constants. [L0ne_W0lf]
//= 2.1 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.2 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
arug_cas02,1,1,0 script Manager#aru02_02 111,{
@@ -112,6 +114,19 @@ OnClock0001:
if (!GetCastleData("arug_cas02",1)) end;
killmonster "arug_cas02","Manager#aru02_02::OnTreasureDied";
+ if (GetCastleData("arug_cas02",4)) {
+ set .@Economy,GetCastleData("arug_cas02",2);
+ SetCastleData "arug_cas02",2,.@Economy + GetCastleData("arug_cas02",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("arug_cas02",2) > 100) SetCastleData "arug_cas02",2,100;
+ setcastledata "arug_cas02",4,0;
+ }
+ if (GetCastleData("arug_cas02",5)) {
+ set .@Defence,GetCastleData("arug_cas02",3);
+ SetCastleData "arug_cas02",3,.@Defence + GetCastleData("arug_cas02",5);
+ if (GetCastleData("arug_cas02",3) > 100) SetCastleData "arug_cas02",3,100;
+ setcastledata "arug_cas02",5,0;
+ }
+
set .@Treasure,GetCastleData("arug_cas02",2)/5+4;
if (.@Treasure) {
monster "arug_cas02",382,231,"Treasure Chest",1944,1,"Manager#aru02_02::OnTreasureDied";
@@ -159,16 +174,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas02",389,224,"Treasure Chest",1324,1,"Manager#aru02_02::OnTreasureDied";
}
- if (GetCastleData("arug_cas02",4)) {
- set .@Economy,GetCastleData("arug_cas02",2);
- SetCastleData "arug_cas02",2,.@Economy + GetCastleData("arug_cas02",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "arug_cas02",4,0;
- }
- if (GetCastleData("arug_cas02",5)) {
- set .@Defence,GetCastleData("arug_cas02",3);
- SetCastleData "arug_cas02",3,.@Defence + GetCastleData("arug_cas02",5);
- setcastledata "arug_cas02",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/arug_cas03.txt b/npc/guild2/arug_cas03.txt
index fd94cf9eb..b9e5193c0 100644
--- a/npc/guild2/arug_cas03.txt
+++ b/npc/guild2/arug_cas03.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -23,6 +23,8 @@
//= 1.7 Implemented new Wall System. [Zephyrus]
//= 1.8 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.9 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.0 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
arug_cas03,1,1,0 script Manager#aru03_02 111,{
@@ -111,6 +113,19 @@ OnClock0001:
if (!GetCastleData("arug_cas03",1)) end;
killmonster "arug_cas03","Manager#aru03_02::OnTreasureDied";
+ if (GetCastleData("arug_cas03",4)) {
+ set .@Economy,GetCastleData("arug_cas03",2);
+ SetCastleData "arug_cas03",2,.@Economy + GetCastleData("arug_cas03",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("arug_cas03",2) > 100) SetCastleData "arug_cas03",2,100;
+ setcastledata "arug_cas03",4,0;
+ }
+ if (GetCastleData("arug_cas03",5)) {
+ set .@Defence,GetCastleData("arug_cas03",3);
+ SetCastleData "arug_cas03",3,.@Defence + GetCastleData("arug_cas03",5);
+ if (GetCastleData("arug_cas03",3) > 100) SetCastleData "arug_cas03",3,100;
+ setcastledata "arug_cas03",5,0;
+ }
+
set .@Treasure,GetCastleData("arug_cas03",2)/5+4;
if (.@Treasure) {
monster "arug_cas03",291,276,"Treasure Chest",1945,1,"Manager#aru03_02::OnTreasureDied";
@@ -158,16 +173,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas03",298,269,"Treasure Chest",1324,1,"Manager#aru03_02::OnTreasureDied";
}
- if (GetCastleData("arug_cas03",4)) {
- set .@Economy,GetCastleData("arug_cas03",2);
- SetCastleData "arug_cas03",2,.@Economy + GetCastleData("arug_cas03",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "arug_cas03",4,0;
- }
- if (GetCastleData("arug_cas03",5)) {
- set .@Defence,GetCastleData("arug_cas03",3);
- SetCastleData "arug_cas03",3,.@Defence + GetCastleData("arug_cas03",5);
- setcastledata "arug_cas03",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/arug_cas04.txt b/npc/guild2/arug_cas04.txt
index c6bc29252..de8b1d104 100644
--- a/npc/guild2/arug_cas04.txt
+++ b/npc/guild2/arug_cas04.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -22,6 +22,8 @@
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.8 Fixed wrong event call for stones. (bugreport:2386) [L0ne_W0lf]
//= 1.9 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.0 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
arug_cas04,1,1,0 script Manager#aru04_02 111,{
@@ -110,6 +112,19 @@ OnClock0001:
if (!GetCastleData("arug_cas04",1)) end;
killmonster "arug_cas04","Manager#aru04_02::OnTreasureDied";
+ if (GetCastleData("arug_cas04",4)) {
+ set .@Economy,GetCastleData("arug_cas04",2);
+ SetCastleData "arug_cas04",2,.@Economy + GetCastleData("arug_cas04",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("arug_cas04",2) > 100) SetCastleData "arug_cas04",2,100;
+ setcastledata "arug_cas04",4,0;
+ }
+ if (GetCastleData("arug_cas04",5)) {
+ set .@Defence,GetCastleData("arug_cas04",3);
+ SetCastleData "arug_cas04",3,.@Defence + GetCastleData("arug_cas04",5);
+ if (GetCastleData("arug_cas04",3) > 100) SetCastleData "arug_cas04",3,100;
+ setcastledata "arug_cas04",5,0;
+ }
+
set .@Treasure,GetCastleData("arug_cas04",2)/5+4;
if (.@Treasure) {
monster "arug_cas04",291,276,"Treasure Chest",1946,1,"Manager#aru04_02::OnTreasureDied";
@@ -157,16 +172,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas04",298,269,"Treasure Chest",1324,1,"Manager#aru04_02::OnTreasureDied";
}
- if (GetCastleData("arug_cas04",4)) {
- set .@Economy,GetCastleData("arug_cas04",2);
- SetCastleData "arug_cas04",2,.@Economy + GetCastleData("arug_cas04",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "arug_cas04",4,0;
- }
- if (GetCastleData("arug_cas04",5)) {
- set .@Defence,GetCastleData("arug_cas04",3);
- SetCastleData "arug_cas04",3,.@Defence + GetCastleData("arug_cas04",5);
- setcastledata "arug_cas04",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/arug_cas05.txt b/npc/guild2/arug_cas05.txt
index fffda5ff2..f739c6d17 100644
--- a/npc/guild2/arug_cas05.txt
+++ b/npc/guild2/arug_cas05.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -22,6 +22,8 @@
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.8 Fixed wrong event call for stones. (bugreport:2386) [L0ne_W0lf]
//= 1.9 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.0 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
arug_cas05,1,1,0 script Manager#aru05_02 111,{
@@ -109,6 +111,20 @@ Onchange:
OnClock0001:
if (!GetCastleData("arug_cas05",1)) end;
killmonster "arug_cas05","Manager#aru05_02::OnTreasureDied";
+
+ if (GetCastleData("arug_cas05",4)) {
+ set .@Economy,GetCastleData("arug_cas05",2);
+ SetCastleData "arug_cas05",2,.@Economy + GetCastleData("arug_cas05",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("arug_cas05",2) > 100) SetCastleData "arug_cas05",2,100;
+ setcastledata "arug_cas05",4,0;
+ }
+ if (GetCastleData("arug_cas05",5)) {
+ set .@Defence,GetCastleData("arug_cas05",3);
+ SetCastleData "arug_cas05",3,.@Defence + GetCastleData("arug_cas05",5);
+ if (GetCastleData("arug_cas05",3) > 100) SetCastleData "arug_cas05",3,100;
+ setcastledata "arug_cas05",5,0;
+ }
+
set .@Treasure,GetCastleData("arug_cas05",2)/5+4;
if (.@Treasure) {
monster "arug_cas05",291,276,"Treasure Chest",1945,1,"Manager#aru05_02::OnTreasureDied";
@@ -156,16 +172,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas05",298,269,"Treasure Chest",1324,1,"Manager#aru05_02::OnTreasureDied";
}
- if (GetCastleData("arug_cas05",4)) {
- set .@Economy,GetCastleData("arug_cas05",2);
- SetCastleData "arug_cas05",2,.@Economy + GetCastleData("arug_cas05",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "arug_cas05",4,0;
- }
- if (GetCastleData("arug_cas05",5)) {
- set .@Defence,GetCastleData("arug_cas05",3);
- SetCastleData "arug_cas05",3,.@Defence + GetCastleData("arug_cas05",5);
- setcastledata "arug_cas05",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/schg_cas01.txt b/npc/guild2/schg_cas01.txt
index 0b1f18b86..dc1ec36be 100644
--- a/npc/guild2/schg_cas01.txt
+++ b/npc/guild2/schg_cas01.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -22,6 +22,8 @@
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.8 Corrected wrong treasure spawn position. [zapbomb]
//= 1.9 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.0 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
schg_cas01,1,1,0 script Manager#sch01_02 111,{
@@ -106,10 +108,23 @@ Onchange:
donpcevent "2nd Guardian Stone#sch01::OnEnable";
end;
-OnClock0001:
+OnClock0000:
if (!GetCastleData("schg_cas01",1)) end;
killmonster "schg_cas01","Manager#sch01_02::OnTreasureDied";
+ if (GetCastleData("schg_cas01",4)) {
+ set .@Economy,GetCastleData("schg_cas01",2);
+ SetCastleData "schg_cas01",2,.@Economy + GetCastleData("schg_cas01",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("schg_cas01",2) > 100) SetCastleData "schg_cas01",2,100;
+ setcastledata "schg_cas01",4,0;
+ }
+ if (GetCastleData("schg_cas01",5)) {
+ set .@Defence,GetCastleData("schg_cas01",3);
+ SetCastleData "schg_cas01",3,.@Defence + GetCastleData("schg_cas01",5);
+ if (GetCastleData("schg_cas01",3) > 100) SetCastleData "schg_cas01",3,100;
+ setcastledata "schg_cas01",5,0;
+ }
+
set .@Treasure,GetCastleData("schg_cas01",2)/5+4;
if (.@Treasure) {
monster "schg_cas01",388,388,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
@@ -157,16 +172,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas01",386,386,"Treasure Chest",1324,1,"Manager#sch01_02::OnTreasureDied";
}
- if (GetCastleData("schg_cas01",4)) {
- set .@Economy,GetCastleData("schg_cas01",2);
- SetCastleData "schg_cas01",2,.@Economy + GetCastleData("schg_cas01",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "schg_cas01",4,0;
- }
- if (GetCastleData("schg_cas01",5)) {
- set .@Defence,GetCastleData("schg_cas01",3);
- SetCastleData "schg_cas01",3,.@Defence + GetCastleData("schg_cas01",5);
- setcastledata "schg_cas01",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/schg_cas02.txt b/npc/guild2/schg_cas02.txt
index 5074812b4..fe87d89f4 100644
--- a/npc/guild2/schg_cas02.txt
+++ b/npc/guild2/schg_cas02.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 2.0a
+//= 2.1
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -24,6 +24,8 @@
//= 1.9 Replaced effect numerics with constants. [L0ne_W0lf]
//= 2.0 Applied updated eco/def systems. [L0ne_W0lf]
//= 2.0a Corrected investment data being reset before applied.
+//= 2.1 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
schg_cas02,1,1,0 script Manager#sch02_02 111,{
@@ -112,6 +114,19 @@ OnClock0001:
if (!GetCastleData("schg_cas02",1)) end;
killmonster "schg_cas02","Manager#sch02_02::OnTreasureDied";
+ if (GetCastleData("schg_cas02",4)) {
+ set .@Economy,GetCastleData("schg_cas02",2);
+ SetCastleData "schg_cas02",2,.@Economy + GetCastleData("schg_cas02",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("schg_cas02",2) > 100) SetCastleData "schg_cas02",2,100;
+ setcastledata "schg_cas02",4,0;
+ }
+ if (GetCastleData("schg_cas02",5)) {
+ set .@Defence,GetCastleData("schg_cas02",3);
+ SetCastleData "schg_cas02",3,.@Defence + GetCastleData("schg_cas02",5);
+ if (GetCastleData("schg_cas02",3) > 100) SetCastleData "schg_cas02",3,100;
+ setcastledata "schg_cas02",5,0;
+ }
+
set .@Treasure,GetCastleData("schg_cas02",2)/5+4;
if (.@Treasure) {
monster "schg_cas02",249,378,"Treasure Chest",1939,1,"Manager#sch02_02::OnTreasureDied";
@@ -159,16 +174,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas02",253,370,"Treasure Chest",1324,1,"Manager#sch02_02::OnTreasureDied";
}
- if (GetCastleData("schg_cas02",4)) {
- set .@Economy,GetCastleData("schg_cas02",2);
- SetCastleData "schg_cas02",2,.@Economy + GetCastleData("schg_cas02",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "schg_cas02",4,0;
- }
- if (GetCastleData("schg_cas02",5)) {
- set .@Defence,GetCastleData("schg_cas02",3);
- SetCastleData "schg_cas02",3,.@Defence + GetCastleData("schg_cas02",5);
- setcastledata "schg_cas02",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/schg_cas03.txt b/npc/guild2/schg_cas03.txt
index ef7a30c92..b5b0ef6b9 100644
--- a/npc/guild2/schg_cas03.txt
+++ b/npc/guild2/schg_cas03.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 2.1
+//= 2.2
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -26,6 +26,8 @@
//= 1.9 Replaced effect numerics with constants. [L0ne_W0lf]
//= 2.0 Fixed setcell coords for the first barricade. [L0ne_W0lf]
//= 2.1 Applied updated eco/def systems. [L0ne_W0lf]
+//= 2.2 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
schg_cas03,1,1,0 script Manager#sch03_02 111,{
@@ -114,6 +116,19 @@ OnClock0001:
if (!GetCastleData("schg_cas03",1)) end;
killmonster "schg_cas03","Manager#sch03_02::OnTreasureDied";
+ if (GetCastleData("schg_cas03",4)) {
+ set .@Economy,GetCastleData("schg_cas03",2);
+ SetCastleData "schg_cas03",2,.@Economy + GetCastleData("schg_cas03",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("schg_cas03",2) > 100) SetCastleData "schg_cas03",2,100;
+ setcastledata "schg_cas03",4,0;
+ }
+ if (GetCastleData("schg_cas03",5)) {
+ set .@Defence,GetCastleData("schg_cas03",3);
+ SetCastleData "schg_cas03",3,.@Defence + GetCastleData("schg_cas03",5);
+ if (GetCastleData("schg_cas03",3) > 100) SetCastleData "schg_cas03",3,100;
+ setcastledata "schg_cas03",5,0;
+ }
+
set .@Treasure,GetCastleData("schg_cas03",2)/5+4;
if (.@Treasure) {
monster "schg_cas03",189,21,"Treasure Chest",1940,1,"Manager#sch03_02::OnTreasureDied";
@@ -161,16 +176,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas03",194,15,"Treasure Chest",1324,1,"Manager#sch03_02::OnTreasureDied";
}
- if (GetCastleData("schg_cas03",4)) {
- set .@Economy,GetCastleData("schg_cas03",2);
- SetCastleData "schg_cas03",2,.@Economy + GetCastleData("schg_cas03",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "schg_cas03",4,0;
- }
- if (GetCastleData("schg_cas03",5)) {
- set .@Defence,GetCastleData("schg_cas03",3);
- SetCastleData "schg_cas03",3,.@Defence + GetCastleData("schg_cas03",5);
- setcastledata "schg_cas03",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/schg_cas04.txt b/npc/guild2/schg_cas04.txt
index d3e6661da..751945e0d 100644
--- a/npc/guild2/schg_cas04.txt
+++ b/npc/guild2/schg_cas04.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.6
+//= 1.7
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -19,6 +19,8 @@
//= Treasure will now be killed before spawning.
//= 1.5 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.6 Applied updated eco/def systems. [L0ne_W0lf]
+//= 1.7 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
schg_cas04,1,1,0 script Manager#sch04_02 111,{
@@ -107,6 +109,19 @@ OnClock0001:
if (!GetCastleData("schg_cas04",1)) end;
killmonster "schg_cas04","Manager#sch04_02::OnTreasureDied";
+ if (GetCastleData("schg_cas04",4)) {
+ set .@Economy,GetCastleData("schg_cas04",2);
+ SetCastleData "schg_cas04",2,.@Economy + GetCastleData("schg_cas04",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("schg_cas04",2) > 100) SetCastleData "schg_cas04",2,100;
+ setcastledata "schg_cas04",4,0;
+ }
+ if (GetCastleData("schg_cas04",5)) {
+ set .@Defence,GetCastleData("schg_cas04",3);
+ SetCastleData "schg_cas04",3,.@Defence + GetCastleData("schg_cas04",5);
+ if (GetCastleData("schg_cas04",3) > 100) SetCastleData "schg_cas04",3,100;
+ setcastledata "schg_cas04",5,0;
+ }
+
set .@Treasure,GetCastleData("schg_cas04",2)/5+4;
if (.@Treasure) {
monster "schg_cas04",388,388,"Treasure Chest",1941,1,"Manager#sch04_02::OnTreasureDied";
@@ -154,16 +169,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas04",386,386,"Treasure Chest",1324,1,"Manager#sch04_02::OnTreasureDied";
}
- if (GetCastleData("schg_cas04",4)) {
- set .@Economy,GetCastleData("schg_cas04",2);
- SetCastleData "schg_cas04",2,.@Economy + GetCastleData("schg_cas04",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "schg_cas04",4,0;
- }
- if (GetCastleData("schg_cas04",5)) {
- set .@Defence,GetCastleData("schg_cas04",3);
- SetCastleData "schg_cas04",3,.@Defence + GetCastleData("schg_cas04",5);
- setcastledata "schg_cas04",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/guild2/schg_cas05.txt b/npc/guild2/schg_cas05.txt
index 6aa646f8b..c5357a2f0 100644
--- a/npc/guild2/schg_cas05.txt
+++ b/npc/guild2/schg_cas05.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.6
+//= 1.7
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -19,6 +19,8 @@
//= Treasure will now be killed before spawning.
//= 1.5 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.6 Applied updated eco/def systems. [L0ne_W0lf]
+//= 1.7 Fixed eco/def not actually incrementing. [L0ne_W0lf]
+//= Can no longer gain eco/def higher than 100.
//============================================================
schg_cas05,1,1,0 script Manager#sch05_02 111,{
@@ -107,6 +109,19 @@ OnClock0001:
if (!GetCastleData("schg_cas05",1)) end;
killmonster "schg_cas05","Manager#sch05_02::OnTreasureDied";
+ if (GetCastleData("schg_cas05",4)) {
+ set .@Economy,GetCastleData("schg_cas05",2);
+ SetCastleData "schg_cas05",2,.@Economy + GetCastleData("schg_cas05",4) + (rand(2) && getgdskilllv(.@GID,10014));
+ if (GetCastleData("schg_cas05",2) > 100) SetCastleData "schg_cas05",2,100;
+ setcastledata "schg_cas05",4,0;
+ }
+ if (GetCastleData("schg_cas05",5)) {
+ set .@Defence,GetCastleData("schg_cas05",3);
+ SetCastleData "schg_cas05",3,.@Defence + GetCastleData("schg_cas05",5);
+ if (GetCastleData("schg_cas05",3) > 100) SetCastleData "schg_cas05",3,100;
+ setcastledata "schg_cas05",5,0;
+ }
+
set .@Treasure,GetCastleData("schg_cas05",2)/5+4;
if (.@Treasure) {
monster "schg_cas05",388,388,"Treasure Chest",1942,1,"Manager#sch05_02::OnTreasureDied";
@@ -154,16 +169,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas05",386,386,"Treasure Chest",1324,1,"Manager#sch05_02::OnTreasureDied";
}
- if (GetCastleData("schg_cas05",4)) {
- set .@Economy,GetCastleData("schg_cas05",2);
- SetCastleData "schg_cas05",2,.@Economy + GetCastleData("schg_cas05",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
- setcastledata "schg_cas05",4,0;
- }
- if (GetCastleData("schg_cas05",5)) {
- set .@Defence,GetCastleData("schg_cas05",3);
- SetCastleData "schg_cas05",3,.@Defence + GetCastleData("schg_cas05",5);
- setcastledata "schg_cas05",5,0;
- }
end;
OnTreasureDied:
diff --git a/npc/warps/fields/morroc_fild.txt b/npc/warps/fields/morroc_fild.txt
index 1fb168a94..328b7e412 100644
--- a/npc/warps/fields/morroc_fild.txt
+++ b/npc/warps/fields/morroc_fild.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= Nana (1.0)
//===== Current Version: =====================================
-//= 1.4a
+//= 1.4b
//===== Compatible With: =====================================
//= Any Athena Version
//===== Description: =========================================
@@ -14,6 +14,7 @@
//= 1.3 Updated warps for episode 12.1 [L0ne_W0lf]
//= 1.4 Uncommented warp that shouldn't have been commented. [L0ne_W0lf]
//= 1.4a Uncommented yet ANOTHER warp that was taken out. [L0ne_W0lf]
+//= 1.4b Uncommented ANOTHER warp! Yay! :D [L0ne_W0lf]
//============================================================
//= Sograt Dessert ===========================================
@@ -104,7 +105,7 @@ moc_fild16,124,381,0 warp mocf26-1 5,2,moc_fild20,197,24
moc_fild16,16,179,0 warp mocf28 2,6,moc_fild17,366,272
//moc_fild16,334,382,0 warp mocf27-1 4,2,moc_fild15,348,21
moc_fild16,333,380,0 warp mocf27-1 4,2,moc_fild20,197,24
-//moc_fild17,218,369,0 warp mocf21-1 5,2,moc_fild11,212,32
+moc_fild17,218,369,0 warp mocf21-1 5,2,moc_fild11,212,32
moc_fild17,30,300,0 warp moc29 2,5,moc_fild18,379,305
moc_fild17,369,272,0 warp mocf28-1 2,3,moc_fild16,19,179
moc_fild18,158,382,0 warp mocf24-1 4,2,moc_fild12,118,33