With these codes
public boolean rogue() {
if(rogue = true)
{
playerEquipment[playerHat]=5554; // set armor
playerEquipment[playerCape]=6570;
playerEquipment[playerAmulet]=6585;
playerEquipment[playerChest]=1;
playerEquipment[playerShield]=1;
playerEquipment[playerLegs]=5555;
playerEquipment[playerHands]=5556;
playerEquipment[playerFeet]=5557;
playerEquipment[playerRing]=1;
playerEquipment[playerArrows]=1;
playerEquipment[playerWeapon]=1;
}
}
public booletan hunter() {
if(hunter = true)
{
playerEquipment[playerHat]=1038; // set armor
playerEquipment[playerCape]=6570;
playerEquipment[playerAmulet]=6585;
playerEquipment[playerChest]=-1;
playerEquipment[playerShield]=-1;
playerEquipment[playerLegs]=-1;
playerEquipment[playerHands]=7462;
playerEquipment[playerFeet]=-1;
playerEquipment[playerRing]=6735;
playerEquipment[playerArrows]=-1;
playerEquipment[playerWeapon]=4151;
}
}
Which will set the player's armor/weapons to the id's on the right, -1 = None.
Idk if you needed that info or not, but oh well.
I get missing return statement twice, i tryed adding return false, return true, return 0, before the 2 "}"s still the same error. Please help? Thanks!