return player.isBadBoy() ;
}
}),
ConversationStates.QUESTION_1,
null,
new SayTextWithPlayerNameAction("Hi again, [name]. I sense you have been branded with the mark of a killer. Do you wish to have it removed?"));
// player has met io before and has not got a pk skull
add(ConversationStates.IDLE,
ConversationPhrases.GREETING_MESSAGES,
new AndCondition(new GreetingMatchesNameCondition(getName()),
new QuestStartedCondition("meet_io"),
new ChatCondition() {
public boolean fire(final Player player, final Sentence sentence, final Entity entity) {
return !player.isBadBoy() ;
}
}),
ConversationStates.ATTENDING,
null,
new SayTextWithPlayerNameAction("Hi again, [name]. How can I #help you this time? Not that I don't already know..."));
// first meeting with player
add(ConversationStates.IDLE,
ConversationPhrases.GREETING_MESSAGES,
new AndCondition(new GreetingMatchesNameCondition(getName()),
new QuestNotStartedCondition("meet_io")),
ConversationStates.ATTENDING,
null,
new MultipleActions(
new SayTextWithPlayerNameAction("I awaited you, [name]. How do I know your name? Easy, I'm Io Flotto, the telepath. Do you want me to show you the six basic elements of telepathy?"),
new SetQuestAction("meet_io", "start")));
add(ConversationStates.QUESTION_1, ConversationPhrases.YES_MESSAGES, null, ConversationStates.ATTENDING,
null, new ChatAction() {