Examples of RewardType


Examples of lineage2.gameserver.model.reward.RewardType

          }
          template.setFaction(faction);
        }
        else if (nodeName.equalsIgnoreCase("rewardlist"))
        {
          RewardType type = RewardType.valueOf(secondElement.attributeValue("type"));
          boolean autoLoot = (secondElement.attributeValue("auto_loot") != null) && Boolean.parseBoolean(secondElement.attributeValue("auto_loot"));
          RewardList list = new RewardList(type, autoLoot);
          for (Iterator<org.dom4j.Element> nextIterator = secondElement.elementIterator(); nextIterator.hasNext();)
          {
            final org.dom4j.Element nextElement = nextIterator.next();
View Full Code Here

Examples of lineage2.gameserver.model.reward.RewardType

        {
          continue;
        }
        NamedNodeMap attrs = npcNode.getAttributes();
        RewardList list = null;
        RewardType type = null;
        int npcId = parseInt(attrs, "id");
        NpcTemplate template = NpcHolder.getInstance().getTemplate(npcId);
        if (template == null)
        {
          _log.warn("Omitted NPC ID: " + npcId + " - NPC template does not exists!");
View Full Code Here

Examples of lineage2.gameserver.model.reward.RewardType

   * @param lastAttacker Creature
   * @param topDamager Creature
   */
  public void rollRewards(Map.Entry<RewardType, RewardList> entry, final Creature lastAttacker, Creature topDamager)
  {
    RewardType type = entry.getKey();
    RewardList list = entry.getValue();
    if ((type == RewardType.SWEEP) && !isSpoiled())
    {
      return;
    }
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.