From: Katie <ky...@us...> - 2009-02-17 23:26:46
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/semos/bank In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv12289/semos/bank Modified Files: CustomerAdvisorNPC.java Log Message: tell new players about the vault once they have finished the armor for dagobert quest - until then he won't let you go into it Index: CustomerAdvisorNPC.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/semos/bank/CustomerAdvisorNPC.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** CustomerAdvisorNPC.java 21 Jan 2009 11:50:45 -0000 1.16 --- CustomerAdvisorNPC.java 17 Feb 2009 23:26:38 -0000 1.17 *************** *** 16,19 **** --- 16,21 ---- import games.stendhal.server.entity.npc.SpeakerNPC; import games.stendhal.server.entity.npc.SpeakerNPCFactory; + import games.stendhal.server.entity.npc.condition.QuestCompletedCondition; + import games.stendhal.server.entity.npc.condition.QuestNotCompletedCondition; import games.stendhal.server.entity.npc.parser.Sentence; import games.stendhal.server.entity.player.Player; *************** *** 77,82 **** @Override public void createDialog(final SpeakerNPC npc) { ! npc.addGreeting("Welcome to the bank of Semos! Do you need #help on your personal chest?"); ! npc.addHelp("Follow the corridor to the right, and you will find the magic chests. You can store your belongings in any of them, and nobody else will be able to touch them! A number of spells have been cast on the chest areas to ensure #safety, please ask me about this if you want to know more."); npc.addReply("safety", "When you are standing at a chest to organise your items, any other people or animals will not be able to come near you. A magical aura stops others from using scrolls to arrive near you, although unfortunately this also means you cannot use scrolls to exit the bank. You will need to walk out. Lastly let me tell you about safe #trading."); npc.addReply("trading", "There is a large table in the top right hand corner of this bank. It is designed so that trading can be done safely. Here is how to use it: Each take a chair and sit at opposite sides of the table. Once you have agreed to a trade, place up to 3 items at once on the 3 tiles directly adjacent to you on the table. Wait until the other person has done the same. Make sure you can see exactly what they have placed and how much of each item. Next is the #exchange."); --- 79,84 ---- @Override public void createDialog(final SpeakerNPC npc) { ! npc.addGreeting("Welcome to the bank of Semos! I am here to #help you manage your personal chest."); ! npc.addHelp("Follow the corridor to the right, and you will find the magic chests. You can store your belongings in any of them, and nobody else will be able to touch them! A number of spells have been cast on the chest areas to ensure #safety."); npc.addReply("safety", "When you are standing at a chest to organise your items, any other people or animals will not be able to come near you. A magical aura stops others from using scrolls to arrive near you, although unfortunately this also means you cannot use scrolls to exit the bank. You will need to walk out. Lastly let me tell you about safe #trading."); npc.addReply("trading", "There is a large table in the top right hand corner of this bank. It is designed so that trading can be done safely. Here is how to use it: Each take a chair and sit at opposite sides of the table. Once you have agreed to a trade, place up to 3 items at once on the 3 tiles directly adjacent to you on the table. Wait until the other person has done the same. Make sure you can see exactly what they have placed and how much of each item. Next is the #exchange."); *************** *** 86,93 **** npc.addGoodbye("It was a pleasure to serve you."); ! ! npc.add(ConversationStates.ANY, "vault", null, ConversationStates.IDLE, null, new VaultChatAction()); } --- 88,97 ---- npc.addGoodbye("It was a pleasure to serve you."); ! npc.add(ConversationStates.ANY, "vault", new QuestCompletedCondition("armor_dagobert"), ConversationStates.IDLE, null, new VaultChatAction()); + npc.add(ConversationStates.ANY, "vault", new QuestNotCompletedCondition("armor_dagobert"), ConversationStates.ATTENDING, "Perhaps you could do a #favour for me, and then I will tell you about the private banking vaults.", null); + + // remaining behaviour defined in games.stendhal.server.maps.quests.ArmorForDagobert } |