@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) {
			sendDialogue(SEND_2_OPTIONS, "Would you like to go?",
					"Yes please.", "No thank you.");
			stage = 1;
		} else if (stage == 1) {
			if (componentId == 1) {
				doTrip();
			} else if (componentId == 2) {
				sendEntityDialogue(
						SEND_1_TEXT_CHAT,
						new String[] { player.getDisplayName(), "No thank you." },
						IS_PLAYER, player.getIndex(), 9827);
				end();
			}
			System.out.println(componentId);
			stage = 2;
		} else if (stage == 2) {
			sendDialogue(SEND_1_TEXT_INFO, "The ship arrived at Karamja.");
			stage = 3;
		} else if (stage == 3) {
			end();
		}
	}