I had no problems with that.
Anyway,since you use epilogue,you can get inspired by intrepid's post.
Add this.
L2ItemInstance item = noble.getInventory().getItemByObjectId(_objectId);
if (item.getItemGrade() > 4)
{
noble.sendMessage("You can't participate to Olympiad while holding a S grade Weapon.");
return false;
}