I am running into the issue of not being able to use the second dialogue screen (sendOptionsDialogue and ComponentId's). When I press the option nothing happens when it should send it to another stage. Can anyone tell me what I'm doing wrong?
Code:
@Override
public void start() {
npcId = (Integer) parameters[0];
sendNPCDialogue(npcId, 9827, "Welcome to the Lottery.");
stage = 1;
}
@Override
public void run(int interfaceId, int componentId) {
if (stage == 1) {
sendOptionsDialogue("What would you like to say?",
"Can you tell me about the lottery?",
"I would like to join the 2500k lottery",
"I would like to join the 5m lottery",
"How many slots are left for each lottery?");
} else if (stage == 2) {
if (componentId == OPTION_1)
sendPlayerDialogue( 9827, "Can you tell me about the lottery?");
stage = 2;
}
else if (componentId == OPTION_2){
sendPlayerDialogue( 9827, "I would like to join the 2500k lottery");
stage = 3;
}
else if (componentId == OPTION_3){
sendPlayerDialogue( 9827, "I would like to join the 5m lottery");
stage = 4;
}
else if (componentId == OPTION_4){
sendPlayerDialogue( 9827, "How many slots are left for the lottery?");
stage = 5;