https://upaste.me/691b80
emistry's script should work though ...
- script Sample FAKE_NPC,{
OnPCLoadMapEvent:
.@map$ = strcharinfo(PC_MAP);
.@guild_id = getcharid(CHAR_ID_GUILD);
if (getmapflag(.@map$, MF_GVG_CASTLE) && .@guild_id) {
if (getmapguildusers( .@map$,.@guild_id ) > 2){
mes "Max Guild Member can stay on this map exceed.";
close2;
warp "prontera",155,181;
}
}
end;
}
aldeg_cas01 mapflag gvg_castle
aldeg_cas01 mapflag loadevent
- script Sample FAKE_NPC,{
OnPCLoadMapEvent:
.@map$ = strcharinfo(PC_MAP);
.@guild_id = getcharid(CHAR_ID_GUILD);
if (getmapflag(.@map$, MF_GVG_CASTLE) && .@guild_id) {
if (getmapguildusers( .@map$,.@guild_id ) > 2){
mes "Max Guild Member can stay on this map exceed.";
close2;
warp "prontera",155,181;
}
}
end;
}
aldeg_cas01 mapflag gvg_castle
aldeg_cas01 mapflag loadevent
now astralprojection's script
.... also works when set .max, 2; ...
... I have no idea why doesn't work for you,
- I open 6 client, 3 client join guild A, other 3 client join guild B
- guild A only can only enter 2 guild members, guild B also only can enter 2 guild members, always 1 getting kick
if it doesn't work this way, then what is the behavior you want ?