Examples of EquipItemAction


Examples of games.stendhal.server.entity.npc.action.EquipItemAction

    final List<ChatAction> potionactions = new LinkedList<ChatAction>();
    potionactions.add(new DropItemAction("lilia",3));
    potionactions.add(new DropItemAction("kokuda"));
    potionactions.add(new DropItemAction("wine"));
    potionactions.add(new DropItemAction("black pearl"));
    potionactions.add(new EquipItemAction("love potion"));
    potionactions.add(new IncreaseXPAction(100));
    potionactions.add(new SetQuestAction(QUEST_SLOT, "gotpotion"));

    // don't make player wait for potion - could add this in later if wanted
    npc.add(ConversationStates.ATTENDING,  Arrays.asList("salva","potion"),
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

      ConversationStates.IDLE,
      answer + "Hey! I know what you're thinking, and I don't like it!",
      null);

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new EquipItemAction("money", 10));
    reward.add(new IncreaseXPAction(10));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));   

    npc.add(ConversationStates.INFORMATION_6,
      ConversationPhrases.YES_MESSAGES,
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

        new PlayerHasItemWithHimCondition("money", REQUIRED_MONEY),
        ConversationStates.ATTENDING,
        "Alright, here's the beans. Once you take them, you come down in about 30 minutes. And if you get nervous up there, hit one of the green panic squares to take you back here.",
        new MultipleActions(
            new DropItemAction("money", REQUIRED_MONEY),
            new EquipItemAction("rainbow beans", 1, true),
            // this is still complicated and could probably be split out further
            new ChatAction() {
              public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
                if (player.hasQuest(QUEST_SLOT)) {
                  final String[] tokens = player.getQuest(QUEST_SLOT).split(";");
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

    final SpeakerNPC npc = npcs.get("Jenny");


    final List<ChatAction> actions = new LinkedList<ChatAction>();
      actions.add(new EquipItemAction("potion", 3));
    actions.add(new IncreaseXPAction(100));
    actions.add(new SetQuestAction(QUEST_SLOT, "killed;1"));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
   
    LinkedList<String> triggers = new LinkedList<String>();
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

      ConversationStates.ATTENDING,
      "Luckily I haven't been robbed while you were away. I would be glad to receive a leather cuirass. Anyway, how can I #help you?",
      null);

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new EquipItemAction("money", 80));
    reward.add(new IncreaseXPAction(50));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
    reward.add(new IncreaseKarmaAction(10));

    final List<ChatAction> reward1 = new LinkedList<ChatAction>(reward);
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("fish soup"));
    reward.add(new IncreaseXPAction(200));
    reward.add(new SetQuestToTimeStampAction(QUEST_SLOT));
    reward.add(new IncreaseKarmaAction(5));
    reward.add(new EquipItemAction("potion",10));
    reward.add(new ChatAction() {
      public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
        final Item soup = SingletonRepository.getEntityManager()
        .getItem("fish soup");
        final IRPZone zone = SingletonRepository.getRPWorld().getZone("int_ados_farm_house_1");
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new IncreaseXPAction(4000));
    actions.add(new DropInfostringItemAction("golden armor","Phalk"));
    actions.add(new DropInfostringItemAction("dwarf cloak","Phalk"));
    actions.add(new SetQuestAndModifyKarmaAction(QUEST_SLOT, "done", 5.0))
    actions.add(new EquipItemAction("dwarvish armor", 1, true));
   
    npc.add(ConversationStates.ATTENDING, "clothes",
        new AndCondition(new QuestInStateCondition(QUEST_SLOT, 0, "clothes"),
        new PlayerHasInfostringItemWithHimCondition("golden armor","Phalk"),
        new PlayerHasInfostringItemWithHimCondition("dwarf cloak","Phalk")),
View Full Code Here

Examples of games.stendhal.server.entity.npc.action.EquipItemAction

                new QuestCompletedCondition(QUEST_SLOT)),
            ConversationStates.IDLE,
            "Hi again! Don't eat too much this Easter!", null);

        final List<ChatAction> reward = new LinkedList<ChatAction>();
        reward.add(new EquipItemAction("basket"));
        reward.add(new SetQuestAction(QUEST_SLOT, "done"));

        // Give unmet players a basket
        add(ConversationStates.IDLE,
          ConversationPhrases.GREETING_MESSAGES,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.