Package lineage2.gameserver.model

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


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


    int itemConsumeCount = restorationInfo.getItemConsumeCount();
    if ((itemConsumeId > 0) && (itemConsumeCount > 0))
    {
      if (ItemFunctions.getItemCount(playable, itemConsumeId) < itemConsumeCount)
      {
        playable.sendPacket(SystemMsg.THERE_ARE_NOT_ENOUGH_NECESSARY_ITEMS_TO_USE_THE_SKILL);
        return;
      }

      ItemFunctions.removeItem(playable, itemConsumeId, itemConsumeCount, true);
    }
View Full Code Here

      range = 10;
    }
    boolean canSee = GeoEngine.canSeeTarget(actor, attack_target, false);
    if (!canSee && ((range > 200) || (Math.abs(actor.getZ() - attack_target.getZ()) > 200)))
    {
      actor.sendPacket(SystemMsg.CANNOT_SEE_TARGET);
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
    range += actor.getMinDistance(attack_target);
View Full Code Here

    }
    if (actor.isInRangeZ(attack_target, range))
    {
      if (!canSee)
      {
        actor.sendPacket(SystemMsg.CANNOT_SEE_TARGET);
        setIntention(AI_INTENTION_ACTIVE);
        actor.sendActionFailed();
        return;
      }
      clientStopMoving(false);
View Full Code Here

    }
    boolean canSee = (_skill.getSkillType() == SkillType.TAKECASTLE) || (_skill.getSkillType() == SkillType.TAKEFORTRESS) || GeoEngine.canSeeTarget(actor, target, actor.isFlying());
    boolean noRangeSkill = _skill.getCastRange() == 32767;
    if (!noRangeSkill && !canSee && ((range > 200) || (Math.abs(actor.getZ() - target.getZ()) > 200)))
    {
      actor.sendPacket(SystemMsg.CANNOT_SEE_TARGET);
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
    range += actor.getMinDistance(target);
View Full Code Here

    }
    if (actor.isInRangeZ(target, range) || noRangeSkill)
    {
      if (!noRangeSkill && !canSee)
      {
        actor.sendPacket(SystemMsg.CANNOT_SEE_TARGET);
        setIntention(AI_INTENTION_ACTIVE);
        actor.sendActionFailed();
        return;
      }
      if ((_skill.getNextAction() == NextAction.ATTACK) && !actor.equals(target))
View Full Code Here

    {
      ThreadPoolManager.getInstance().execute(new ExecuteFollow(target, range - 20));
    }
    else
    {
      actor.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
    }
  }
 
View Full Code Here

        player.getInventory().addItem(itemId, 1);
      }
    }
    if (notify)
    {
      player.sendPacket(SystemMessage2.obtainItems(itemId, count, 0));
    }
  }
 
  /**
   * Method getItemCount.
View Full Code Here

        }
      }
    }
    if ((removed > 0) && notify)
    {
      player.sendPacket(SystemMessage2.removeItems(itemId, removed));
    }
    return removed;
  }
 
  /**
 
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

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.