Package l2p.gameserver.skills.funcs

Examples of l2p.gameserver.skills.funcs.FuncTemplate


      }
      return;
    }
    if(_enchantAttributeFuncTemplate == null)
    {
      _enchantAttributeFuncTemplate = new FuncTemplate(null, _itemTemplate instanceof L2Weapon ? "Add" : "Sub", stat, 0x40, value);
      attachFunction(_enchantAttributeFuncTemplate);
    }
    else
    {
      _enchantAttributeFuncTemplate._stat = stat;
View Full Code Here


    double val = 0;
    if(n.getAttributes().getNamedItem("val") != null)
    {
      val = parseNumber(n.getAttributes().getNamedItem("val").getNodeValue()).doubleValue();
    }
    FuncTemplate ft = new FuncTemplate(applyCond, name, stat, ord, val);
    if(template instanceof L2Item)
    {
      ((L2Item) template).attachFunction(ft);
    }
    else if(template instanceof L2Skill)
View Full Code Here

    {
      _enchant4Skill = SkillTable.getInstance().getInfo(sId, sLv);
    }
    if(_pDef > 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.POWER_DEFENCE, 0x10, _pDef));
    }
    if(_mDef > 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.MAGIC_DEFENCE, 0x10, _mDef));
    }
    if(_mpBonus > 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.MAX_MP, 0x10, _mpBonus));
    }
    if(_evsmod != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.EVASION_RATE, 0x10, _evsmod));
    }
    if(_crystalType != Grade.NONE)
    {
      if(_pDef > 0)
      {
        attachFunction(new FuncTemplate(null, "Enchant", Stats.POWER_DEFENCE, 0x0C, 0));
        if(set.getInteger("type2") == L2Item.TYPE2_SHIELD_ARMOR)
        {
          attachFunction(new FuncTemplate(null, "Enchant", Stats.MAX_HP, 0x80, 0));
        }
      }
      if(_mDef > 0)
      {
        attachFunction(new FuncTemplate(null, "Enchant", Stats.MAGIC_DEFENCE, 0x0C, 0));
      }
    }
  }
View Full Code Here

    {
      _enchant4Skill = SkillTable.getInstance().getInfo(3426, 1);
    } // Maximum Ability
    if(_pDam != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.POWER_ATTACK, 0x10, _pDam));
    }
    if(_mDam != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.MAGIC_ATTACK, 0x10, _mDam));
    }
    if(_critical != 0)
    {
      attachFunction(new FuncTemplate(null, "Set", Stats.CRITICAL_BASE, 0x08, _critical * 10));
    }
    if(_aSpd != 0)
    {
      attachFunction(new FuncTemplate(null, "Set", Stats.ATK_BASE, 0x08, _aSpd));
    }
    if(_sDef != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.SHIELD_DEFENCE, 0x10, _sDef));
    }
    if(_accmod != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.ACCURACY_COMBAT, 0x10, _accmod));
    }
    if(_evsmod != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.EVASION_RATE, 0x10, _evsmod));
    }
    if(_rShld != 0)
    {
      attachFunction(new FuncTemplate(null, "Add", Stats.SHIELD_RATE, 0x10, _rShld));
    }
    if(_crystalType != Grade.NONE)
    {
      if(_sDef > 0)
      {
        attachFunction(new FuncTemplate(null, "Enchant", Stats.SHIELD_DEFENCE, 0x0C, 0));
        if(set.getInteger("type2") == L2Item.TYPE2_SHIELD_ARMOR)
        {
          attachFunction(new FuncTemplate(null, "Enchant", Stats.MAX_HP, 0x80, 0));
        }
      }
      if(_pDam > 0)
      {
        attachFunction(new FuncTemplate(null, "Enchant", Stats.POWER_ATTACK, 0x0C, 0));
      }
      if(_mDam > 0)
      {
        attachFunction(new FuncTemplate(null, "Enchant", Stats.MAGIC_ATTACK, 0x0C, 0));
      }
    }
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.skills.funcs.FuncTemplate

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.