L2JMobius

Fafurion Help for passive skill effects

musicgyz · 8 · 3501

Offline musicgyz

  • Elder
  • ****
    • Posts: 197
Can passive skills add effects hero light effects?


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16135
Yes, if you make a custom effect for it.
Otherwise, no, it cannot.


Offline musicgyz

  • Elder
  • ****
    • Posts: 197
Code: [Select]
<skill id="46717" toLevel="1" name="Equip Gran Kain's Necklace - Necklace Stage 1">
<!-- A necklace that contains the soul of a god is glowing. -->
<icon>BranchIcon.Icon.necklace_of_grankein_i00</icon>
<abnormalLvl>1</abnormalLvl>
<abnormalTime>-1</abnormalTime>
<abnormalType>GRAN_KAINS_NECKLACE</abnormalType>
<abnormalVisualEffect>BR_Y_2_ACCESSORY_NECKRACE</abnormalVisualEffect>
<operateType>A2</operateType>
<targetType>SELF</targetType>
<affectScope>SINGLE</affectScope>
<isMagic>3</isMagic>
<irreplacableBuff>true</irreplacableBuff>
<blockActionUseSkill>true</blockActionUseSkill>
<hitCancelTime>0</hitCancelTime>
<magicCriticalRate>5</magicCriticalRate>
</skill>

How to customize it? For example like this?


Online Liamxroy

  • Grand Duke
  • *****
    • Posts: 761
    • Adenaplease!
Code: [Select]
<skill id="46717" toLevel="1" name="Equip Gran Kain's Necklace - Necklace Stage 1">
<!-- A necklace that contains the soul of a god is glowing. -->
<icon>BranchIcon.Icon.necklace_of_grankein_i00</icon>
<abnormalLvl>1</abnormalLvl>
<abnormalTime>-1</abnormalTime>
<abnormalType>GRAN_KAINS_NECKLACE</abnormalType>
<abnormalVisualEffect>BR_Y_2_ACCESSORY_NECKRACE</abnormalVisualEffect>
<operateType>A2</operateType>
<targetType>SELF</targetType>
<affectScope>SINGLE</affectScope>
<isMagic>3</isMagic>
<irreplacableBuff>true</irreplacableBuff>
<blockActionUseSkill>true</blockActionUseSkill>
<hitCancelTime>0</hitCancelTime>
<magicCriticalRate>5</magicCriticalRate>
</skill>

How to customize it? For example like this?

<abnormalVisualEffect>BR_Y_2_ACCESSORY_NECKRACE</abnormalVisualEffect>
is all you need.


Offline musicgyz

  • Elder
  • ****
    • Posts: 197
I want to customize the passive ability and try to modify it for other effects, but it doesn't work.

Also, I want to modify it to learn passive skills instead of item skills.

I opened:\org\l2jmobius\gameserver\model\skills\AbnormalVisualEffect.java
Find the effect from here.Very depressed, just can't be achieved.


Offline Iris

  • Distinguished King
  • *****
    • Posts: 1239
Copy how Talisman of Baium works.

You need an active effect attached to the passive skill.


Offline musicgyz

  • Elder
  • ****
    • Posts: 197
No Talisman of Baium you found.

Can you write it for me? It is better to have a complete code, thanks!


Offline Iris

  • Distinguished King
  • *****
    • Posts: 1239