for new NPC? -> callfunc "LadderWatch","G_Own",5,0;
for set agit main?_> set @GuildOwning,0;
setarray .@maps$[0],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
setarray .@maps$[5],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
setarray .@maps$[10],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";
setarray .@maps$[15],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
for( set .@i, 0; .@i <= 19; set .@i, .@i+1 ) {
set @GuildOwning,@GuildOwning+(getcastledata(.@maps$[.@i],1)==.@guild?1:0);
}
callfunc "LadderWork","G_Own",5,"@GuildOwning";
set @GuildOwning,0;