Code:
case 553:
if (playerLevel[Magic] == 99) {
c.getShops().openShop(2);
}
break;
Okay, I'll admit I don't the exact method for levels, but I'm sure you find it. Basically, if you have the magic level of 99, then it'll do what it's told however if you don't have it, it'll do nothing. If you want it to send a message notifying you that you need a certain level, then add this. Again, change the identifiers that won't cause any errors.
Code:
case 553:
if (playerLevel[Magic] == 99) {
c.getShops().openShop(2);
} else {
sendMessage("You need a magic level of 99!");
}
break;