summaryrefslogtreecommitdiff
path: root/npc/guild2/arug_cas03.txt
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/guild2/arug_cas03.txt
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/guild2/arug_cas03.txt')
-rw-r--r--npc/guild2/arug_cas03.txt27
1 files changed, 16 insertions, 11 deletions
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: