Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.sendActionFailed()


      activeChar.sendMessage("Your trade is banned! Expires: " + (tradeBan.equals("-1") ? "never" : Util.formatTime((Long.parseLong(tradeBan) - System.currentTimeMillis()) / 1000)) + ".");
      return;
    }
    if (activeChar.isDead())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Object target = L2World.getAroundObjectById(activeChar, _objectId);
    if (target == null || !target.isPlayer() || target.getObjectId() == activeChar.getObjectId())
    {
View Full Code Here


      return;
    }
    L2Recipe rp = RecipeController.getInstance().getRecipeByRecipeId(_RecipeID);
    if(rp == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    activeChar.unregisterRecipe(_RecipeID);
    RecipeBookItemList response = new RecipeBookItemList(rp.isDwarvenRecipe(), (int) activeChar.getCurrentMp());
    response.setRecipes(activeChar.getDwarvenRecipeBook());
View Full Code Here

    }
    L2Clan clan = ClanTable.getInstance().getClanByName(_pledgeName);
    if(clan == null)
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.RequestStopPledgeWar.NoSuchClan", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if(!playerClan.isAtWarWith(clan.getClanId()))
    {
      activeChar.sendPacket(Msg.YOU_HAVE_NOT_DECLARED_A_CLAN_WAR_TO_S1_CLAN, Msg.ActionFail);
View Full Code Here

    {
      return;
    }
    if(activeChar.isOutOfControl())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Skill skill = SkillTable.getInstance().getInfo(_skillId, activeChar.getSkillLevel(_skillId));
    if(skill != null)
    {
View Full Code Here

        return;
      }
      if(!activeChar.isInRange(_loc, skill.getCastRange()))
      {
        activeChar.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
        activeChar.sendActionFailed();
        return;
      }
      L2Character target = skill.getAimingTarget(activeChar, activeChar.getTarget());
      if(skill.checkCondition(activeChar, target, _ctrlPressed, _shiftPressed, true))
      {
View Full Code Here

        activeChar.setGroundSkillLoc(_loc);
        activeChar.getAI().Cast(skill, target, _ctrlPressed, _shiftPressed);
      }
      else
      {
        activeChar.sendActionFailed();
      }
    }
    else
    {
      activeChar.sendActionFailed();
View Full Code Here

        activeChar.sendActionFailed();
      }
    }
    else
    {
      activeChar.sendActionFailed();
    }
  }
}
View Full Code Here

    }
    L2SkillLearn SkillLearn = SkillTreeTable.getSkillLearn(_id, _level, activeChar.getClassId(), _skillType == AcquireSkillList.CLAN ? activeChar.getClan() : null, isTransferSkill);
    int itemCount = SkillLearn.getItemCount();
    if(itemCount == -1)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(_skillType == AcquireSkillList.CLAN)
    {
      learnClanSkill(skill, activeChar.getClan());
View Full Code Here

    {
      return;
    }
    if(_type < 0 || _type > chatNames.length || _text == null || _text.length() == 0)
    {
      activeChar.sendActionFailed();
      return;
    }
    _text = _text.replaceAll("\\\\n", "\n");
    if(_text.contains("\n"))
    {
View Full Code Here

        _text += lines[i];
      }
    }
    if(_text.length() == 0)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(Config.LOG_TELNET)
    {
      String line_output;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.