summaryrefslogtreecommitdiff
path: root/npc/guild/gldfunc_ev_agit.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild/gldfunc_ev_agit.txt')
-rw-r--r--npc/guild/gldfunc_ev_agit.txt32
1 files changed, 15 insertions, 17 deletions
diff --git a/npc/guild/gldfunc_ev_agit.txt b/npc/guild/gldfunc_ev_agit.txt
index 8aa989149..b2e391c19 100644
--- a/npc/guild/gldfunc_ev_agit.txt
+++ b/npc/guild/gldfunc_ev_agit.txt
@@ -139,30 +139,28 @@ function script F_AgitBreak {
set .@castle$, getarg(1);
//killmonsterall .@map$;
- set @GID,getcharid(2);
- if (@GID <= 0) return;
+ set .@GID,getcharid(2);
+ if (.@GID <= 0) return;
- set @Economy,GetCastleData(.@map$,2) - 5;
- if (@Economy < 0) set @Economy, 0;
- SetCastleData .@map$,2, @Economy;
+ set .@Economy,GetCastleData(.@map$,2) - 5;
+ if (.@Economy < 0) set .@Economy, 0;
+ SetCastleData .@map$, 2, .@Economy;
- set @Defence,GetCastleData(.@map$,3) - 5;
- if (@Defence < 0) set @Defence, 0;
- SetCastleData .@map$,3, @Defence;
+ set .@Defence,GetCastleData(.@map$,3) - 5;
+ if (.@Defence < 0) set .@Defence, 0;
+ SetCastleData .@map$, 3, .@Defence;
- SetCastleData .@map$,1, @GID;
+ SetCastleData .@map$,1, .@GID;
MapAnnounce .@map$,"The emperium has been destroyed.",bc_map,0x00CCFF;
- Announce "The [" + GetCastleName(.@map$) + "] castle has been conquered by the [" + GetGuildName(@GID) + "] guild.",bc_all;
- GetCastleData .@map$,0,"::OnRecvCastle"+@castle$;
+ Announce "The [" + GetCastleName(.@map$) + "] castle has been conquered by the [" + GetGuildName(.@GID) + "] guild.",bc_all;
+ GetCastleData .@map$,0,"::OnRecvCastle"+.@castle$;
disablenpc "Kafra Staff#"+.@castle$;
- set @i, 3;
- L_Loop:
- set @i, @i + 1;
- SetCastleData .@map$,@i,0;
- if(@i < 25) goto L_Loop;
- return;
+ for( set .@i, 4; .@i < 25; set .@i, .@i+1 )
+ SetCastleData .@map$, .@i, 0;
+
+ return;
}