@Override
	public void run(int interfaceId, int componentId) {
		if (stage == -1) {
			sendEntityDialogue(SEND_1_TEXT_CHAT,
					new String[] { NPCDefinitions.getNPCDefinitions(npcId).name,
						"The trip will cost you 30 coins." }, IS_NPC, npcId, 9827);
			stage = 0;
		} else if (stage == 0) {
			sendOptionsDialogue("Would you like to go?",
					"Yes please.", "No thank you.");
			stage = 1;
		} else if (stage == 1) {
			if (componentId == 1) {
				doTrip();
			} else if (componentId == 2) {
				sendPlayerDialogue( 9827,"No thank you."  );
			}
			System.out.println(componentId);
			stage = 3;
		} else if (stage == 2) {
			sendDialogue("The ship arrived at Karamja.");
			stage = 3;
		} else if (stage == 3) {
			end();
		}
	}