Package lineage2.gameserver.stats.conditions

Examples of lineage2.gameserver.stats.conditions.Condition


  protected void attachFunc(Element n, StatTemplate template, String name)
  {
    Stats stat = Stats.valueOfXml(n.attributeValue("stat"));
    String order = n.attributeValue("order");
    int ord = parseNumber(order).intValue();
    Condition applyCond = parseFirstCond(n);
    double val = 0;
    if (n.attributeValue("value") != null)
    {
      val = parseNumber(n.attributeValue("value")).doubleValue();
    }
View Full Code Here


            template.setUnequipeSkill(skill);
          }
        }
        else if (subName.equalsIgnoreCase("cond"))
        {
          Condition condition = parseFirstCond(subElement);
          if (condition != null)
          {
            int msgId = parseNumber(subElement.attributeValue("msgId")).intValue();
            condition.setSystemMsg(msgId);
            template.setCondition(condition);
          }
        }
        else if (subName.equalsIgnoreCase("attributes"))
        {
View Full Code Here

            template.setUnequipeSkill(skill);
          }
        }
        else if (subName.equalsIgnoreCase("cond"))
        {
          Condition condition = parseFirstCond(subElement);
          if (condition != null)
          {
            int msgId = parseNumber(subElement.attributeValue("msgId")).intValue();
            condition.setSystemMsg(msgId);
            template.setCondition(condition);
          }
        }
        else if (subName.equalsIgnoreCase("attributes"))
        {
View Full Code Here

        current.setEnchantLevelCount(eLevels);
        for (n = first; n != null; n = n.getNextSibling())
        {
          if ("cond".equalsIgnoreCase(n.getNodeName()))
          {
            Condition condition = parseCondition(n.getFirstChild());
            if (condition != null)
            {
              Node msgAttribute = n.getAttributes().getNamedItem("msgId");
              if (msgAttribute != null)
              {
                int msgId = parseNumber(msgAttribute.getNodeValue()).intValue();
                condition.setSystemMsg(msgId);
              }
              current.attach(condition);
            }
          }
          else if ("for".equalsIgnoreCase(n.getNodeName()))
View Full Code Here

        {
          parseBeanSet(n, ((EffectTemplate) template).getParam(), ((Skill) ((EffectTemplate) template).getParam().getObject("object")).getLevel());
        }
        else
        {
          Condition cond = parseCondition(n);
          if (cond != null)
          {
            ((EffectTemplate) template).attachCond(cond);
          }
        }
View Full Code Here

        double chance = parseNumber(map.getNamedItem("chance").getNodeValue()).doubleValue();
        TriggerInfo trigger = new TriggerInfo(id, level, t, chance);
        template.addTrigger(trigger);
        for (Node n2 = n.getFirstChild(); n2 != null; n2 = n2.getNextSibling())
        {
          Condition condition = parseCondition(n.getFirstChild());
          if (condition != null)
          {
            trigger.addCondition(condition);
          }
        }
View Full Code Here

  protected void attachFunc(Node n, StatTemplate template, String name)
  {
    Stats stat = Stats.valueOfXml(n.getAttributes().getNamedItem("stat").getNodeValue());
    String order = n.getAttributes().getNamedItem("order").getNodeValue();
    int ord = parseNumber(order).intValue();
    Condition applyCond = parseCondition(n.getFirstChild());
    double val = 0;
    if (n.getAttributes().getNamedItem("val") != null)
    {
      val = parseNumber(n.getAttributes().getNamedItem("val").getNodeValue()).doubleValue();
    }
View Full Code Here

   * @param n Node
   * @return Condition
   */
  protected Condition parsePlayerCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for (int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      String nodeName = a.getNodeName();
View Full Code Here

   * @param n Node
   * @return Condition
   */
  protected Condition parseTargetCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for (int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      String nodeName = a.getNodeName();
View Full Code Here

   * @param n Node
   * @return Condition
   */
  protected Condition parseUsingCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for (int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      String nodeName = a.getNodeName();
View Full Code Here

TOP

Related Classes of lineage2.gameserver.stats.conditions.Condition

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.