HowToAddMapsServerStendhal: Difference between revisions

Content deleted Content added
imported>Chad3f
imported>Chad3f
Line 150:
</pre>
 
An example is:
Notice that in this case, the name is especified first in ''NPC npc=npcs.add("name",...''
 
 
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.
 
 
In this case, let's suppose you plan on using our NPC later in a quest, so use something like:
 
<pre>