Double weapon SA effects

    Share

    Flopix

    Posts : 10
    Join date : 2014-02-28

    Double weapon SA effects

    Post  Flopix on 24th December 2015, 04:29

    Weapon configured in 2 places: table weapon and "data\stats\weapon\*.xml"

    SA effects written on both places.

    For example: id 4746 Yaksa Mace Rsk. Focus

    Code:

    <item id='4746' name="yaksa_mace_rsk._focus">
      <for>
        <set val='156' order='0x08' stat='pAtk'/>
        <set val='83' order='0x08' stat='mAtk'/>
        <set val='4' order='0x08' stat='rCrit'/>
        <add val='4' order='0x10' stat='accCombat'/>
        <set val='379' order='0x08' stat='pAtkSpd'/>
        <enchant val='0' order='0x0C' stat='pAtk'/>
        <enchant val='0' order='0x0C' stat='mAtk'/>
        [b]<!-- SA: Rsk. Focus -->
        <add order='0x40' stat='rCrit' val='115'>
          <and>
             <player hp='60'/>
          </and>
        </add>[/b]
      </for>
    </item>

    and in weapon table set SA skill 3027 lvl 4

    Code:

    <skill id="3027" levels="6" name="Special Ability: Rsk. Focus">
      <table name="#pvpBonus"> 1 1 1 1 1 1 </table>
      <table name="#magicLvl"> 46 49 52 55 58 61 </table>
      <table name="#rCrit"> 138.7 130.9 123.1 115.4 107.7 99.9 </table>
      <set name="target" val="TARGET_SELF" />
      <set name="skillType" val="ITEM_SA" />
      <set name="operateType" val="OP_PASSIVE" />
      <set name="magicLvl" val="#magicLvl" />
      <for>
        <add order="0x40" stat="rCrit" val="#rCrit">
          <player hp="60"/>
        </add>
        <mul order="0x30" stat="pvpPhysDmg" val="#pvpBonus" />
        <mul order="0x30" stat="pvpPhysSkillsDmg" val="#pvpBonus"/>
        <mul order="0x30" stat="pvpMagicalDmg" val="#pvpBonus" />
      </for>
    </skill>

    The result is SA effects doubles and where HP < 60% we get 115 + 115,4 crit rate.

    This applies to all weapons.

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: Double weapon SA effects

    Post  DnR on 25th December 2015, 22:00

    Hello,

    As i can see, this does not apply to all weapons. For some, SA is coded in weapons.xml, while for others it's coded in weapon.sql.
    I will do my best to take care of duplicate SAs.
    Thanks for reporting.

      Current date/time is 16th August 2017, 18:23