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 [email protected];
next;
mes "[Item Giver]";
mes "How many pieces of this item do you want to receive?";
input [email protected];
next;
mes "[Item Giver]";
mes "Here you go! Come again!";
getitem [email protected],[email protected];
close;
end;
}
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 [email protected]; next; mes "[Item Giver]"; mes "How many pieces of this item do you want to receive?"; input [email protected]; next; mes "[Item Giver]"; mes "Here you go! Come again!"; getitem [email protected],[email protected]; close; end; }
Edited by Lord GanjaLink to comment
Share on other sites