Axe Software Forums
  QuestNet Forum
  giving the player an object


Author Topic:   giving the player an object
Gautier UK posted 13-04-2003 13:28 BST     
i know that in QuestNet, u cant use the string #player# to give the player an object. what code do i need to be able to give the player an object...for example. the player goes to a shop, and type /item list. a list of items that are available to buy come up. the player then types /buy <item>. now i need to know wot code the player is.... i think its $name(%userid%)$, ill try it but knowing my luck it wont work.
Alex posted 13-04-2003 18:20 BST          
Just move the object into the player's inventory. The player's inventory has the same name as the object name of the player. For example:

move <cabbage; player%userid%>

Gautier UK posted 14-04-2003 20:03 BST          
hehe, thanks.
Alex posted 14-04-2003 23:16 BST          
Actually if you're just giving the object to the player that initiated the script, then the standard "give <object>" syntax ought to work as well.
Gautier UK posted 23-04-2003 22:57 BST          
thanks