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 |
||
| (8 intermediate revisions 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 [ |
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 [ |
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: |
||
| Line 215: | Line 215: | ||
* [[HowToAddMapsServerStendhal|How to add new maps to server]] |
* [[HowToAddMapsServerStendhal|How to add new maps to server]] |
||
* [[HowToAddMapsServerStendhal#Adding_NPC|How to create NPC]] |
* [[HowToAddMapsServerStendhal#Adding_NPC|How to create NPC]] |
||
* [[How to test NPC Parser]] - ''this can help with trouble shooting'' |
* [[How to test NPC Parser]] - ''this can help with trouble shooting if an NPC isn't understanding a response'' |
||
[[Category:Stendhal]] |
[[Category:Stendhal]] |
||