guys, im trying to make a boolean so you can buy the title, it activate's the boolean then if you have it true so you can give title free...
Code:
case 113251:
if (c.LoyaltyPoints <= 100){
c.sendMessage("You Need 100 Loyalty Points for this (Play some more)");
} else {
c.LoyaltyPoints -= 100;
c.sendMessage("You Purchase&Apply Sir, You now have "+c.LoyaltyPoints+"");
c.playerTitle = 2;
c.sir = true;
if (c.sir = true) {
c.playerTitle = 2;
c.sendMessage("You Apply Sir, As You've Already Bought it!");
}
}
break;
Why is this not working, do i need to return or something after announcing the boolean true?
Please comment ASAP
EDIT:
Code:
case 113251:
if (c.LoyaltyPoints <= 100){
c.sendMessage("You Need 100 Loyalty Points for this (Play some more)");
}
if (c.sir = false) {
c.LoyaltyPoints -= 100;
c.sendMessage("You Purchase&Apply Sir, You now have "+c.LoyaltyPoints+"");
c.playerTitle = 2;
c.sir = true;
}
if (c.sir = true) {
c.playerTitle = 2;
c.sendMessage("You Apply Sir, As You've Already Bought it!");
}
}
break;
Little edit