|
@@ -3,7 +3,7 @@
|
|
//===== By: ==================================================
|
|
//===== By: ==================================================
|
|
//= L0ne_W0lf
|
|
//= L0ne_W0lf
|
|
//===== Current Version: =====================================
|
|
//===== Current Version: =====================================
|
|
-//= 1.9
|
|
|
|
|
|
+//= 2.0
|
|
//===== Compatible With: =====================================
|
|
//===== Compatible With: =====================================
|
|
//= eAthena SVN
|
|
//= eAthena SVN
|
|
//===== Description: =========================================
|
|
//===== Description: =========================================
|
|
@@ -22,6 +22,8 @@
|
|
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
|
|
//= 1.7 Replaced effect numerics with constants. [L0ne_W0lf]
|
|
//= 1.8 Corrected wrong treasure spawn position. [zapbomb]
|
|
//= 1.8 Corrected wrong treasure spawn position. [zapbomb]
|
|
//= 1.9 Applied updated eco/def systems. [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.
|
|
//============================================================
|
|
//============================================================
|
|
|
|
|
|
schg_cas01,1,1,0 script Manager#sch01_02 111,{
|
|
schg_cas01,1,1,0 script Manager#sch01_02 111,{
|
|
@@ -106,10 +108,23 @@ Onchange:
|
|
donpcevent "2nd Guardian Stone#sch01::OnEnable";
|
|
donpcevent "2nd Guardian Stone#sch01::OnEnable";
|
|
end;
|
|
end;
|
|
|
|
|
|
-OnClock0001:
|
|
|
|
|
|
+OnClock0000:
|
|
if (!GetCastleData("schg_cas01",1)) end;
|
|
if (!GetCastleData("schg_cas01",1)) end;
|
|
killmonster "schg_cas01","Manager#sch01_02::OnTreasureDied";
|
|
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;
|
|
set .@Treasure,GetCastleData("schg_cas01",2)/5+4;
|
|
if (.@Treasure) {
|
|
if (.@Treasure) {
|
|
monster "schg_cas01",388,388,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
|
|
monster "schg_cas01",388,388,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
|
|
@@ -157,16 +172,6 @@ OnClock0001:
|
|
if (.@Treasure < 24) end;
|
|
if (.@Treasure < 24) end;
|
|
monster "schg_cas01",386,386,"Treasure Chest",1324,1,"Manager#sch01_02::OnTreasureDied";
|
|
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;
|
|
end;
|
|
|
|
|
|
OnTreasureDied:
|
|
OnTreasureDied:
|