HowToAddItemsStendhal: Difference between revisions
Content deleted Content added
imported>Kymara →Add Grammar: changed package location |
imported>Blacklads →Quest Reward: adding hint to item quest |
||
Line 182:
If the NPC is not already created, you can [[Stendhal NPC Coding|code a new NPC]]. You will need to add a Producer behaviour to your NPC, which should be covered separately. Until that is done, look at Producer examples such as Arlindo in Ados Bakery in your source code. The file is [http://arianne.cvs.sourceforge.net/viewvc/arianne/stendhal/src/games/stendhal/server/maps/ados/bakery/BakerNPC.java?view=markup src/games/stendhal/server/maps/ados/bakery/BakerNPC.java]. If you have any problems with the NPC understanding the item name, you might like to check [[How to test NPC Parser]].
==Item Quests and Quest
Perhaps you will want your NPC to equip the player with an item as part of a quest, see [[HowToCreateQuests]]. You can also add your items to either the [[http://stendhalgame.org/wiki/StendhalQuest#Daily_Item_Quest|DailyItem quest]] or the [[http://stendhalgame.org/wiki/StendhalQuest#Kirdneh_Museum_needs_help.21|Weekly item quest]], related to the appearance in the world (e.g. rare item?).
| |||