Examples of ActionFailed


Examples of net.sf.l2j.gameserver.serverpackets.ActionFailed

    L2Object target = activeChar.getTarget();

    if (!(target instanceof L2ChestInstance))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
      activeChar.sendPacket(new ActionFailed());
    }
    else
    {
      L2ChestInstance chest = (L2ChestInstance) target;
      if (chest.isDead() || chest.isInteracted())
      {
        activeChar.sendMessage("The chest Is empty.");
        activeChar.sendPacket(new ActionFailed());
        return;
      }
      activeChar.useMagic(skill,false,false);
    }
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ActionFailed

    if (storeList == null) return;

        if (Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
        {
          player.sendMessage("Transactions are disable for your Access Level");
            sendPacket(new ActionFailed());
            return;
        }

        if (storePlayer.getAdena() < _price)
    {
      sendPacket(new ActionFailed());
          storePlayer.sendMessage("You have not enough adena, canceling PrivateBuy.");
      storePlayer.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
      storePlayer.broadcastUserInfo();
      return;
    }

        if (!storeList.PrivateStoreSell(player, _items, _price))
        {
            sendPacket(new ActionFailed());
            _log.warning("PrivateStore sell has failed due to invalid list or request. Player: " + player.getName() + ", Private store of: " + storePlayer.getName());
            return;
        }

        if (storeList.getItemCount() == 0)
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ActionFailed

              if (getActiveChar() instanceof L2PcInstance && ((L2PcInstance)getActiveChar()).isInDuel())
              {
                getActiveChar().disableAllSkills();
                stopHpMpRegeneration();
                 attacker.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
                 attacker.sendPacket(new ActionFailed());

                // let the DuelManager know of his defeat
                DuelManager.getInstance().onPlayerDefeat((L2PcInstance)getActiveChar());
                value = 1;
              }
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.