Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendPacket()


      if (pos != null)
      {
        list.add(new CursedWeaponInfo(pos, cw.getItemId(), cw.isActivated() ? 1 : 0));
      }
    }
    activeChar.sendPacket(new ExCursedWeaponLocation(list));
  }
}
View Full Code Here


        return false;
      }
      Player target = activeChar.getTarget().getPlayer();
      target.setPcBangPoints(count);
      target.sendMessage("Your Pc Bang Points count is now " + count);
      target.sendPacket(new ExPCCafePointInfo(target, count, 1, 2, 12));
      activeChar.sendMessage("You have set " + target.getName() + "'s Pc Bang Points to " + count);
    }
    else if (fullString.startsWith("admin_reset_mentor_penalty"))
    {
      if (activeChar.getTarget().getPlayer() == null)
View Full Code Here

    {
      return;
    }
    if ((price > 0) && (player.getAdena() < price))
    {
      player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
    }
    if (player.getMountType() == 2)
    {
      player.sendMessage("Телепортаци�? верхом на виверне невозможна.");
View Full Code Here

    if (player.getReflection().isDefault())
    {
      final Castle castle = (castleId > 0) ? ResidenceHolder.getInstance().getResidence(Castle.class, castleId) : null;
      if ((castle != null) && castle.getSiegeEvent().isInProgress())
      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
    final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
    if (price > 0)
View Full Code Here

    }
    if (count > 0)
    {
      if (!player.getInventory().destroyItemByItemId(item, count))
      {
        player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_REQUIRED_ITEMS);
        return;
      }
      player.sendPacket(SystemMessage2.removeItems(item, count));
    }
    final int x = Integer.parseInt(param[0]);
View Full Code Here

      if (!player.getInventory().destroyItemByItemId(item, count))
      {
        player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_REQUIRED_ITEMS);
        return;
      }
      player.sendPacket(SystemMessage2.removeItems(item, count));
    }
    final int x = Integer.parseInt(param[0]);
    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final Location pos = Location.findPointToStay(x, y, z, 20, 70, player.getGeoIndex());
View Full Code Here

    final String page = param[0];
    final int item = Integer.parseInt(param[1]);
    final long price = Long.parseLong(param[2]);
    if (getItemCount(player, item) < price)
    {
      player.sendPacket((item == 57) ? Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA : SystemMsg.INCORRECT_ITEM_COUNT);
      return;
    }
    removeItem(player, item, price);
    show(page, player);
  }
View Full Code Here

      if(cha instanceof Player)
      {
        Player player = cha.getPlayer();
        if(ArcanManager.getStage() == _RED)
        {
          player.sendPacket(new EventTrigger(_BLUE, false));
          player.sendPacket(new EventTrigger(_RED, true));
        }
        else
        {
          player.sendPacket(new EventTrigger(_RED, false));
View Full Code Here

      {
        Player player = cha.getPlayer();
        if(ArcanManager.getStage() == _RED)
        {
          player.sendPacket(new EventTrigger(_BLUE, false));
          player.sendPacket(new EventTrigger(_RED, true));
        }
        else
        {
          player.sendPacket(new EventTrigger(_RED, false));
          player.sendPacket(new EventTrigger(_BLUE, true));
View Full Code Here

          player.sendPacket(new EventTrigger(_BLUE, false));
          player.sendPacket(new EventTrigger(_RED, true));
        }
        else
        {
          player.sendPacket(new EventTrigger(_RED, false));
          player.sendPacket(new EventTrigger(_BLUE, true));
        }
      }
    }
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.