- script sample -1,{
OnInit:
setarray .guild_id, 9999,1; // allowed guild ID
.guild_id_size = getarraysize(.guild_id);
setarray .map$, "prontera","payon"; // restricted map
.map_size = getarraysize(.map$);
for ( .@i = 0; .@i < .map_size; .@i++ )
setmapflag .map$[.@i], mf_loadevent;
end;
OnPCLoadMapEvent:
// GMs should bypass this kind of things
// if ( getgmlevel() >= 99 ) end;
.@map$ = strcharinfo(3);
for ( .@i = 0; .@i < .map_size; .@i++ ) {
if ( .@map$ == .map$[.@i] ) { // is on the map
for ( .@j = 0; .@j < .guild_id_size; .@j++ ) {
if ( getcharid(2) == .guild_id[.@j] )
end; // if the condition met, the player isn't warp away
}
warp "Save", 0,0;
end;
}
}
end;
}