Package l2p.gameserver.model.instances

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


    Reflection r = actor.getReflection();
    for(L2Player pl : r.getPlayers())
    {
      if(pl != null && Functions.getItemCount(pl, 13846) >= 4)
      {
        actor.decayMe();
      }
    }
    super.thinkAttack();
  }
}
View Full Code Here


    Reflection r = actor.getReflection();
    for(L2Player pl : r.getPlayers())
    {
      if(pl != null && Functions.getItemCount(pl, 13846) >= 4)
      {
        actor.decayMe();
      }
    }
    super.thinkAttack();
  }
}
View Full Code Here

          activeChar.sendMessage("Target is incorrect!");
          return false;
        }
        npc = (L2NpcInstance) obj;
        npc.setHeading(activeChar.getHeading());
        npc.decayMe();
        npc.spawnMe();
        activeChar.sendMessage("New heading : " + activeChar.getHeading());
        spawn = npc.getSpawn();
        if(spawn == null)
        {
View Full Code Here

    }
    for(L2Player pl : r.getPlayers())
    {
      if(pl != null && Functions.getItemCount(pl, 13846) >= 4)
      {
        actor.decayMe();
      }
    }
    super.thinkAttack();
  }
}
View Full Code Here

            if(r.getId() > 0)
            {
              r.addSpawn(npc.getSpawn());
            }
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
            actor.decayMe();
            actor.doDie(actor);
            attacker.setTarget(npc);
            attacker.sendPacket(npc.makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP));
            return;
          }
View Full Code Here

  {
    L2NpcInstance target = L2ObjectsStorage.getByNpcId(Gilmore);
    if(target != null)
    {
      oldGilmore = target.getStoredId();
      target.decayMe();
      L2NpcTemplate template = NpcTable.getTemplate(Gilmore);
      L2MonsterInstance monster = new L2MonsterInstance(IdFactory.getInstance().getNextId(), template);
      monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
      monster.setXYZ(73329, 117705, -3741);
      GilmoreAI ai = new GilmoreAI(monster);
View Full Code Here

    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

    }
    for(L2Player pl : r.getPlayers())
    {
      if(pl != null && Functions.getItemCount(pl, 13846) >= 4)
      {
        actor.decayMe();
      }
    }
    super.thinkAttack();
  }
}
View Full Code Here

    for(long[] list : world.FifthRoom.npclist2)
    {
      L2NpcInstance npc = L2ObjectsStorage.getAsNpc(list[0]);
      if(npc != null)
      {
        npc.decayMe();
      }
    }
  }

  private void removeMonoliths(World world)
View Full Code Here

    for(long[] list : world.SecondRoom.monolith)
    {
      L2NpcInstance npc = L2ObjectsStorage.getAsNpc(list[0]);
      if(npc != null)
      {
        npc.decayMe();
      }
    }
  }

  private boolean allStonesDone(World world)
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.