Package net.sf.l2j.gameserver.serverpackets

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


          //load up character from disk
          L2PcInstance cha = getClient().loadCharFromDisk(_charSlot);
          if (cha == null)
          {
            _log.severe("Character could not be loaded (slot:"+_charSlot+")");
            sendPacket(new ActionFailed());
            return;
          }
          if (cha.getAccessLevel() < 0)
          {
            cha.closeNetConnection();
View Full Code Here


      return;

    if (activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_TRADE_DISCARD_DROP_ITEM_WHILE_IN_SHOPMODE));
      activeChar.sendPacket(new ActionFailed());
      return;
    }

    // NOTE: disabled due to deadlocks
//        synchronized (activeChar.getInventory())
View Full Code Here

    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
      return;
    else if (activeChar.isAttackingNow() && activeChar.getActiveWeaponItem() != null && (activeChar.getActiveWeaponItem().getItemType() == L2WeaponType.BOW))
    {
      activeChar.sendPacket(new ActionFailed());
    }
    else
    {
      if(!activeChar.isInBoat())
      {
View Full Code Here

          if (_command.substring(endOfId+1).startsWith("event_participate")) L2Event.inscribePlayer(activeChar);
          else if (object != null && object instanceof L2NpcInstance && endOfId > 0 && activeChar.isInsideRadius(object, L2NpcInstance.INTERACTION_DISTANCE, false, false))
          {
            ((L2NpcInstance)object).onBypassFeedback(activeChar, _command.substring(endOfId+1));
          }
          activeChar.sendPacket(new ActionFailed());
        }
        catch (NumberFormatException nfe) {}
      }
      //  Draw a Symbol
      else if (_command.equals("menu_select?ask=-16&reply=1"))
View Full Code Here

                    showMessageWindow(player, "manager.htm");
                }
            }
        }
        // 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

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

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

        // input string format:
      // manor_menu_select?ask=X&state=Y&time=X
       
      if (CastleManorManager.getInstance().isUnderMaintenance())
      {
        player.sendPacket(new ActionFailed());
        player.sendPacket(new SystemMessage(SystemMessageId.THE_MANOR_SYSTEM_IS_CURRENTLY_UNDER_MAINTENANCE));
        return;
      }

      String params = command.substring(command.indexOf("?")+1);
View Full Code Here

        _activeChar = (L2PcInstance)playable;

        if(_activeChar.getTarget() == null || !(_activeChar.getTarget() instanceof L2MonsterInstance)) {
            _activeChar.sendPacket(new SystemMessage(SystemMessageId.TARGET_IS_INCORRECT));
            _activeChar.sendPacket(new ActionFailed());
            return;
        }

        _target = (L2MonsterInstance)_activeChar.getTarget();

        if (_target == null || !_target.isDead()) {
          _activeChar.sendPacket(new ActionFailed());
          return;
        }

        L2Skill skill = SkillTable.getInstance().getInfo(2098, 1); //harvesting skill
      _activeChar.useMagic(skill,false,false);
View Full Code Here

        player.sendMessage("Only the castle lord can pickup mercenaries.");

      player.setTarget(this);
      player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
            // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
            player.sendPacket(new ActionFailed());
    }
    else
      player.getAI().setIntention(CtrlIntention.AI_INTENTION_PICK_UP, this);
  }
View Full Code Here

            player.sendPacket(bl);
        }
        else
        {
            _log.warning("no buylist with id:" + val);
            player.sendPacket(new ActionFailed());
        }
    }
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.