Hello, please help me with this. What script should I use in order for the npc to close whenever the input # is '0' or 'null'.
and whenever they input an ITEM ID which is NOT in the database it will say "Invalid Item ID"..
Thanks in advance..
Here's my script:
prontera,142,172,5 script Item Giver 106,{
mes "[Item Giver]";
mes "Please input the ITEM NUMBER that you want to receive.";
mes " ";
mes "You could use @ii <item name> to look for it or browse at ratemyserver.net";
input .@itemnum;
next;
mes "[Item Giver]";
mes "How many pieces of this item do you want to receive?";
input .@itemcount;
next;
mes "[Item Giver]";
mes "Here you go! Come again!";
getitem .@itemnum,.@itemcount;
close;
end;
}
Question
Lord Ganja
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.