- script Sample -1,{
OnInit:
// list all the guild castle map here.
setarray .map$,
"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05",
"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05",
"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
set .map_size,getarraysize( .map$ );
for( set .@i,0; .@i < .map_size; set .@i,.@i + 1 )
setmapflag .map$[.@i],.mf_laodevent;
end;
OnPCLoadMapEvent:
set .@map$,strcharinfo(3);
set .@guild,getcharid(2);
if( .@guild )
while( .@i < .map_size ){
if( .@map$ == .map$[.@i] )
if( getmapguildusers( .@map$,.@guild ) >= 12 ){
mes "You cant enter since there are 12 guild member in this maps.";
close2;
warp "prontera",155,181;
break;
}
set .@i,.@i + 1;
}
end;
}