Advertisement
Emistry

[RO] Item Check - Warp out if no item

Jul 4th, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // https://rathena.org/board/topic/111631-scripting-help-itemcheck/
  2.  
  3. - script sample -1,{
  4. OnInit:
  5. .second = 5;
  6. .item_id = 512;
  7. .map$ = "prontera";
  8.  
  9. .npc_name$ = strnpcinfo(3);
  10. setmapflag .map$, mf_loadevent;
  11. end;
  12.  
  13. OnCheck:
  14. if ( !countitem( .item_id ) ) {
  15. warp "SavePoint",0,0;
  16. end;
  17. }
  18.  
  19. OnPCLoadMapEvent:
  20. if ( strcharinfo(3) == .map$ )
  21. addtimer ( .second * 1000 ), .npc_name$+"::OnCheck";
  22. end;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement