A Project for Chronicle 4 based on L2JServer.


    Berserker Spirit

    Share
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Berserker Spirit

    Post  DanielaCZ on 5th November 2014, 00:31

    Berserker Spirit lvl 1 already overwritten Buffle lvl 2 its wrong because high buff must overwrite low buff

    fissban

    Posts : 81
    Join date : 2013-12-10

    Re: Berserker Spirit

    Post  fissban on 9th November 2014, 03:27

    fixed

    Code:
    <skill id="1062" levels="2" name="Berserker Spirit" enchantLevels1="30" enchantLevels2="30">
      <!-- Done by dc -->
      <table name="#ench2MpConsume"> 37 36 36 35 34 34 33 32 32 31
     31 30 29 29 28 27 27 26 25 25
     24 24 23 22 22 21 20 20 19 19
     </table>
      <table name="#ench2MpConsume_Init"> 9 9 9 9 9 9 8 8 8 8
     8 8 7 7 7 7 7 7 6 6
     6 6 6 6 5 5 5 5 5 5
     </table>
      <table name="#ench1time"> 1240 1280 1320 1360 1400 1440 1480 1520 1560 1600
     1640 1680 1720 1760 1800 1840 1880 1920 1960 2000
     2040 2080 2120 2160 2200 2240 2280 2320 2360 2400
     </table>
      <table name="#buffDuration"> 1240000 1280000 1320000 1360000 1400000 1440000 1480000 1520000 1560000 1600000 1640000 1680000 1720000 1760000 1800000 1840000 1880000 1920000 1960000 2000000 2040000 2080000 2120000 2160000 2200000 2240000 2280000 2320000 2360000 2400000 </table>
      <enchant1 name="buffDuration" val="#buffDuration"/>
      <table name="#Tab-mAtk"> 1.1 1.16 </table>
      <table name="#order"> 1 2 </table>
      <table name="#Tab-pAtk"> 1.05 1.08 </table>
      <table name="#Tab-mDef"> 0.90 0.84 </table>
      <table name="#Tab-pDef"> 0.95 0.92 </table>
      <table name="#Tab-mAtkSpd"> 1.05 1.08 </table>
      <table name="#Tab-pAtkSpd"> 1.05 1.08 </table>
      <table name="#Tab-runSpd"> 5 8 </table>
      <table name="#mpConsume_Init"> 6 10 </table>
      <table name="#mpConsume"> 24 38 </table>
      <set name="mpInitialConsume" val="#mpConsume_Init"/>
      <set name="mpConsume" val="#mpConsume"/>
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_ONE"/>
      <set name="hitTime" val="4000"/>
      <set name="reuseDelay" val="6000"/>
      <set name="skillType" val="BUFF"/>
      <set name="isMagic" val="true"/>
      <set name="operateType" val="OP_ACTIVE"/>
      <set name="buffDuration" val="1200000"/>
      <set name="castRange" val="400"/>
      <set name="effectRange" val="900"/>
      <enchant2 name="mpConsume" val="#ench2MpConsume"/>
      <enchant2 name="mpInitialConsume" val="#ench2MpConsume_Init"/>
      <for>
        <effect count="1" name="Buff" time="1200" val="0" stackOrder="#order" stackType="berserk">
          <mul order="0x30" stat="mAtk" val="#Tab-mAtk"/>
          <mul order="0x30" stat="pAtk" val="#Tab-pAtk"/>
          <mul order="0x30" stat="mDef" val="#Tab-mDef"/>
          <mul order="0x30" stat="pDef" val="#Tab-pDef"/>
          <mul order="0x30" stat="mAtkSpd" val="#Tab-mAtkSpd"/>
          <mul order="0x30" stat="pAtkSpd" val="#Tab-pAtkSpd"/>
          <add order="0x40" stat="runSpd" val="#Tab-runSpd"/>
        </effect>
      </for>
      <enchant1for>
        <effect count="1" name="Buff" time="#ench1time" val="0" stackOrder="#order" stackType="berserk">

          <mul order="0x30" stat="mAtk" val="1.16"/>
          <mul order="0x30" stat="pAtk" val="1.08"/>
          <mul order="0x30" stat="mDef" val="0.84"/>
          <mul order="0x30" stat="pDef" val="0.92"/>
          <mul order="0x30" stat="mAtkSpd" val="1.08"/>
          <mul order="0x30" stat="pAtkSpd" val="1.08"/>
          <add order="0x40" stat="runSpd" val="8"/>
        </effect>
      </enchant1for>
    </skill>
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: Berserker Spirit

    Post  DanielaCZ on 9th November 2014, 17:15

    Thank you
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: Berserker Spirit

    Post  DanielaCZ on 10th November 2014, 11:42

    i got error :-(
    error in table: #order of skill Id 1062
    java.lang.ArrayIndexOutOfBoundsException: 3
    at net.sf.l2j.gameserver.skills.DocumentSkill.getTableValue(DocumentSkill.java:84)
    at net.sf.l2j.gameserver.skills.DocumentBase.getNumber(DocumentBase.java:653)
    at net.sf.l2j.gameserver.skills.DocumentBase.attachEffect(DocumentBase.java:258)
    at net.sf.l2j.gameserver.skills.DocumentBase.parseTemplate(DocumentBase.java:170)
    at net.sf.l2j.gameserver.skills.DocumentSkill.parseSkill(DocumentSkill.java:281)
    at net.sf.l2j.gameserver.skills.DocumentSkill.parseDocument(DocumentSkill.java:118)
    at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:113)
    at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.java:98)
    at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.java:107)
    at net.sf.l2j.gameserver.datatables.SkillTable.reload(SkillTable.java:58)
    at net.sf.l2j.gameserver.handler.admincommandhandlers.AdminAdmin.useAdminCommand(AdminAdmin.java:237)
    at net.sf.l2j.gameserver.clientpackets.SendBypassBuildCmd.runImpl(SendBypassBuildCmd.java:71)
    at net.sf.l2j.gameserver.clientpackets.ClientBasePacket.run(ClientBasePacket.java:85)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    avatar
    Karakan

    Posts : 426
    Join date : 2013-10-04

    Re: Berserker Spirit

    Post  Karakan on 10th November 2014, 18:29

    Try this.


    Code:
    <skill id="1062" levels="2" name="Berserker Spirit" enchantLevels1="30" enchantLevels2="30">
      <!-- Done by dc -->
      <table name="#ench2MpConsume"> 37 36 36 35 34 34 33 32 32 31
     31 30 29 29 28 27 27 26 25 25
     24 24 23 22 22 21 20 20 19 19
     </table>
      <table name="#ench2MpConsume_Init"> 9 9 9 9 9 9 8 8 8 8
     8 8 7 7 7 7 7 7 6 6
     6 6 6 6 5 5 5 5 5 5
     </table>
      <table name="#ench1time"> 1240 1280 1320 1360 1400 1440 1480 1520 1560 1600
     1640 1680 1720 1760 1800 1840 1880 1920 1960 2000
     2040 2080 2120 2160 2200 2240 2280 2320 2360 2400
     </table>
      <table name="#buffDuration"> 1240000 1280000 1320000 1360000 1400000 1440000 1480000 1520000 1560000 1600000 1640000 1680000 1720000 1760000 1800000 1840000 1880000 1920000 1960000 2000000 2040000 2080000 2120000 2160000 2200000 2240000 2280000 2320000 2360000 2400000 </table>
      <enchant1 name="buffDuration" val="#buffDuration"/>
      <table name="#Tab-mAtk"> 1.1 1.16 </table>
      <table name="#stack"> 50 60 </table>
      <table name="#Tab-pAtk"> 1.05 1.08 </table>
      <table name="#Tab-mDef"> 0.90 0.84 </table>
      <table name="#Tab-pDef"> 0.95 0.92 </table>
      <table name="#Tab-mAtkSpd"> 1.05 1.08 </table>
      <table name="#Tab-pAtkSpd"> 1.05 1.08 </table>
      <table name="#Tab-runSpd"> 5 8 </table>
      <table name="#mpConsume_Init"> 6 10 </table>
      <table name="#mpConsume"> 24 38 </table>
      <set name="mpInitialConsume" val="#mpConsume_Init"/>
      <set name="mpConsume" val="#mpConsume"/>
      <set name="power" val="0.0"/>
      <set name="target" val="TARGET_ONE"/>
      <set name="hitTime" val="4000"/>
      <set name="reuseDelay" val="6000"/>
      <set name="skillType" val="BUFF"/>
      <set name="isMagic" val="true"/>
      <set name="operateType" val="OP_ACTIVE"/>
      <set name="buffDuration" val="1200000"/>
      <set name="castRange" val="400"/>
      <set name="effectRange" val="900"/>
      <enchant2 name="mpConsume" val="#ench2MpConsume"/>
      <enchant2 name="mpInitialConsume" val="#ench2MpConsume_Init"/>
      <for>
        <effect count="1" name="Buff" time="1200" val="0" stackOrder="#stack" stackType="berserk">
          <mul order="0x30" stat="mAtk" val="#Tab-mAtk"/>
          <mul order="0x30" stat="pAtk" val="#Tab-pAtk"/>
          <mul order="0x30" stat="mDef" val="#Tab-mDef"/>
          <mul order="0x30" stat="pDef" val="#Tab-pDef"/>
          <mul order="0x30" stat="mAtkSpd" val="#Tab-mAtkSpd"/>
          <mul order="0x30" stat="pAtkSpd" val="#Tab-pAtkSpd"/>
          <add order="0x40" stat="runSpd" val="#Tab-runSpd"/>
        </effect>
      </for>
      <enchant1for>
        <effect count="1" name="Buff" time="#ench1time" val="0" stackOrder="60" stackType="berserk">
          <mul order="0x30" stat="mAtk" val="1.16"/>
          <mul order="0x30" stat="pAtk" val="1.08"/>
          <mul order="0x30" stat="mDef" val="0.84"/>
          <mul order="0x30" stat="pDef" val="0.92"/>
          <mul order="0x30" stat="mAtkSpd" val="1.08"/>
          <mul order="0x30" stat="pAtkSpd" val="1.08"/>
          <add order="0x40" stat="runSpd" val="8"/>
        </effect>
      </enchant1for>
    </skill>

    nulled06

    Posts : 5
    Join date : 2014-11-09

    Re: Berserker Spirit

    Post  nulled06 on 12th November 2014, 11:36

    # If True, when effects of the same stack group are used, lesser
    # effects will be canceled if stronger effects are used. New effects
    # that are added will be canceled if they are of lesser priority to the old one.
    # If False, they will not be canceled, and it will switch to them after the
    # stronger one runs out, if the lesser one is still in effect.
    CancelLesserEffect = True


    other.properties

    is it ?
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: Berserker Spirit

    Post  DanielaCZ on 12th November 2014, 11:57

    yes is it

    nulled06

    Posts : 5
    Join date : 2014-11-09

    Re: Berserker Spirit

    Post  nulled06 on 12th November 2014, 12:02

    It fix you problem?

    Sponsored content

    Re: Berserker Spirit

    Post  Sponsored content


      Current date/time is 23rd October 2017, 05:22