this is not effective way
but you can do this
put this under the npc
function script mvp_maps {
.@map$ = getarg(0);
setarray .@mpv_maps$,"mjolnir_04","ra_fild03";//etc
for.@i=0;.@i<getarraysize(.@mvp_maps$);.@i++)
if(.@map$ == .@mpv_maps$[.@i])
return 0;
return 1;
}
and in the npc
warp lastwarp$,lastwarpx,lastwarpy;
to
.@r = callfunc "mvp_maps",lastwarp$;
if(.@r == 1)
warp lastwarp$,lastwarpx,lastwarpy;
else
message strcharinfo(0),"You can't warp to MVP maps.";
and go function
from this
function Go {
set lastwarp$, getarg(0);
set lastwarpx, getarg(1,0);
set lastwarpy, getarg(2,0);
warp getarg(0),getarg(1,0),getarg(2,0);
end;
}
to this
function Go {
set lastwarp$, getarg(0);
set lastwarpx, getarg(1,0);
set lastwarpy, getarg(2,0);
.@r = callfunc "mvp_maps",lastwarp$;
if(.@r == 1)
warp getarg(0),getarg(1,0),getarg(2,0);
else
message strcharinfo(0),"You can't warp to MVP maps.";
end;
}