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();

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..