L2JMobius

Master Class KnockBack

gigilo1968 · 1 · 3920

Offline gigilo1968

  • Black Sheep
  • Elder
  • ****
    • Posts: 187
    • Hi5
Not updates Abnormal Visual Effect on all knockBack type skill.

Code fragment, on exit method in effect handler knockBack

Code: [Select]
        @Override
public void onExit(Creature effector, Creature effected, Skill skill)
{
ACTIVE_KNOCKBACKS.remove(effected);
effected.updateAbnormalVisualEffects();  <------------- not work

if (!effected.isPlayer())
{
effected.getAI().notifyEvent(CtrlEvent.EVT_THINK);
}
}

Example:



Java XML
-----------------------

<skill id="16611" toLevel="1" name="Helios' Throne of Agony">
<!-- Shoots Arrows of Light at nearby enemies, dealing magic damage and knocking them down. Inflicted status: Confusion (Fear, Aerial Yoke, Faint, Charm, Stun, Paralysis, Knockback, Knockdown). -->
      <icon>icon.skill1275</icon>
      <abnormalLevel>2</abnormalLevel>
      <abnormalTime>2</abnormalTime>
      <abnormalType>KNOCKDOWN</abnormalType>
      <abnormalVisualEffect>KNOCKDOWN</abnormalVisualEffect>
      <magicLevel>105</magicLevel>
      <magicCriticalRate>5</magicCriticalRate>
      <operateType>A2</operateType>
      <isMagic>1</isMagic> <!-- Magic Skill -->
      <reuseDelay>20000</reuseDelay>
      <mpConsume>10</mpConsume>   
      <activateRate>-1</activateRate>
      <affectRange>800</affectRange>      
      <hitTime>3000</hitTime>
      <effectPoint>-52</effectPoint>
      <trait>SHOCK</trait>
      <targetType>SELF</targetType>
      <affectScope>POINT_BLANK</affectScope>
      <affectObject>NOT_FRIEND</affectObject>
      <isDebuff>true</isDebuff>
      <effects>
         <effect name="MagicalAttack">
            <power>660</power>
         </effect>
         <effect name="KnockBack">
            <speed>400</speed>
            <distance>200</distance>
            <knockDown>true</knockDown>
         </effect>
      </effects>
   </skill>



PTS
-----------------------
skill_begin   skill_name=[s_boss_helios_thorne_of_pain]   /* [헬리오스 고통의 왕좌] */   skill_id=16611   level=1   sub_level=0   operate_type=A2   magic_level=105   special_level=0   automatic_use=0   magic_critical_rate=5   change_skill_id=0   self_effect={}   effect={{i_knockback;200;400;0;1};{i_m_attack;660}}   end_effect={}   is_magic=1   is_double=0   mp_consume2=10   cast_range=-1   effective_range=-1   skill_hit_time=3   skill_cool_time=0   skill_hit_cancel_time=0   reuse_delay=20   activate_rate=-1   lv_bonus_rate=0   basic_property=none   abnormal_time=2   abnormal_lv=2   abnormal_type=knockdown   abnormal_instant=0   irreplaceable_buff=0   buff_protect_level=0   attribute={attr_none;0}   trait={trait_shock}   effect_point=-52   target_type=self   affect_scope=point_blank   affect_range=800   affect_object=not_friend   affect_limit={0;0}   next_action=none   abnormal_visual_effect={ave_knockdown}   debuff=2   except_restore=0   except_block=0   ride_state={@ride_none}   multi_class=0   olympiad_use=1   npc_notice=0   skill_end