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

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


  public void fire(final Player player, final Sentence sentence, final EventRaiser raiser) {
    raiser.say("Have fun!");
    // Track starts. The three first numbers are reserved for level,
    // time stamp and points (first is the state)
    new IncrementQuestAction("deathmatch", 5, 1).fire(player, sentence, raiser);
    deathmatchInfo.startSession(player, raiser);
  }
View Full Code Here


    final List<ChatAction> reward = new LinkedList<ChatAction>();
    // make sure we drop the checked water not any other water
    reward.add(new DropInfostringItemAction("water", CLEAN_WATER_INFOSTRING));
    reward.add(new EquipItemAction("potion", 3));
    reward.add(new IncreaseXPAction(100));
    reward.add(new IncrementQuestAction(QUEST_SLOT, 2, 1) );
    reward.add(new SetQuestToTimeStampAction(QUEST_SLOT,1));
    reward.add(new SetQuestAction(QUEST_SLOT, 0, "done"));
    reward.add(new IncreaseKarmaAction(5.0));
   
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

    reward.add(new ChangePlayerOutfitAction(balloonList[2], false, false));
    reward.add(new ChangePlayerOutfitAction(balloonList[3], false, false));
    reward.add(new IncreaseXPAction(200));
    reward.add(new IncreaseKarmaAction(50));
    reward.add(new SetQuestAction(QUEST_SLOT,0,"done"));
    reward.add(new IncrementQuestAction(QUEST_SLOT,1,1));
   
    // The player has a balloon and gives it to Bobby
    npc.add(
        ConversationStates.QUEST_ITEM_QUESTION,
        ConversationPhrases.YES_MESSAGES,
View Full Code Here

TOP

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

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.