//player returns to Hayunn not having killed a rat
npc.add(ConversationStates.IDLE,
ConversationPhrases.GREETING_MESSAGES,
new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
new QuestInStateCondition(QUEST_SLOT, 0, "start"),
new NotCondition(new KilledForQuestCondition(QUEST_SLOT,1))),
ConversationStates.ATTENDING,
"I see you haven't managed to kill a rat yet. Do you need me to tell you how to fight them?",
null);
//player returns to Hayunn having killed a rat
final List<ChatAction> actions = new LinkedList<ChatAction>();
actions.add(new IncreaseXPAction(10));
actions.add(new SetQuestAction(QUEST_SLOT, "killed"));
npc.add(
ConversationStates.IDLE,
ConversationPhrases.GREETING_MESSAGES,
new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
new QuestInStateCondition(QUEST_SLOT, 0, "start"),
new KilledForQuestCondition(QUEST_SLOT, 1)),
ConversationStates.INFORMATION_1,
"You killed the rat! Now, I guess you want to explore. Do you want to know the way to Semos?",
new MultipleActions(actions));