コード例 #1
0
 @Override
 protected void onEnter(L2Character character) {
   if (character instanceof L2PcInstance) {
     L2PcInstance player = (L2PcInstance) character;
     character.setInsideZone(L2Character.ZONE_MOTHERTREE, true);
     if (_enterMsg != 0) player.sendPacket(SystemMessage.getSystemMessage(_enterMsg));
   }
 }
コード例 #2
0
 @Override
 protected void onExit(L2Character character) {
   if (character instanceof L2Playable) {
     character.setInsideZone(L2Character.ZONE_MONSTERTRACK, false);
   }
 }