help for skill

Тема в разделе "Newbie questions / Вопросы новичков", создана пользователем Apollon, 6 окт 2018.

  1. Apollon

    Apollon Активный участник

    Регистрация:
    21 авг 2018
    Сообщения:
    42
    Симпатии:
    3
    Skype:
    moustakas13
    Hello all .
    If anyone knows . I have one buff i want this buff to make it to stuck on you , so if you die and you start again you will have this buff until time of the buff finish .(like nobles but nobles is for only one time if you are die) is that possiple ?

    This is the code :
    code for the skill :<skill id="1202" levels="1" name="Apollon">
    <table name="#Tab-mAtk">1.15</table>
    <table name="#Tab-rate">1.15</table>
    <table name="#runSpd">1.1</table>
    <table name="#effectPoint">331</table>
    <table name="#abnormal_lv">1</table>
    <table name="#abnormal_time">3600</table>
    <table name="#mpConsume1">6</table>
    <table name="#magicLevel">35</table>
    <set name="magicType" value="MAGIC" />
    <set name="icon" value="icon.skill0294" />
    <set name="reuseDelay" value="2000" />
    <set name="magicLevel" value="#magicLevel" />
    <set name="castRange" value="400" />
    <set name="hitTime" value="4000" />
    <set name="hitCancelTime" value="500" />
    <set name="cancelable" value="false" />
    <set name="mpConsume1" value="#mpConsume1" />
    <set name="effectPoint" value="#effectPoint" />
    <set name="target" value="TARGET_ONE" />
    <set name="skillType" value="BUFF" />
    <set name="operateType" value="OP_ACTIVE" />
    <for>
    <effect count="1" name="Buff" stackOrder="#abnormal_lv" time="#abnormal_time" value="0">

    <mul order="0x30" stat="mAtk" value="#Tab-mAtk" />
    <mul order="0x30" stat="pAtk" value="#Tab-rate" />
    <mul order="0x30" stat="mAtkSpd" value="#Tab-rate" />
    <mul order="0x30" stat="pAtkSpd" value="#Tab-rate" />
    <mul order="0x40" stat="runSpd" value="#runSpd" />
    </effect>
    </for>
     
  2. DeadPool

    DeadPool Пляшущий с бубном
    Постоялец

    Регистрация:
    10 ноя 2017
    Сообщения:
    144
    Симпатии:
    79
    Skype:
    poshlya4ok666
    Do you have the source code?
    You need to change the code in the kernel, Creature.java method on Death()
    or add this line in your skill <set name="isPreservedOnDeath" value="true" />
    Код:
    <skill id="1202" levels="1" name="Apollon">
    <table name="#Tab-mAtk">1.15</table>
    <table name="#Tab-rate">1.15</table> 
    <table name="#runSpd">1.1</table> 
    <table name="#effectPoint">331</table>
    <table name="#abnormal_lv">1</table>
    <table name="#abnormal_time">3600</table> 
    <table name="#mpConsume1">6</table>
    <table name="#magicLevel">35</table>
    <set name="magicType" value="MAGIC" />
    <set name="icon" value="icon.skill0294" />
    <set name="reuseDelay" value="2000" />
    <set name="magicLevel" value="#magicLevel" />
    <set name="castRange" value="400" />
    <set name="hitTime" value="4000" />
    <set name="hitCancelTime" value="500" />
    <set name="cancelable" value="false" />
    <set name="mpConsume1" value="#mpConsume1" /> 
    <set name="effectPoint" value="#effectPoint" />
    <set name="target" value="TARGET_ONE" />
    <set name="skillType" value="BUFF" />
    <set name="operateType" value="OP_ACTIVE" /> 
    <set name="isPreservedOnDeath" value="true" />
    <for>
    <effect count="1" name="Buff" stackOrder="#abnormal_lv" time="#abnormal_time" value="0">
    
    <mul order="0x30" stat="mAtk" value="#Tab-mAtk" />
    <mul order="0x30" stat="pAtk" value="#Tab-rate" /> 
    <mul order="0x30" stat="mAtkSpd" value="#Tab-rate" />
    <mul order="0x30" stat="pAtkSpd" value="#Tab-rate" />
    <mul order="0x40" stat="runSpd" value="#runSpd" /> 
    </effect>
    </for>
    
     
    #2 DeadPool, 6 окт 2018
    Последнее редактирование: 6 окт 2018
    Apollon нравится это.
  3. Apollon

    Apollon Активный участник

    Регистрация:
    21 авг 2018
    Сообщения:
    42
    Симпатии:
    3
    Skype:
    moustakas13
    Thank you very much ! I add the line in my skill is working perfect . thanks again ! :)
     
    Maiden7 и DeadPool нравится это.

Партнеры