Add something like this to your DialogueHandler.java
Code:
case 1:
sendNpcChat2("Hello, I have the power to remove your Donator Status.", "This will be permanent so think about it.", c.talkingNpc, "Mikey96");
c.nextChat = 2;
break;
case 2:
sendOption2("I'd like to remove my status for 2B Coins.", "No Thanks, That's rather expensive.");
c.dialogueAction = 1;
break;
You then need to handle the clicking of the Options in ClickingButtons,java, this can be done by obtaining the case ID of the option by clicking them in game and adding something like this under it:
Code:
case ****;
if (c.dialogueAction == 1 && c.getItems().playerHasItem(995, 2000000000) && c.isDonator) {
c.playerRights = 0;
c.getPA().closeAllWindows();
c.sendMessage("You successfully reset your donator status, please relog for it to take effect.");
//You could add c.disconnect = true here if you want them to auto disconnect.
}
case ****;
if (c.dialogueAction == 1) {
c.getPA().closeAllWindows();
c.sendMessage("You god damn cheapskate.");
}
Hope this helps, any more questions don't hesitate to ask.