From: Daniel H. <wik...@us...> - 2006-08-31 14:40:20
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26771/src/games/stendhal/server/maps Modified Files: Semos.java Log Message: don't let monogenes react to 'yes' or 'no' when he didn't ask anything Index: Semos.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/Semos.java,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -d -r1.100 -r1.101 *** Semos.java 31 Aug 2006 10:19:55 -0000 1.100 --- Semos.java 31 Aug 2006 14:39:56 -0000 1.101 *************** *** 1095,1098 **** --- 1095,1099 ---- npc.initHP(100); zone.addNPC(npc); + npc = new SpeakerNPC("Monogenes") { @Override *************** *** 1104,1133 **** @Override protected void createDialog() { - add(ConversationStates.IDLE, - GREETING_MESSAGES, - null, - ConversationStates.ATTENDING, - null, - new SpeakerNPC.ChatAction() { - @Override - public void fire(Player player, String text, - SpeakerNPC engine) { - // A little trick to make NPC remember if it has met - // player before anc react accordingly - // NPC_name quest doesn't exist anywhere else neither is - // used for any other purpose - if (!player.isQuestCompleted("Monogenes")) { - engine - .say("Hi foreigner, don't be surprised if people here are reserved: the fear of the advances of Blordrough's dark legion has affected everybody, including me. Do you want to know how to socialize with Semos' people?"); - player.setQuest("Monogenes", "done"); - } else { - engine.say("Hi again, " + player.getName() - + ". How can I #help you this time?"); - } - } - }); - addHelp("I'm Diogenes' older brother and I don't remember what I did before I retired. Anyway, I can help you by telling you how to treat Semos' people... Do you want to know how to socialize with them?"); addJob("I am committed to give directions to foreigners and show them how to talk to people here. However, when I'm in a bad mood I give them misleading directions hehehe... What is not necessarily bad because I can give wrong directions unwillingly anyway and they can result in being the right directions"); ! addGoodbye(); } }; --- 1105,1111 ---- @Override protected void createDialog() { addJob("I am committed to give directions to foreigners and show them how to talk to people here. However, when I'm in a bad mood I give them misleading directions hehehe... What is not necessarily bad because I can give wrong directions unwillingly anyway and they can result in being the right directions"); ! ! // All further behaviour is defined in MeetMonogenes.java. } }; |