Package games.stendhal.server.entity.npc.condition

Examples of games.stendhal.server.entity.npc.condition.PlayerIsWearingOutfitCondition


        new AndCondition(
            new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(
                new SystemPropertyCondition("stendhal.minetown")),
            new OrCondition(
                new PlayerIsWearingOutfitCondition(balloonList[0]),
                new PlayerIsWearingOutfitCondition(balloonList[1]),
                new PlayerIsWearingOutfitCondition(balloonList[2]),
                new PlayerIsWearingOutfitCondition(balloonList[3]))),
        ConversationStates.QUEST_ITEM_QUESTION,
        "Hello, is that balloon for me?",
        null);
  }
View Full Code Here


        "balloon",
        new AndCondition(
            new NotCondition(
                new SystemPropertyCondition("stendhal.minetown")),
            new OrCondition(
                new PlayerIsWearingOutfitCondition(balloonList[0]),
                new PlayerIsWearingOutfitCondition(balloonList[1]),
                new PlayerIsWearingOutfitCondition(balloonList[2]),
                new PlayerIsWearingOutfitCondition(balloonList[3]))),
        ConversationStates.QUEST_ITEM_QUESTION,
        "Is that balloon for me?",
        null);

    npc.add(
        ConversationStates.ATTENDING,
        "balloon",
        new AndCondition(
            new NotCondition(
                new SystemPropertyCondition("stendhal.minetown")),
            new NotCondition(
                new OrCondition(
                    new PlayerIsWearingOutfitCondition(balloonList[0]),
                    new PlayerIsWearingOutfitCondition(balloonList[1]),
                    new PlayerIsWearingOutfitCondition(balloonList[2]),
                    new PlayerIsWearingOutfitCondition(balloonList[3])))),
        ConversationStates.ATTENDING,
        "You don't even have a balloon for me :(",
        null);

    npc.add(
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.condition.PlayerIsWearingOutfitCondition

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.