Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Object


        firstParam = null;
        plyr = null;
      }
      else
      {
        L2Object obj = activeChar.getTarget();

        if(obj == null || obj instanceof L2ControllableMobInstance || !(obj instanceof L2Character))
        {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
        }
View Full Code Here


   
    if (!(playable instanceof L2PcInstance))
      return;
   
    L2PcInstance activeChar = (L2PcInstance) playable;
    L2Object target = activeChar.getTarget();
   
    if (!(target instanceof L2DoorInstance))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
View Full Code Here

  {
    int itemId = item.getItemId();
    if (!(playable instanceof L2PcInstance))
      return;
    L2PcInstance activeChar = (L2PcInstance) playable;
    L2Object target = activeChar.getTarget();
    if (!(target instanceof L2GrandBossInstance))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
View Full Code Here

          activeChar.sendMessage("Usage: //teleport_character <valid_coordinates>");
          showTeleportCharWindow(activeChar);
          return false;
        }
       
        L2Object target = null;
        L2PcInstance player = null;
       
        if((target = activeChar.getTarget()) != null && target instanceof L2PcInstance){
         
          player = (L2PcInstance) target ;
View Full Code Here

    AdminHelpPage.showHelpPage(activeChar, "move.htm");
  }

  private void showTeleportCharWindow(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;

    if(target instanceof L2PcInstance)
    {
      player = (L2PcInstance) target;
View Full Code Here

    }*/
  }

  private void recallNPC(L2PcInstance activeChar)
  {
    L2Object obj = activeChar.getTarget();

    if(obj != null && obj instanceof L2NpcInstance)
    {
      L2NpcInstance target = (L2NpcInstance) obj;

View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2Object

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.