Stendhal Quest Coding - Part 3: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
No edit summary
imported>Kymara
Line 141: Line 141:


=== getRegion ===
=== getRegion ===

If there is a specific region matching one of the Stendhal regions, as defined in [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/maps/Region.java?view=markup|Region.java], then you can set this here and any achievements or NPCs referring to quests from that region will notice the quest. You can leave this method out if you have no region to set (e.g. global quests) because the default is null.

<source lang = "java">
@Override
public String getRegion() {
return Region.SEMOS_CITY;
}
</source>

=== getNPCName ===
=== getNPCName ===
=== getHistory ===
=== getHistory ===