Clicking Buttons - Dialogue
This should be pretty simple.. How do the cases work inside of Clicking-Buttons using an IF statement inside of a case: do I need a break after every If statement like dialogues? Or a return? Because When I'm choosing an option and then I walk away from a dialogue in progress, then pull up a teleport and then go back talking to that NPC and choose an option it'll teleport me instead of finishing out the NPC chat. Hopefully this makes sense.
Code:
case 9180:
if (c.teleAction == 6) { // fishing tele
c.getPA().spellTeleport(2604, 3414, 0);
}
else if (c.dialogueAction == 9181) {
c.getDH().sendDialogues(9180, -1);
}
else if (c.teleAction == 241) {
c.getPA().spellTeleport(3096, 9868, 0);
}
/* ghouls */
else if (c.teleAction == 7) {
c.getPA().spellTeleport(3443, 3458, 0);
}
break;