Jump to content
  • 0

Armor Part With Noblesse Passive


Question

1 answer to this question

Recommended Posts

  • 0
Posted

this is  my  acis  work check this link   

Index: java/net/sf/l2j/gameserver/model/actor/Playable.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/Playable.java    (revision 35)
+++ java/net/sf/l2j/gameserver/model/actor/Playable.java    (working copy)
@@ -12,6 +12,7 @@
 import net.sf.l2j.gameserver.model.actor.stat.PlayableStat;
 import net.sf.l2j.gameserver.model.actor.status.PlayableStatus;
 import net.sf.l2j.gameserver.model.actor.template.CreatureTemplate;
+import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
 import net.sf.l2j.gameserver.model.zone.ZoneId;
 import net.sf.l2j.gameserver.network.SystemMessageId;
 import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
@@ -87,6 +88,21 @@
    @Override
    public boolean doDie(Creature killer)
    {
+       boolean b = false;
+      
+       for (ItemInstance pItem : getInventory().getPaperdollItems())
+       {
+           int[] itemId = { your item id , your item id , your item id , 6381 };
+           for (int i : itemId)
+           {
+               if (pItem != null && pItem.getItemId() == i)
+               {
+                   b = true;
+                   break;
+               }
+           }
+       }
+      
        // killing is only possible one time
        synchronized (this)
        {
@@ -126,8 +142,12 @@
            if (getCharmOfLuck())
                stopCharmOfLuck(null);
        }
+       else if (b)
+       {
+
+       }
        else
            stopAllEffectsExceptThoseThatLastThroughDeath();
       
        // Send the Server->Client packet StatusUpdate with current HP and MP to all other Player to inform
        broadcastStatusUpdate();

 

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...