prontera.gat,150,150,4 script Test NPC 859,{
mes "[Test NPC]";
mes "Hello as you can see reflow is a pro scripter..";
next;
mes "[Test NPC]";
mes "So what do you want to do?";
menu "I want to do the jellopy quest",L_JELLOPY,"Nothing, thanks.",-;
close;
L_JELLOPY:
mes "[Test NPC]";
mes "For this quest you will need 10,000 zeny and 5 apples";
menu "I have them, give me the jellopy",L_FINISHED_JELLOPY,"Nvm",-;
close;
L_FINISHED_JELLOPY:
if( Zeny < 10000 ){
goto L_NOTENOUGH;
}
if(countitem(512)<5){
goto L_NOTENOUGH;
}
mes "[Test NPC]";
mes "[Here's your jellopy]";
delitem 512, 5;
set Zeny, Zeny-10000;
getitem 909, 1;
close;
L_NOTENOUGH:
mes "[Test NPC]";
mes "You dont have enough items come back when you have them.";
close;
}