Examples of doDie()

  • l2p.gameserver.model.entity.olympiad.OlympiadGame.doDie()
  • l2p.gameserver.model.instances.L2ChestInstance.doDie()
  • l2p.gameserver.model.instances.L2DoorInstance.doDie()
  • l2p.gameserver.model.instances.L2NpcInstance.doDie()
  • lineage2.gameserver.model.Creature.doDie()
    Method doDie. @param killer Creature
  • lineage2.gameserver.model.entity.olympiad.OlympiadGame.doDie()
    Method doDie. @param player Player @return boolean
  • lineage2.gameserver.model.instances.MonsterInstance.doDie()
    Method doDie. @param player Player @return boolean
  • lineage2.gameserver.model.instances.NpcInstance.doDie()
    Method doDie. @param player Player @return boolean
  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doDie()
    Kill the L2Character, Apply Death Penalty, Manage gain/loss Karma and Item Drop.
    Actions :
  • Reduce the Experience of the L2PcInstance in function of the calculated Death Penalty
  • If necessary, unsummon the Pet of the killed L2PcInstance
  • Manage Karma gain for attacker and Karam loss for the killed L2PcInstance
  • If the killed L2PcInstance has Karma, manage Drop Item
  • Kill the L2PcInstance

  • @param killer the killer @return true, if successful

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

          {
            for (int i = 0; i < Rnd.get(1, 4); i++)
            {
              actor.getReflection().addSpawnWithoutRespawn(mobs[Rnd.get(mobs.length)], actor.getLoc(), 100);
            }
            actor.doDie(null);
          }
        }
        return true;
      }
    }
    View Full Code Here

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

              case NPC_1:
                if ((action.value == SocialAction.APPLAUD) && (dist < 50) && !npc.isDead())
                {
                  player.sendPacket(new ExShowScreenMessage(NpcString.USE_THE_FIRECRACKER_OF_FEAR_ON_THE_BAT_COLONY, 4500, ScreenMessageAlign.TOP_CENTER));
                  ItemFunctions.addItem(player, FIRECRACKER, Rnd.get(1,3), true);
                  npc.doDie(player);
                }
                break;
              case NPC_2:
                if ((action.value == SocialAction.APPLAUD) && (dist < 50) && !npc.isDead())
                {
    View Full Code Here

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

              case NPC_2:
                if ((action.value == SocialAction.APPLAUD) && (dist < 50) && !npc.isDead())
                {
                  player.sendPacket(new ExShowScreenMessage(NpcString.USE_THE_FIRECRACKER_OF_FEAR_ON_THE_BAT_COLONY, 4500, ScreenMessageAlign.TOP_CENTER));
                  ItemFunctions.addItem(player, FIRECRACKER, Rnd.get(1,3), true);
                  npc.doDie(player);
                }
                break;
              case NPC_3:
                if ((action.value == SocialAction.APPLAUD) && (dist < 50) && !npc.isDead())
                {
    View Full Code Here

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

              case NPC_3:
                if ((action.value == SocialAction.APPLAUD) && (dist < 50) && !npc.isDead())
                {
                  player.sendPacket(new ExShowScreenMessage(NpcString.USE_THE_FIRECRACKER_OF_FEAR_ON_THE_BAT_COLONY, 4500, ScreenMessageAlign.TOP_CENTER));
                  ItemFunctions.addItem(player, FIRECRACKER, Rnd.get(1,3), true);
                  npc.doDie(player);
                }
                break;
            }
          }
        }
    View Full Code Here

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

            double dist = player.getDistance(npc);
            item = player.getInventory().getItemByItemId(FIRECRACKER);
            if ((item != null) && (dist < 70) && (npc.getNpcId() == BAT_COLONY) && !npc.isDead())
            {
              increaseTaskPoint(KILL_BAT_MOBS, player, 1);
              npc.doDie(player);
            }
          }
        }
      }
    }
    View Full Code Here

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

        {
          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)
        {
          if (Rnd.chance(40))
    View Full Code Here

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

        {
          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())
        {
          if (npc.getNpcId() == actor.getNpcId())
    View Full Code Here

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

            npc.setReflection(actor.getReflection());
            npc.setChampion(((MonsterInstance) actor).getChampion());
            npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp(), true);
            npc.spawnMe(npc.getSpawnedLoc());
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
            actor.doDie(actor);
            actor.decayMe();
            attacker.setTarget(npc);
            attacker.sendPacket(new StatusUpdate(npc).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP));
            return;
          }
    View Full Code Here

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

          doTask();
          return true;
        }
        if (current_point >= path.length)
        {
          actor.doDie(null);
          current_point = 0;
          return true;
        }
        actor.setRunning();
        addTaskMove(path[current_point], false);
    View Full Code Here

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

                actor.dropItem(caster.getPlayer(), 9680, 1);
              }
            }
            break;
        }
        actor.doDie(null);
        actor.endDecayTask();
      }
     
      /**
       * Method onEvtAttacked.
    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.