- script ItemCheck -1,{
OnPCLoadMapEvent:
getmapxy(.@map$,.@mapx,.@mapy,0);
if(.@map$!="prt_fild01") end;
if(strcharinfo(3) == .@map$){
if(countitem(.item)){
mes "You have "+getitemname(.item)+" in your inventory.";
next;
mes "This is not allowed in this map";
warp "prontera",255,55;
} else {
addtimer(1000 * .time), ("ItemCheck")+"::OnPCLoadMapEvent";
}
}
OnInit:
.item = 12345;
.time = 3;
end;
}
prt_fild01 mapflag loadevent