Okay, so basically I was wondering if there was a way to fix it when I reach the last text chat on this NPCs dialogue, it won't exit after clicking on 'Click here to continue' to end the chat.
Here's an image of it just saying 'Please wait...' :
And of course, here's my dialogue code :
Code:
package com.rs.game.player.dialogues;
import com.rs.Settings;
import com.rs.cache.loaders.NPCDefinitions;
import com.rs.utils.ShopsHandler;
import com.rs.game.tasks.WorldTask;
import com.rs.game.tasks.WorldTasksManager;
import com.rs.game.World;
import com.rs.game.Graphics;
import com.rs.game.item.Item;
public class SmugglerDialogue extends Dialogue {
int npcId;
@Override
public void start() {
npcId = (Integer) parameters[0];
sendEntityDialogue(SEND_3_TEXT_CHAT,
new String[] {
NPCDefinitions.getNPCDefinitions(npcId).name,
"Hello there traveller, if you wish to continue",
"to the other room to get started, all you need to",
"do is enter either one of the 2 doors."},
IS_NPC, npcId, 11226);
}
@Override
public void run(int interfaceId, int componentId) {
if (stage == -1) {
stage = 0;
sendEntityDialogue(SEND_2_TEXT_CHAT,
new String[] {
NPCDefinitions.getNPCDefinitions(npcId).name,
"Also, you must know that you can use the ladder in",
"this very room to exit and get back to the main land." },
IS_NPC, npcId, 11226);
}
}
@Override
public void finish() {
}
}
If you guys know how to fix this it would be more than appreciated !
(New to Java, don't be too harsh if it's easily solvable)