ConversationStates.IDLE,
"Okay, that's all I need to fix the ring. Come back in "
+ REQUIRED_MINUTES
+ " minutes and it will be ready. Bye for now.",
new MultipleActions(
new DropItemAction("gold bar", REQUIRED_GOLD),
new DropItemAction("emerald", REQUIRED_GEM),
new DropItemAction("money", REQUIRED_MONEY),
new ChatAction() {
public void fire(final Player player,
final Sentence sentence,
final EventRaiser npc) {
final RingOfLife emeraldRing = (RingOfLife) player.getFirstEquipped("emerald ring");
if (player.isBoundTo(emeraldRing)) {
player.setQuest(QUEST_SLOT, "forging;"
+ System.currentTimeMillis());
} else {
player.setQuest(QUEST_SLOT, "forgingunbound;"
+ System.currentTimeMillis());
}
}
},
new DropItemAction("emerald ring")));
npc.add(ConversationStates.QUEST_ITEM_BROUGHT,
ConversationPhrases.YES_MESSAGES,
new NotCondition(new AndCondition(
new PlayerHasItemWithHimCondition("gold bar", REQUIRED_GOLD),