Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Object


   * This function will give all the skills that the target can learn at his/her level
   * @param activeChar
   */
  private void adminGiveAllSkills(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here


    return (level >= REQUIRED_LEVEL);
  }

  private void removeSkillsPage(L2PcInstance activeChar, int page)
  {  //TODO: Externalize HTML
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    activeChar.sendPacket(adminReply);
  }

  private void showMainPage(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    activeChar.sendPacket(adminReply);
  }

  private void adminGetSkills(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    showMainPage(activeChar);
  }

  private void adminResetSkills(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    showMainPage(activeChar);
  }

  private void adminAddSkill(L2PcInstance activeChar, String val)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    }
  }

  private void adminRemoveSkill(L2PcInstance activeChar, int idval)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

    removeSkillsPage(activeChar, 0); //Back to previous page 
  }

  private void adminAddClanSkill(L2PcInstance activeChar, int id, int level)
  {
    L2Object target = activeChar.getTarget();
    L2PcInstance player = null;
    if (target instanceof L2PcInstance)
      player = (L2PcInstance)target;
    else
    {
View Full Code Here

   * @param command
   * @param activeChar
   */
  private void snoop(String command, L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
    if(target == null)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MUST_SELECT_A_TARGET));
      return;
    }
View Full Code Here

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

TOP

Related Classes of net.sf.l2j.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.