Examples of dropItem()


Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          actor.dropItem(killer.getPlayer(), ItemName_A, i0 + Rnd.get(i1 - i0));
          break;
        case 3:
          i0 = 7;
          i1 = 17;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
          i0 = 1;
          i1 = 1;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0);
          i0 = 7;
          i1 = 17;
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          i0 = 7;
          i1 = 17;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
          i0 = 1;
          i1 = 1;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0);
          i0 = 7;
          i1 = 17;
          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          break;
        case 4:
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          i0 = 1;
          i1 = 1;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0);
          i0 = 7;
          i1 = 17;
          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          break;
        case 4:
          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          break;
        case 4:
          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
          i0 = 10;
          i1 = 20;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0 + Rnd.get(i1 - i0));
          i0 = 15;
          i1 = 45;
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_1, i0 + Rnd.get(i1 - i0));
          i0 = 10;
          i1 = 20;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0 + Rnd.get(i1 - i0));
          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          if (Rnd.get(100) < 10)
          {
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          i0 = 10;
          i1 = 20;
          actor.dropItem(killer.getPlayer(), ItemName_B_2, i0 + Rnd.get(i1 - i0));
          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          if (Rnd.get(100) < 10)
          {
            actor.dropItem(killer.getPlayer(), ItemName_B_4, 1);
          }
          break;
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

          i0 = 15;
          i1 = 45;
          actor.dropItem(killer.getPlayer(), ItemName_B_3, i0 + Rnd.get(i1 - i0));
          if (Rnd.get(100) < 10)
          {
            actor.dropItem(killer.getPlayer(), ItemName_B_4, 1);
          }
          break;
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

    if (actor.getNpcId() == 18820)
    {
      if (Rnd.chance(40))
      {
        actor.broadcastPacket(new MagicSkillUse(actor, actor, 2025, 1, 0, 10));
        actor.dropItem(attacker.getPlayer(), _firstLevelItems[Rnd.get(0, _firstLevelItems.length - 1)], Rnd.get(10, 20));
        actor.doDie(null);
      }
    }
    else if (actor.getNpcId() == 18823)
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

    else if (actor.getNpcId() == 18823)
    {
      if (Rnd.chance(40))
      {
        actor.broadcastPacket(new MagicSkillUse(actor, actor, 2025, 1, 0, 10));
        actor.dropItem(attacker.getPlayer(), _secondLevelItems[Rnd.get(0, _secondLevelItems.length - 1)], Rnd.get(10, 20));
        actor.doDie(null);
      }
    }
    for (NpcInstance npc : actor.getReflection().getNpcs())
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.dropItem()

    if (killer != null)
    {
      final Player 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
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.