HowToAddMapsServerStendhal: Difference between revisions
Content deleted Content added
imported>Chad3f |
imported>Kymara →Adding NPC: updated tyo make you always add to list. pls check xx |
||
Line 113:
Usually we add NPC to make world more alive and to use them in Quests. It is because of that reason, that is so important that you add NPC on the zone they are.
''npcs.add("name",new SpeakerNPC()...)''
<pre>
NPC npc=npcs.add("name",new SpeakerNPC()
Line 137 ⟶ 125:
In other words, ''new SpeakerNPC()'' creates just a new NPC of the class SpeakerNPC but with ''npcs.add("name",new SpeakerNPC()...)'' you are in fact extending SpeakerNPC to add new functionality.
| |||