Base: Project Insanity
Problem: keep locking xp somehow look at my code
other media: none
compiling errors: none
Hey..So
On DialogueOption's I used the button 9169 to lock my xp and I used it to show another dialogue on a other npc.
If I click on "How to recovery Bank Pin" (the option button) it just locks my xp and doesn't send the dialogues.. that happens to any button 9169.
Any help please?
My code for the button:
Code:
case 9169:
if (c.dialogueAction == 23) {
c.dialogueId = 30;
c.getDH().sendDialogues(c.dialogueId, 0);
}
if (c.xpLock == false) { // xp lock
c.xpLock = true;
c.sendMessage("Your XP is now locked!");
} else {
c.xpLock = false;
c.sendMessage("Your XP are now unlocked!");
}
break;
edit: now i did this
Code:
case 9169:
if (c.dialogueAction == 23) {
c.dialogueId = 30;
c.getDH().sendDialogues(c.dialogueId, 0);
}
if (c.xpLock == false && c.dialogueAction == 18) {
c.xpLock = true;
c.sendMessage("Your XP is now locked!");
} else {
c.xpLock = false;
c.sendMessage("Your XP are now unlocked!");
}
break;
and still nothing happend