I want to create a npc that can search for a given itemname within the database, show the output
within the text-window as a menu for the player - and then the player can klick on one of these
items and push a button for example "OK", and then the item will be given to the player.
I have tried to create this npc, but im not a well scripter, so this is everything i have written so foar:
prontera.gat,xxx,yyy,7<tab>script<tab>Item-Watcher<tab>811,{
mes "[item-Watcher]";
mes "Which item are you looking for?";
input @item;
query_sql "SELECT id,name_english FROM `itemdb` WHERE `name_english` LIKE @item", @liste;
for(set @i, 0; @i < getarraysize(@liste); set @i,@i + 1){
mes @liste[@i];
}
....
Question
ankana
Hi @all Scripter,
i need some help with a special npc.
I want to create a npc that can search for a given itemname within the database, show the output
within the text-window as a menu for the player - and then the player can klick on one of these
items and push a button for example "OK", and then the item will be given to the player.
I have tried to create this npc, but im not a well scripter, so this is everything i have written so foar:
Can please someone help me.
Kind Regards
Ankana
Link to comment
Share on other sites
5 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.