Here is my code:
Code:
if (c.dialogueAction == 49 && c.playerRights == 4) {
c.getItems().addItem(15145, 1);
c.sendMessage("@blu@You have chosen the Donator Cape, thanks for donating!");
} else if (c.getItems().freeSlots() < 1) {
c.getPA().removeAllWindows();
c.sendMessage("@blu@You must have atleast 1 free slot available.");
} else if (!(c.playerRights == 4)) {
c.getPA().removeAllWindows();
c.sendMessage("@blu@You must be a Regular Donator to recieve this cape.");
}
For some reason if the characters player rights do equal 4 and they click to get the cape, it does nothing. It doesn't send the message or give the item. Can someone solve this for me?