[RO] Item Check - Warp out if no item
// https://rathena.org/board/topic/111631-scripting-help-itemcheck/
- script sample -1,{
OnInit:
.second = 5;
.item_id = 512;
.map$ = "prontera";
.npc_name$ = strnpcinfo(3);
setmapflag .map$, mf_loadevent;
end;
OnCheck:
if ( !countitem( .item_id ) ) {
warp "SavePoint",0,0;
end;
}
OnPCLoadMapEvent:
if ( strcharinfo(3) == .map$ )
addtimer ( .second * 1000 ), .npc_name$+"::OnCheck";
end;
}
Comments
0 B
|👍
/👎