Package l2p.gameserver.skills.conditions

Examples of l2p.gameserver.skills.conditions.Condition


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


  protected void attachFunc(Node n, Object 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

    return null;
  }

  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

    return cond;
  }

  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

    return cond;
  }

  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

    return cond;
  }

  protected Condition parseHasCondition(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

    return cond;
  }

  protected Condition parseGameCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for(int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      if("night".equalsIgnoreCase(a.getNodeName()))
View Full Code Here

    return cond;
  }

  protected Condition parseZoneCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for(int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      if("type".equalsIgnoreCase(a.getNodeName()))
View Full Code Here

    return cond;
  }

  protected Condition parseInstancedZoneCondition(Node n)
  {
    Condition cond = null;
    NamedNodeMap attrs = n.getAttributes();
    for(int i = 0; i < attrs.getLength(); i++)
    {
      Node a = attrs.item(i);
      if("name".equalsIgnoreCase(a.getNodeName()))
View Full Code Here

        //System.out.println(current.getLevel() + ":" + displayLevels.get(current.getLevel()));
        for(n = first; n != null; n = n.getNextSibling())
        {
          if("cond".equalsIgnoreCase(n.getNodeName()))
          {
            Condition condition = parseCondition(n.getFirstChild());
            if(condition != null)
            {
              Node msg = n.getAttributes().getNamedItem("msg");
              if(msg != null)
              {
                condition.setMessage(msg.getNodeValue());
              }
              current.attach(condition);
            }
          }
          if("for".equalsIgnoreCase(n.getNodeName()))
View Full Code Here

TOP

Related Classes of l2p.gameserver.skills.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.