Package games.stendhal.server.entity.npc.action

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


    return new QuestCompletedCondition(questSlot);
  }

  @Override
  public ChatAction getRejectedTransactionAction() {
    return new SayTextAction(message);
  }
View Full Code Here


    return new QuestCompletedCondition(questSlot);
  }

  @Override
  public ChatAction getRejectedTransactionAction() {
    return new SayTextAction(message);
  }
View Full Code Here

        ConversationStates.QUESTION_2, "Great, what did you bring?",
        null);

    ChatAction completeAction = new  MultipleActions(
        new SetQuestAction(QUEST_SLOT, "done"),
        new SayTextAction("Great! Now I can heal many people for free. Thanks a lot. Take this for your work."),
        new IncreaseXPAction(50),
        new IncreaseKarmaAction(5),
        new EquipItemAction("minor potion", 5)
        );
View Full Code Here

              item.getKey(), QUEST_SLOT,
              "Good, do you have anything else?",
              "You have already brought that!",
              new MultipleActions(
                  new SetQuestAction(QUEST_SLOT,"legs"),
                  new SayTextAction("I am a stupid fool too much in love with my wife Vera to remember, of course these legs also need a base to add " +
                      "the jewels to. Please return with a pair of shadow legs. Bye.")), ConversationStates.IDLE
              ));
    }
  }
View Full Code Here

        ConversationStates.QUESTION_1, "Fine, what did you bring?",
        null);

    ChatAction completeAction = new MultipleActions(
                      new SetQuestAction(QUEST_SLOT, "reward"),
                      new SayTextAction("You have served me well, my crown will be the mightiest of them all!"
                      + " Go to see "+ REWARD_NPC_NAME+ " in the Wizard City to get your #reward."),
                      new IncreaseXPAction(XP_REWARD)
                      );
    /* add triggers for the item names */
    final ItemCollection items = new ItemCollection();
View Full Code Here

        ConversationStates.QUESTION_2, "Awesome, what did you bring?",
        null);

    ChatAction completeAction = new  MultipleActions(
        new SetQuestAction(QUEST_SLOT, "done"),
        new SayTextAction("Thank you so much! Now I can start mixing the mixture which will hopefully keep me safe inside of my own house without the assassins and bandits comming up from downstairs. Here is an assassin dagger for you. I had to take it away from one of my students in the class once and now you can maybe fight and win against them."),
        new IncreaseXPAction(5000),
        new IncreaseKarmaAction(25),
        new EquipItemAction("assassin dagger", 1 ,true)
        );
    /* add triggers for the item names */
 
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.action.SayTextAction

Copyright © 2018 www.massapicom. 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.