Examples of AgeGreaterThanCondition


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

    // So then the NPC doesn't have to choose which reason to reject the player for (appears as a WARN from engine if he has to choose)
   
    // player is not old enough
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase"),
         new NotCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE)),
         ConversationStates.ATTENDING,
         "The cost of a new house in Kirdneh is "
             + getCost()
         + " money. But I am afraid I cannot trust you with house ownership just yet. Come back when you have spent at least "
         + Integer.toString((HouseSellerNPCBase.REQUIRED_AGE / 60)) + " hours on Faiumoni.",
         null);
   
    // player is old enough and hasn't got a house but has not done required quest
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase"),
         new AndCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestNotCompletedCondition(KirdnehHouseSeller.KIRDNEH_QUEST_SLOT),
                   new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT)),
         ConversationStates.ATTENDING,
         "The cost of a new house in Kirdneh is "
         + getCost()
         + " money. But my principle is never to sell a house without establishing first the good #reputation of the prospective buyer.",
         null);
   
    // player is eligible to buy a house
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase"),
         new AndCondition(new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT),
                  new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestCompletedCondition(KirdnehHouseSeller.KIRDNEH_QUEST_SLOT)),
          ConversationStates.QUEST_OFFERED,
         "The cost of a new house is "
         + getCost()
         + " money.  Also, you must pay a house tax of " + HouseTax.BASE_TAX
View Full Code Here

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

    // So then the NPC doesn't have to choose which reason to reject the player for (appears as a WARN from engine if he has to choose)
   
    // player is not old enough
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase", "apartment"),
         new NotCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE)),
         ConversationStates.ATTENDING,
         "The cost of a new apartment in Athor is "
             + getCost()
         + " money. But, you'll have to come back when you have spent at least "
         + Integer.toString((HouseSellerNPCBase.REQUIRED_AGE / 60)) + " hours on Faiumoni. Maybe I'll have managed to get a suntan by then.",
         null);
   
    // player is old enough and hasn't got a house but has not done required quest
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase", "apartment"),
         new AndCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestNotCompletedCondition(AthorHouseSeller.FISHLICENSE2_QUEST_SLOT),
                  new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT)),
         ConversationStates.ATTENDING,
         "What do you want with an apartment on Athor when you're not even a good #fisherman? We are trying to attract owners who will spend time on the island. Come back when you have proved yourself a better fisherman.",
         null);
   
    // player is eligible to buy a apartment
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase", "apartment"),
         new AndCondition(new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT),
                  new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestCompletedCondition(AthorHouseSeller.FISHLICENSE2_QUEST_SLOT)),
          ConversationStates.QUEST_OFFERED,
         "The cost of a new apartment is "
         + getCost()
         + " money.  Also, you must pay a monthly tax of " + HouseTax.BASE_TAX
View Full Code Here

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

// (don't need to check if they have a house, they can't as they're not old enough)
add(ConversationStates.ATTENDING,
    Arrays.asList("cost", "house", "buy", "purchase"),
    new AndCondition(
               new QuestCompletedCondition(KalavanHouseseller.PRINCESS_QUEST_SLOT),
               new NotCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE))),
    ConversationStates.ATTENDING,
    "The cost of a new house is "
    + getCost()
    + " money. But I am afraid I cannot trust you with house ownership just yet, come back when you have spent at least "
    + Integer.toString((HouseSellerNPCBase.REQUIRED_AGE / 60)) + " hours on Faiumoni.",
    null);

// player is eligible to buy a house
    add(ConversationStates.ATTENDING,
    Arrays.asList("cost", "house", "buy", "purchase"),
    new AndCondition(new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT),
             new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
               new QuestCompletedCondition(KalavanHouseseller.PRINCESS_QUEST_SLOT)),
    ConversationStates.QUEST_OFFERED,
    "The cost of a new house is "
    + getCost()
    + " money. Also, you must pay a house tax of " + HouseTax.BASE_TAX
View Full Code Here

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

    // So then the NPC doesn't have to choose which reason to reject the player for (appears as a WARN from engine if he has to choose)
   
    // player is not old enough
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase"),
         new NotCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE)),
         ConversationStates.ATTENDING,
         "The cost of a new house in Ados is "
         + getCost()
         + " money. But I am afraid I cannot trust you with house ownership just yet, come back when you have spent at least "
         + Integer.toString((HouseSellerNPCBase.REQUIRED_AGE / 60)) + " hours on Faiumoni.",
          null);
   
   
    // player doesn't have a house and is old enough but has not done required quests
    add(ConversationStates.ATTENDING,
         Arrays.asList("cost", "house", "buy", "purchase"),
         new AndCondition(new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT),
                  new NotCondition(
                            new AndCondition(
                                     new QuestCompletedCondition(AdosHouseSeller.DAILY_ITEM_QUEST_SLOT),
                                     new QuestCompletedCondition(AdosHouseSeller.ANNA_QUEST_SLOT),
                                     new QuestCompletedCondition(AdosHouseSeller.KEYRING_QUEST_SLOT),
                                     new QuestCompletedCondition(AdosHouseSeller.FISHROD_QUEST_SLOT),
                                     new QuestCompletedCondition(AdosHouseSeller.GHOSTS_QUEST_SLOT),
                                     new QuestCompletedCondition(AdosHouseSeller.ZARA_QUEST_SLOT)))),
         ConversationStates.ATTENDING,
         "The cost of a new house in Ados is "
         + getCost()
         + " money. But I am afraid I cannot sell you a house yet as you must first prove yourself a worthy #citizen.",
         null);
   
    // player is eligible to buy a house
    add(ConversationStates.ATTENDING,
          Arrays.asList("cost", "house", "buy", "purchase"),
         new AndCondition(new QuestNotStartedCondition(HouseSellerNPCBase.QUEST_SLOT),
                  new AgeGreaterThanCondition(HouseSellerNPCBase.REQUIRED_AGE),
                  new QuestCompletedCondition(AdosHouseSeller.DAILY_ITEM_QUEST_SLOT),
                  new QuestCompletedCondition(AdosHouseSeller.ANNA_QUEST_SLOT),
                  new QuestCompletedCondition(AdosHouseSeller.KEYRING_QUEST_SLOT),
                  new QuestCompletedCondition(AdosHouseSeller.FISHROD_QUEST_SLOT),
                  new QuestCompletedCondition(AdosHouseSeller.GHOSTS_QUEST_SLOT),
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.