I am looking to create a NPC that acts as a #summonitem proxy. I want to keep my players access limited to the default commands, and not give them access to any special commands. Since they have #itemsearch by default I would like to create an NPC that allows them to recieve an item of their choice by saying to him the item ID number. Once I get the basic event down I was thinking of turning it into some sort of quest with a handin and then he gives you the option to have him summon you any item in the game. Or just sticking him in a really hard location to get to. Not sure yet...
Example:
Code:
Player: Hail "NPC"
NPC: What [item] do you seek?
Player: I seek item 12345
NPC: Here is your item
I have searched the wiki quest info and also looked through a bunch of quests on the forums but cannot find anything with an example of a dynamic say event.
How do I make it so the NPC reads the item number that the player says and summons the item for the player?
quest::summonitem("12345") - would be the static way
$say = player text
quest::summonitem("$say") - dynamic way