diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-26 22:19:53 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-26 22:19:53 +0000 |
commit | 08bdb8f6123c057475b23c717402cea50b887864 (patch) | |
tree | d83e25501674ce2669ecd54c5eb8220b546bb2f3 /npc/guild/gldfunc_ev_agit.txt | |
parent | b3428eded9209230188f8c5a17045d02d55766e8 (diff) | |
download | hercules-08bdb8f6123c057475b23c717402cea50b887864.tar.gz hercules-08bdb8f6123c057475b23c717402cea50b887864.tar.bz2 hercules-08bdb8f6123c057475b23c717402cea50b887864.tar.xz hercules-08bdb8f6123c057475b23c717402cea50b887864.zip |
* Fixed some minor guild script related bugs.
- And no, this does NOT fix the Emperium spawning issue.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11811 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild/gldfunc_ev_agit.txt')
-rw-r--r-- | npc/guild/gldfunc_ev_agit.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/npc/guild/gldfunc_ev_agit.txt b/npc/guild/gldfunc_ev_agit.txt index 51d863574..1a43f2527 100644 --- a/npc/guild/gldfunc_ev_agit.txt +++ b/npc/guild/gldfunc_ev_agit.txt @@ -4,7 +4,7 @@ //= jAthena - kalen (1.0) //= 1.1 by Akaru, ho|yAnge|X, and Valaris //===== Current Version: ===================================== -//= 1.7 +//= 1.8 //===== Compatible With: ===================================== //= eAthena SVN; RO Episode 4+ //===== Description: ========================================= @@ -31,6 +31,9 @@ //= 1.6 Fixed the OnAgitBreak message being map-only and not global. (Lil DomX) [L0ne_W0lf] //= 1.7 Updated functions, got rid of the various gotos. [L0ne_W0lf] //= Castles can be conquered as long as they un-owned. +//= 1.8 Fixed Guardian data being overwritten when castle ownership changes. [L0ne_W0lf] +// Data will only be saved for guardians if you have the Guaridan Research. +// It works this way to deal with a bug on ownership change. //============================================================ @@ -139,7 +142,6 @@ function script F_AgitBreak { set .@map$, getarg(0); set .@castle$, getarg(1); - //killmonsterall .@map$; set .@GID,getcharid(2); if (.@GID <= 0) return; @@ -158,7 +160,14 @@ function script F_AgitBreak { disablenpc "Kafra Staff#"+.@castle$; - for( set .@i, 4; .@i <= 25; set .@i, .@i+1 ) + // Set data to be cleared from the castle + // If the new owning guild doesn't have have + // Guardian Research erase all guardian data. + // Otherwise remove investment data and kafra. + if (getgdskilllv(.@GID,10002) == 0) set .@data,25; + else set .@data,9; + + for( set .@i, 4; .@i <= .@data; set .@i, .@i+1 ) SetCastleData .@map$, .@i, 0; return; |