L2JLisvus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

2 posters

    Could change the "weaponType" of shield

    yusuketh
    yusuketh


    Posts : 58
    Join date : 2013-07-12

    Could change the "weaponType" of shield Empty Could change the "weaponType" of shield

    Post  yusuketh 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.
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Could change the "weaponType" of shield Empty Re: Could change the "weaponType" of shield

    Post  DnR 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>
    yusuketh
    yusuketh


    Posts : 58
    Join date : 2013-07-12

    Could change the "weaponType" of shield Empty Re: Could change the "weaponType" of shield

    Post  yusuketh 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.
    DnR
    DnR
    Admin
    Admin


    Posts : 1475
    Join date : 2012-12-03
    Age : 34

    Could change the "weaponType" of shield Empty Re: Could change the "weaponType" of shield

    Post  DnR 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


    Could change the "weaponType" of shield Empty Re: Could change the "weaponType" of shield

    Post  Sponsored content


      Current date/time is 19th May 2024, 13:41