for party....
getpartymember getcharid(1);
set .@Count,0;
for( set .@i,0; .@i < $@partymembercount; set .@i,.@i + 1 ){
getmapxy( .@Map$,.@X,.@Y,0,$@partymembername$[.@i];
if( .@Map$ == "MAPNAME" )
set .@Count,.@Count + 1;
}
announce "Total of "+.@Count+" Player in this Map.",0;
end;
for guild....use SQL since we didnt add a official getguildmember command in rAthena..
or maybe you can do it yourself..
just copy the code for getpartymember..and edit it so it return the value you want....