Hello Rune-Server community.
rep++ for helping.
The Problem:
When I click on the "No Thanks" option, it removed all windows like it suppose to and teleporting me to easts.
When I click on the "Yes Please" option, It empty my inventory but teleing me to ardy teleport. How can I fix it? Thanks.
I have a bag when using the "empty" options.
Iv'e added into my quest tab an empty button.
ClickingButtons.java
Code:
case 28170:
c.dialogueAction = 51;
c.getDH().sendOption5("", "No Thanks.", "", "Yes Please.", "");
break;
2nd option (No Thanks):
Code:
//2nd tele option
case 9191:
if (c.teleAction == 1) {
//tav dungeon
c.getPA().spellTeleport(2884, 9798, 0);
} else if (c.teleAction == 2) {
//barrows
c.getPA().spellTeleport(3565, 3314, 0);
} else if (c.teleAction == 3) {
//kbd
c.getPA().spellTeleport(3007, 3849, 0);
} else if (c.teleAction == 4) {
//east dragons
c.getPA().spellTeleport(3368, 3674, 0);
} else if (c.teleAction == 5) {
//smithing
c.getPA().spellTeleport(3079,9502,0);
}
if (c.dialogueAction == 10) {
c.getPA().spellTeleport(2796, 4818, 0);
c.dialogueAction = -1;
} else if (c.dialogueAction == 11) {
c.getPA().spellTeleport(2527, 4833, 0);
c.dialogueAction = -1;
} else if (c.dialogueAction == 12) {
c.getPA().spellTeleport(2464, 4834, 0);
c.dialogueAction = -1;
} else if (c.dialogueAction == 51) {
c.getPA().removeAllWindows();
c.dialogueAction = -1;
}
break;
4th option (Yes Please):
Code:
//4th tele option
case 9193:
if (c.teleAction == 1) {
//kbd
c.getPA().spellTeleport(3007, 3849, 0);
} else if (c.teleAction == 2) {
//tzhaar
c.getPA().spellTeleport(2444, 5170, 0);
} else if (c.teleAction == 4) {
//ardy lever
c.getPA().spellTeleport(2561, 3311, 0);
} else if (c.teleAction == 5) {
//woodcutting
c.getPA().spellTeleport(2724,3484,0);
c.sendMessage("For magic logs, try north of the duel arena.");
}
if (c.dialogueAction == 10) {
c.getPA().spellTeleport(2660, 4839, 0);
c.dialogueAction = -1;
} else if (c.dialogueAction == 11) {
//c.getPA().spellTeleport(2527, 4833, 0); astrals here
c.getRunecrafting().craftRunes(2489);
c.dialogueAction = -1;
} else if (c.dialogueAction == 12) {
//c.getPA().spellTeleport(2464, 4834, 0); bloods here
c.getRunecrafting().craftRunes(2489);
c.dialogueAction = -1;
} else if (c.dialogueAction == 51) {
c.getPA().removeAllItems();
c.getPA().removeAllWindows();
c.sendMessage("Your inventory emptied.");
c.dialogueAction = -1;
}
break;