Stendhal Quest Coding - Part 3: Difference between revisions

Content deleted Content added
imported>Kymara
imported>Kribbel
m replace 2 old links
 
(One intermediate revision by the same user not shown)
Line 185:
=== getRegion ===
 
If there is a specific region matching one of the Stendhal regions, as defined in [httphttps://ariannegithub.cvs.sf.net/viewvccom/arianne/stendhal/blob/master/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">
Line 209:
== Further Reading and Complete Code ==
 
You can have a look at the [httphttps://ariannegithub.cvs.sf.net/viewvccom/arianne/stendhal/blob/master/src/games/stendhal/server/maps/quests/BeerForHayunn.java?view=markup complete source code for this quest].
 
The pages might be of interest to you: