Jump to content
  • 0

Lethal resistance on mobs.


Question

3 answers to this question

Recommended Posts

  • 0
Posted

Use this..

add this in L2PcInstance, find this :

       if (target == null)

       {

           sendPacket(new SystemMessage(SystemMessageId.TARGET_CANT_FOUND));

           sendPacket(new ActionFailed());

           return;

       }

 

and paste this...

   if (skill.getId() == X && target instanceof L2MonsterInstance) return;

  • 0
Posted

handler\skillhandlers\Pdam.java

 

               // Success of lethal effect

               int chance = Rnd.get(100);

               if(!target.isRaid() && chance < skill.getLethalChance1() && !(target instanceof L2DoorInstance) && !(target instanceof L2NpcInstance && ((L2NpcInstance)target).getNpcId() == 35062))

 

You have example above how to do

 

 

   

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...