Package net.sf.l2j.gameserver.serverpackets

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


      {
        showMessageWindow(player);
      }
    }
    // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
    player.sendPacket(new ActionFailed());
  }
View Full Code Here


        player.sendPacket(html);
    }

    private void showMessageWindow(L2PcInstance player)
    {
        player.sendPacket(new ActionFailed());
        String filename = "data/html/clanHallManager/chamberlain-no.htm";

        int condition = validateCondition(player);
        if (condition == COND_OWNER)
            filename = "data/html/clanHallManager/chamberlain.htm";// Owner message window
View Full Code Here

        return ClanHallManager.getInstance().getClanHallById(_clanHallId);
    }

    private void showVaultWindowDeposit(L2PcInstance player)
    {
        player.sendPacket(new ActionFailed());
        player.setActiveWarehouse(player.getClan().getWarehouse());
        player.sendPacket(new WareHouseDepositList(player, WareHouseDepositList.CLAN)); //Or Clan Hall??
    }
View Full Code Here

        player.sendPacket(new WareHouseDepositList(player, WareHouseDepositList.CLAN)); //Or Clan Hall??
    }

    private void showVaultWindowWithdraw(L2PcInstance player)
    {
        player.sendPacket(new ActionFailed());
        player.setActiveWarehouse(player.getClan().getWarehouse());
        player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.CLAN)); //Or Clan Hall ??
    }
View Full Code Here

        }
        else
        {
            _log.warning("No teleport destination with id:" +val);
        }
        player.sendPacket( new ActionFailed() );
    }
View Full Code Here

            _log.warning("possible client hacker: " + player.getName()
                + " attempting to buy from GM shop! < Ban him!");
            _log.warning("buylist id:" + val);
        }

        player.sendPacket(new ActionFailed());
    }
View Full Code Here

            return;
        }
        html.replace("1race", String.valueOf(_raceNumber));
        html.replace("%objectId%", String.valueOf(getObjectId()));
        player.sendPacket(html);
        player.sendPacket(new ActionFailed());
    }
View Full Code Here

    L2PcInstance player = getClient().getActiveChar();
    if (player == null)
      return;
    if (_count < 1)
    {
      sendPacket(new ActionFailed());
      return;
    }

    L2Object target = player.getTarget();
View Full Code Here

    // If object requested does not exist, add warn msg into logs
    if (obj == null)
    {
      // pressing e.g. pickup many times quickly would get you here
      // _log.warning("Character: " + activeChar.getName() + " request action with non existent ObjectID:" + _objectId);
      getClient().sendPacket(new ActionFailed());
      return;
    }

    // Check if the target is valid, if the player haven't a shop or isn't the requester of a transaction (ex : FriendInvite, JoinAlly, JoinParty...)
    if (activeChar.getPrivateStoreType()==0 && activeChar.getActiveRequester()==null)
    {
      switch (_actionId)
      {
        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character)obj).isAlikeDead())
            obj.onAction(activeChar);
          else
            obj.onActionShift(getClient());
          break;
        default:
          // Ivalid action detected (probably client cheating), log this
          _log.warning("Character: " + activeChar.getName() + " requested invalid action: " + _actionId);
          getClient().sendPacket(new ActionFailed());
          break;
      }
    }
    else
      // Actions prohibited when in trade
      getClient().sendPacket(new ActionFailed());
  }
View Full Code Here

    if (_listId > 1000000) // lease
    {
      if (merchant.getTemplate().npcId != _listId-1000000)
      {
        sendPacket(new ActionFailed());
        return;
      }
    }

    long totalPrice = 0;
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.ActionFailed

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.