Package lineage2.gameserver.model.items.attachment

Examples of lineage2.gameserver.model.items.attachment.FlagItemAttachment


    if (actor.isInFlyingTransform())
    {
      setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
      return;
    }
    FlagItemAttachment attachment = actor.getActiveWeaponFlagAttachment();
    if ((attachment != null) && !attachment.canAttack(actor))
    {
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
View Full Code Here


   */
  @Override
  protected void thinkCast(boolean checkRange)
  {
    Player actor = getActor();
    FlagItemAttachment attachment = actor.getActiveWeaponFlagAttachment();
    if ((attachment != null) && !attachment.canCast(actor, _skill))
    {
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
View Full Code Here

    {
      if (!(skill.isActive() || skill.isToggle()))
      {
        return;
      }
      FlagItemAttachment attachment = activeChar.getActiveWeaponFlagAttachment();
      if ((attachment != null) && !attachment.canCast(activeChar, skill))
      {
        activeChar.sendActionFailed();
        return;
      }
      if ((activeChar.getTransformation() != 0) && !activeChar.getAllSkills().contains(skill))
View Full Code Here

      }
      if (!item.getTemplate().getHandler().pickupItem(this, item))
      {
        return;
      }
      FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;
      if (attachment != null)
      {
        return;
      }
      item.pickupMe();
View Full Code Here

          clanMember.sendPacket(new SystemMessage(SystemMessage.S1_YOUR_CLAN_ACADEMYS_SPONSOR_HAS_LOGGED_OUT).addString(_name));
        }
      }
      member.setPlayerInstance(this, true);
    }
    FlagItemAttachment attachment = getActiveWeaponFlagAttachment();
    if (attachment != null)
    {
      attachment.onLogout(this);
    }
    if (CursedWeaponsManager.getInstance().getCursedWeapon(getCursedWeaponEquippedId()) != null)
    {
      CursedWeaponsManager.getInstance().getCursedWeapon(getCursedWeaponEquippedId()).setPlayer(null);
    }
View Full Code Here

        }
        broadcastPacket(new GetItem(item, getObjectId()));
        item.deleteMe();
        return;
      }
      FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;
      if (!isInParty() || (attachment != null))
      {
        if (pickupItem(item, Log.Pickup))
        {
          broadcastPacket(new GetItem(item, getObjectId()));
View Full Code Here

   * Method doPKPVPManage.
   * @param killer Creature
   */
  protected void doPKPVPManage(Creature killer)
  {
    FlagItemAttachment attachment = getActiveWeaponFlagAttachment();
    if (attachment != null)
    {
      attachment.onDeath(this, killer);
    }
    if ((killer == null) || (killer == this))
    {
      return;
    }
View Full Code Here

      Player player = cha.getPlayer();
     
      QuestState qs = player.getQuestState(_10301_ShadowOfTerrorBlackishRedFog.class);
      if(qs != null && qs.getCond() == 3 && player.getVar("instance10301") == null)
      {
        Quest q = QuestManager.getQuest(10301);
        player.processQuestEvent(q.getName(), "enterInstance", null);
        //player.setVar("instance10301", "true", -1);
        return;
      }
      if (!player.getVarB("@25_20_telzone_to_magmeld"))
      {
View Full Code Here

    {
      htmltext = "32640-10.htm";
    }
    else if (id == CREATED)
    {
      QuestState ImTheOnlyOneYouCanTrust = st.getPlayer().getQuestState(_240_ImTheOnlyOneYouCanTrust.class);
      if ((st.getPlayer().getLevel() >= 81) && (ImTheOnlyOneYouCanTrust != null) && ImTheOnlyOneYouCanTrust.isCompleted())
      {
        htmltext = "32640-1.htm";
      }
      else
      {
View Full Code Here

      {
        return;
      }
      Player player = cha.getPlayer();
     
      QuestState qs = player.getQuestState(_10301_ShadowOfTerrorBlackishRedFog.class);
      if(qs != null && qs.getCond() == 3 && player.getVar("instance10301") == null)
      {
        Quest q = QuestManager.getQuest(10301);
        player.processQuestEvent(q.getName(), "enterInstance", null);
        //player.setVar("instance10301", "true", -1);
        return;
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.items.attachment.FlagItemAttachment

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.