From 647998c0b4bda1600c59323a4370be252701bc15 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Wed, 4 Mar 2009 18:28:22 +0000 Subject: 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 --- npc/guild2/schg_cas02.txt | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'npc/guild2/schg_cas02.txt') 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: -- cgit v1.2.3-60-g2f50