Anyone can help on this item link script
- script itemdescs -1,{
end;
OnInit:
bindatcmd "ii2",strnpcinfo(3)+"::OnAtcommand";
bindatcmd "itemdesc",strnpcinfo(3)+"::OnAtcommand";
end;
OnAtcommand:
mes "^3355FF[ Item Description Search ]^000000";
mes "Input item name:";
input .@item;
mes "<ITEMLINK>"+getitemname(.@item)+"<INFO>"+.@item+"</INFO></ITEMLINK>";
mes "Click on the name of the item above.";
close;
}
script is not mine, ctto. I revised it and made it search the item using its item id. Now I want to make it more user friendly by replacing item id to name. User inputs the name of an item then it will show the corresponding list(s) of item with the same name. If the input is invalid / not in the database return Invalid input.