npc.add(ConversationStates.ATTENDING,
ConversationPhrases.combine(ConversationPhrases.QUEST_MESSAGES, EXTRA_TRIGGER),
new AndCondition(
new QuestActiveCondition(QUEST_SLOT),
new PlayerHasInfostringItemWithHimCondition("water", CLEAN_WATER_INFOSTRING)),
ConversationStates.ATTENDING,
"Thank you ever so much! That's just what I wanted! Here, take these potions that Sarzina gave me - I hardly have use for them here.",
new MultipleActions(reward));
// player returns with no water at all.
npc.add(ConversationStates.ATTENDING,
ConversationPhrases.combine(ConversationPhrases.QUEST_MESSAGES, EXTRA_TRIGGER),
new AndCondition(
new QuestActiveCondition(QUEST_SLOT),
new NotCondition(new PlayerHasItemWithHimCondition("water"))),
ConversationStates.ATTENDING,
"I'm waiting for you to bring me some drinking water, this sun is so hot.",
null);
// add the other possibilities
npc.add(ConversationStates.ATTENDING,
ConversationPhrases.combine(ConversationPhrases.QUEST_MESSAGES, EXTRA_TRIGGER),
new AndCondition(
new QuestActiveCondition(QUEST_SLOT),
new PlayerHasItemWithHimCondition("water"),
new NotCondition(new PlayerHasInfostringItemWithHimCondition("water", CLEAN_WATER_INFOSTRING))),
ConversationStates.ATTENDING,
"Hmm... it's not that I don't trust you, but I'm not sure that water is okay to drink. Could you go and ask #Stefan to #check it please?",
null);
npc.addReply("Stefan", "Stefan is a chef over in the restaurant at Fado Hotel. I'd trust him to check if anything is safe to eat or drink, he's a professional.");