Code:
package com.rs.game.player.dialogues;
import com.rs.cache.loaders.NPCDefinitions;
import com.rs.game.WorldTile;
import com.rs.game.minigames.CastleWars;
import com.rs.game.Animation;
import com.rs.game.player.content.Magic;
import com.rs.game.WorldTile;
public class Ladyoflake extends Dialogue {
private int npcId;
@Override
public void start() {
npcId = (Integer) parameters[0];
sendEntityDialogue(SEND_3_TEXT_CHAT,
new String[] { NPCDefinitions.getNPCDefinitions(npcId).name,
"Hello! Welcome. You must be player.getDisplayName()",
"We have been long awaiting for your arrival!",
"Are you ready to get started?."}, IS_NPC, npcId, 250);
}
@Override
public void run(int interfaceId, int componentId) {
if (stage == -1) {
sendEntityDialogue(SEND_2_TEXT_CHAT,
new String[] { player.getDisplayName(), "Started? .....",
"For what???!!!"},
IS_PLAYER, player.getIndex(), 250);
stage = 1;
} else if (stage == 1) {
sendEntityDialogue(SEND_4_TEXT_CHAT,
new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "To
help Lividx of course!",
"To proove to these lands that you can
rule, conquer,",
"and become the greatest player to
have lived!.",
"However it will not be easy I must
warn you.."}, IS_NPC, npcId, 250);
stage = 2;
} else if (stage == 2) {
sendEntityDialogue(SEND_4_TEXT_CHAT,
new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "I
suggest you talk to my father, Sigbert.",
"He was once a great leader of a
strong army, Lesarkus",
"Before it crumbled....",
"He may help you find what you
need"}, IS_NPC, npcId, 250);
stage = 3;
} else if (stage == 3) {
sendEntityDialogue(SEND_1_TEXT_CHAT,
new String[] { player.getDisplayName(), "Well, where can I find him woman!"},
IS_PLAYER, player.getIndex(), 250);
stage = 4;
} else if (stage == 4) {
sendEntityDialogue(SEND_4_TEXT_CHAT,
new String[] { NPCDefinitions.getNPCDefinitions(npcId).name, "I'm
not sure, he moves around a lot.",
"But he spends a lot of time in the bar
these days.",
"So I suggest you ask the barman
there...",
""}, IS_NPC, npcId, 250);
end();
}
}
@Override
public void finish() {
}
}
Now it all runs fine until I get to the 4th stage where nothing happens. After you click continue on the 'Well where is he woman' it just closes the dialogue and doesn't move onto the next stage. How can I correct this?