Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2NpcInstance.dropItem()


    if(actor != null && killer != null)
    {
      L2Player player = killer.getPlayer();
      if(player != null && player.getEffectList().containEffectFromSkills(KISS_OF_EVA))
      {
        actor.dropItem(player, Rnd.chance(50) ? Red_Coral : Crystal_Fragment, 1);
      }
    }
    super.onEvtDead(killer);
  }
View Full Code Here


    L2Character mostHated = actor.getMostHated();
    if(mostHated != null && mostHated.isPlayable())
    {
      killer = mostHated.getPlayer();
    }
    actor.dropItem(killer, actor.getNpcId() == 22353 ? 9682 : Rnd.chance(10) ? 9681 : 9680, 1);
    actor.decayMe();
    actor.doDie(actor);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.