Player checks for event registrations.

This commit is contained in:
MobiusDev
2017-09-23 22:41:12 +00:00
parent a8e48d6179
commit d14391903b
43 changed files with 238 additions and 0 deletions

View File

@@ -134,6 +134,12 @@ public final class LaVieEnRose extends AbstractNpcAI
return false;
}
if (player.isOnEvent()) // custom event message
{
player.sendMessage("You cannot use the Beauty Shop while registered in an event.");
return false;
}
// player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_AS_THE_NPC_SERVER_IS_CURRENTLY_NOT_IN_FUNCTION);
// player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_WHILE_USING_THE_AUTOMATIC_REPLACEMENT);