// 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),