A Project for Chronicle 4 based on L2JServer.


    Could change the "weaponType" of shield

    Share
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Could change the "weaponType" of shield

    Post  yusuketh on 26th July 2014, 12:43

    Could change the "weaponType" of shield for "shield" instead of "none".
    All other weapons have identification, except the Shield, I noticed when I add a skill to penalize daggers to use Shield

    Code:
    ('6370', 'Saint Spear', 'lrhand', 'true', '1800', '1', '1', 'adamantaite', 's', '281', '10', 'pole', '8', '-3.00000', '0', '0', '0', '325', '0', '132', '48800000', '2440', 'true', 'true', 'true', 'true', '0', '0', '0', '0', '0', '0', '0', '0'),
    ('6371', 'Demon Splinter', 'lrhand', 'true', '1350', '1', '1', 'adamantaite', 's', '342', '5', 'dualfist', '4', '4.00000', '0', '0', '0', '325', '0', '132', '48800000', '2440', 'true', 'true', 'true', 'true', '0', '0', '0', '0', '0', '0', '0', '0'),
    ('6372', 'Heaven\'s Divider', 'lrhand', 'true', '1380', '1', '1', 'adamantaite', 's', '342', '10', 'bigsword', '8', '0.00000', '0', '0', '0', '325', '0', '132', '48800000', '2440', 'true', 'true', 'true', 'true', '0', '0', '0', '0', '0', '0', '0', '0'),
    ('6377', 'Imperial Crusader Shield', 'lhand', 'true', '1170', '0', '0', 'bone', 's', '0', '0', 'Shield', '0', '0.00000', '-8', '290', '20', '0', '0', '0', '3760000', '188', 'true', 'true', 'true', 'true', '0', '0', '0', '0', '0', '0', '0', '0'),

    I already tested two methods and does not work.

    1:
    Code:
    <skill id="1605" levels="1" name="Shield Penalty">
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="BUFF"/>
      <set name="operateType" val="OP_PASSIVE"/>
      <set name="castRange" val="-1"/>
      <set name="effectRange" val="-1"/>
      <for>
          <sub order="0x40" stat="rEvas" val="60">
           <and>
             <using kind="none"/>
           </and>
          </sub>
      </for>
    </skill>
    2:
    Code:
    <skill id="1605" levels="1" name="Shield Penalty">
      <set name="weaponsAllowed" val="2"/>
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="BUFF"/>
      <set name="operateType" val="OP_PASSIVE"/>
      <set name="castRange" val="-1"/>
      <set name="effectRange" val="-1"/>
      <for>
          <sub order="0x40" stat="rEvas" val="60">
          </sub>
      </for>
    </skill>

    Is bad to have to add a mod only not to let dagger using shield, a simple passive skill can solve.
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: Could change the "weaponType" of shield

    Post  DnR on 26th July 2014, 13:37

    Try this.

    Code:

    <skill id="1605" levels="1" name="Shield Penalty">
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="BUFF"/>
      <set name="operateType" val="OP_PASSIVE"/>
      <set name="castRange" val="-1"/>
      <set name="effectRange" val="-1"/>
      <for>
          <sub order="0x40" stat="rEvas" val="60">
            <using kind="Shield"/>
          </sub>
      </for>
    </skill>
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Re: Could change the "weaponType" of shield

    Post  yusuketh on 26th July 2014, 14:21

    DnR wrote:Try this.

    Code:

    <skill id="1605" levels="1" name="Shield Penalty">
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_SELF"/>
      <set name="skillType" val="BUFF"/>
      <set name="operateType" val="OP_PASSIVE"/>
      <set name="castRange" val="-1"/>
      <set name="effectRange" val="-1"/>
      <for>
          <sub order="0x40" stat="rEvas" val="60">
            <using kind="Shield"/>
          </sub>
      </for>
    </skill>
    it worked, I did not know it would work without the "<and></and>", plus this good, I will remove them from the other penalties, thanks for help DNR, and sorry for making you waste your time with me.
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: Could change the "weaponType" of shield

    Post  DnR on 26th July 2014, 15:14

    I'm glad i helped. Let me tell you that shields are none type items in datapack, but type is changed to "Shield" inside core.
    Good luck. Smile

    Sponsored content

    Re: Could change the "weaponType" of shield

    Post  Sponsored content


      Current date/time is 23rd September 2017, 03:17