Emistry icon

[RO] Item Check - Warp out if no item

Emistry | PRO | 07/04/17 09:39:15 AM UTC | 0 ⭐ | 566 👁️ | Never ⏰ | []
text |

450 B

|

None

|

0 👍

/

0 👎

// 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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎