Stendhal Quest Coding - Part 3: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
imported>Kribbel
m replace 2 old links
 
(One intermediate revision by one other user not shown)
Line 185: Line 185:
=== 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.
If there is a specific region matching one of the Stendhal regions, as defined in [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/Region.java 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">
<source lang = "java">
Line 209: Line 209:
== Further Reading and Complete Code ==
== Further Reading and Complete Code ==


You can have a look at the [http://arianne.cvs.sf.net/viewvc/arianne/stendhal/src/games/stendhal/server/maps/quests/BeerForHayunn.java?view=markup complete source code for this quest].
You can have a look at the [https://github.com/arianne/stendhal/blob/master/src/games/stendhal/server/maps/quests/BeerForHayunn.java complete source code for this quest].


The pages might be of interest to you:
The pages might be of interest to you: