Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2TerritoryFlagInstance.drop()


    {
      L2ItemInstance flag = getActiveWeaponInstance();
      if(flag != null && flag.getCustomType1() != 77) // 77 это эвентовый флаг
      {
        L2TerritoryFlagInstance flagNpc = TerritorySiege.getNpcFlagByItemId(flag.getItemId());
        flagNpc.drop(this);
        sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(flag.getItemId()));
        String terrName = CastleManager.getInstance().getCastleByIndex(flagNpc.getBaseTerritoryId()).getName();
        TerritorySiege.announceToPlayer(new SystemMessage(SystemMessage.THE_CHARACTER_THAT_ACQUIRED_S1_WARD_HAS_BEEN_KILLED).addString(terrName), true);
      }
    }
View Full Code Here


      {
        L2ItemInstance flag = getActiveWeaponInstance();
        if(flag != null && flag.getCustomType1() != 77) // 77 это эвентовый флаг
        {
          L2TerritoryFlagInstance flagNpc = TerritorySiege.getNpcFlagByItemId(flag.getItemId());
          flagNpc.drop(this);
        }
      }
      /* TODO
      for(L2ItemInstance item : getInventory().getItemsList())
      if((item.getCustomFlags() & L2ItemInstance.FLAG_ALWAYS_DROP_ON_DIE) == L2ItemInstance.FLAG_DROP_ON_DISCONNECT)
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.