Or you can add check timer, Like these
- script DisabledHomun -1,{
OnInit:
set .Map$,"guild_vs1";
setmapflag .Map$,mf_loadevent;
end;
OnPCLoadMapEvent:
if( strcharinfo(3) == .Map$ && gethominfo(0) && checkhomcall() == 0 ){
mes "Sorry, Alchemist are not allowed in this Map. thank you";
close2;
warp "SavePoint",0,0;
}
else {
addtimer (1 * 1000), strnpcinfo(3)+"::OnPCLoadMapEvent";
}
end;
}