This case,
case 18302:
if (playerLevel[19] <= 1) {
guard();
addSkillXP(19, 50);
isNpc = true;
updateRequired = true;
appearanceUpdateRequired = true;
else if (playerLevel[19] >= 1) {
sendMessage("You need a shapeshifting level of 1 to do this.");
}
break;
I made it by myself, and it gives 100 errors,
what could be wrong with it?
The code means,
if player level 19 (19 = shapeshifting) equals 1 or higher, itll turn your character into a guard and will add Experience to skill 19 (Shapeshifting), 50 experience.
But if the level is 0 or lower, it will send a message saying
You need a shapeshifting level of 1 to do this.
Please help, thanks.