From: Laguz <mk...@us...> - 2010-06-03 21:31:03
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/semos/wizardstower In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv18923/src/games/stendhal/server/maps/semos/wizardstower Modified Files: WizardsGuardStatueSpireNPC.java Log Message: updated behavior of the item creation Index: WizardsGuardStatueSpireNPC.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/maps/semos/wizardstower/WizardsGuardStatueSpireNPC.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WizardsGuardStatueSpireNPC.java 24 May 2010 10:08:22 -0000 1.2 --- WizardsGuardStatueSpireNPC.java 3 Jun 2010 21:30:55 -0000 1.3 *************** *** 3,6 **** --- 3,7 ---- import games.stendhal.server.core.config.ZoneConfigurator; import games.stendhal.server.core.engine.StendhalRPZone; + import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; *************** *** 52,56 **** Arrays.asList("special"), ConversationStates.ATTENDING, ! "For example I can create a #riftcloak. I could read in your mind, adventurer. But it is not allowed to me here. So you have to tell me which special item you want and I will tell you, if I can help you.", null); add( --- 53,57 ---- Arrays.asList("special"), ConversationStates.ATTENDING, ! "For example I can create a #rift #cloak. I could read in your mind, adventurer. But it is not allowed to me here. So you have to tell me which special item you want and I will tell you, if I can help you.", null); add( *************** *** 72,83 **** ConversationStates.ATTENDING, Arrays.asList("scroll", "scrolls"), ! ConversationStates.ATTENDING, ! "I will create a magic scroll for you, but I need eight pieces of wood for that. If you want the scroll and got the wood, then just tell me to #create #a #scroll. The magic scroll is empty and can be enchanted by wizards.", null); ! add(ConversationStates.ATTENDING, Arrays.asList("create a scroll"), new NotCondition(new PlayerHasItemWithHimCondition("wood", 8)), ConversationStates.ATTENDING, "You don't have enough wood, I will need eight pieces.", null); ! add(ConversationStates.ATTENDING, Arrays.asList("create a scroll"), new PlayerHasItemWithHimCondition("wood", 8), ConversationStates.ATTENDING, --- 73,84 ---- ConversationStates.ATTENDING, Arrays.asList("scroll", "scrolls"), ! ConversationStates.INFORMATION_1, ! "I will create a magic scroll for you, but I need eight pieces of wood for that. The scroll will be empty and can be enchanted by wizards. Do you want a magic scroll?", null); ! add(ConversationStates.INFORMATION_1, ConversationPhrases.YES_MESSAGES, new NotCondition(new PlayerHasItemWithHimCondition("wood", 8)), ConversationStates.ATTENDING, "You don't have enough wood, I will need eight pieces.", null); ! add(ConversationStates.INFORMATION_1, ConversationPhrases.YES_MESSAGES, new PlayerHasItemWithHimCondition("wood", 8), ConversationStates.ATTENDING, *************** *** 87,119 **** new IncreaseXPAction(250))); ! //behavior on special item RIFTCLOAK add( ConversationStates.ATTENDING, ! Arrays.asList("riftcloak"), ! ConversationStates.ATTENDING, ! "I will create a riftcloak for you, but I have to spine a carbuncle and an emerald in the magic. When you have both gems then just tell me to #create #a #riftcloak. But remember! The cloak will protect you only one time"+ ! " entering a magical rift. The rift disintegrates the cloak instead of you. There is no way to get the cloak back. If you want to enter the rift again, you will need a new riftcloak.", null); ! add(ConversationStates.ATTENDING, Arrays.asList("create a riftcloak"), new AndCondition( new NotCondition(new PlayerHasItemWithHimCondition("carbuncle", 1)), ! new PlayerHasItemWithHimCondition("emerald", 1)), ConversationStates.ATTENDING, ! "You don't have a carbuncle, I will need an emerald and a carbuncle.", null); ! add(ConversationStates.ATTENDING, Arrays.asList("create a riftcloak"), new AndCondition( ! new NotCondition(new PlayerHasItemWithHimCondition("emerald", 1)), new PlayerHasItemWithHimCondition("carbuncle", 1)), ConversationStates.ATTENDING, ! "You don't have an emerald, I will need a carbuncle and an emerald.", null); ! add(ConversationStates.ATTENDING, Arrays.asList("create a riftcloak"), new AndCondition( ! new PlayerHasItemWithHimCondition("emerald", 1), new PlayerHasItemWithHimCondition("carbuncle", 1)), ConversationStates.ATTENDING, ! "There is your riftcloak. Don't forget that it protects you only one time, befor it will be destroyed. So be sure that you are ready for what awaits you in the rift.", new MultipleActions(new DropItemAction("carbuncle", 1), ! new DropItemAction("emerald", 1), ! new EquipItemAction("riftcloak", 1, true), new IncreaseXPAction(5000))); --- 88,120 ---- new IncreaseXPAction(250))); ! //behavior on special item RIFT CLOAK add( ConversationStates.ATTENDING, ! Arrays.asList("rift cloak"), ! ConversationStates.INFORMATION_2, ! "I will create a rift cloak for you, but I have to spine a carbuncle and an sapphire in the magic. The cloak will protect you only one time entering a magical rift."+ ! " The rift disintegrates the cloak instead of you. There is no way to get the cloak back. If you want to enter the rift again, you will need a new rift cloak. Shall I create one for you?", null); ! add(ConversationStates.INFORMATION_2, ConversationPhrases.YES_MESSAGES, new AndCondition( new NotCondition(new PlayerHasItemWithHimCondition("carbuncle", 1)), ! new PlayerHasItemWithHimCondition("sapphire", 1)), ConversationStates.ATTENDING, ! "You don't have a carbuncle, I will need an sapphire and a carbuncle.", null); ! add(ConversationStates.INFORMATION_2, ConversationPhrases.YES_MESSAGES, new AndCondition( ! new NotCondition(new PlayerHasItemWithHimCondition("sapphire", 1)), new PlayerHasItemWithHimCondition("carbuncle", 1)), ConversationStates.ATTENDING, ! "You don't have an emerald, I will need a carbuncle and an sapphire.", null); ! add(ConversationStates.INFORMATION_2, ConversationPhrases.YES_MESSAGES, new AndCondition( ! new PlayerHasItemWithHimCondition("sapphire", 1), new PlayerHasItemWithHimCondition("carbuncle", 1)), ConversationStates.ATTENDING, ! "There is your rift cloak. Don't forget that it protects you only one time, befor it will be destroyed. So be sure that you are ready for what awaits you in the rift.", new MultipleActions(new DropItemAction("carbuncle", 1), ! new DropItemAction("sapphire", 1), ! new EquipItemAction("rift cloak", 1, true), new IncreaseXPAction(5000))); |