Stendhal Quest Coding - Part 3: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann |
imported>Hendrik Brummermann No edit summary |
||
Line 50:
<source lang="java">
// player has the quest active and has a beer with him, ask for it
npc.add(
ConversationStates.IDLE,
Line 58 ⟶ 60:
null);
// player has accepted the quest but did not bring a beer, remind him
npc.add(
ConversationStates.IDLE,
Line 99 ⟶ 102:
== Quest Documentation ==
We are almost done now. Almost? Yes, a very important thing is still missing. And we should have done it as the first thing. But well, better late than never
<source lang="java">
/**
* QUEST: Beer For Hayunn
*
* PARTICIPANTS:
* <ul>
* <li>Hayunn Naratha (the veteran warrior in Semos)</li>
* <li>Margaret (the tavern maid)</li>
* </ul>
*
* STEPS:
* <ul>
* <li>Hayunn asks you to buy a beer from Margaret.</li>
* <li>Margaret sells you a beer.</li>
* <li>Hayunn sees your beer, asks for it and then thanks you.</li>
* </ul>
*
* REWARD:
* <ul>
* <li>20 gold coins</li>
* <li>50 XP</li>
* <li>10 karma</li>
* </ul>
*
* REPETITIONS:
* <ul>
* <li>None</li>
* </ul>
*/
</source>
This documentation is only a little work in most cases because it is just a reformatted version of the [[Stendhal Quest Contribution#Refining_and_Discussing|quest description]].
== 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].
[[Category:Stendhal]]
| |||