Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement