Package lineage2.gameserver.model.instances

Examples of lineage2.gameserver.model.instances.StaticObjectInstance.spawnMe()


        CloneInstance clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);

        cloneLoc = Location.findAroundPosition(activeChar, 50, 70);
        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
View Full Code Here


        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);

        cloneLoc = Location.findAroundPosition(activeChar, 50, 70);
        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
View Full Code Here

        clone = new CloneInstance(IdFactory.getInstance().getNextId(), activeChar.getTemplate(), activeChar, _lifeTime, cloneLoc);
        clone.setHeading(activeChar.getHeading());
        clone.setReflection(activeChar.getReflection());
        clone.setCurrentCp(activeChar.getCurrentCp());
        clone.setCurrentHpMp(activeChar.getCurrentHp(), activeChar.getCurrentMp());
        clone.spawnMe(cloneLoc);
        clone.setRunning();
        clone.setFollowMode(true);
        ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(clone), _lifeTime);
        break;
      case NPC:
View Full Code Here

    decoy.setCurrentHp(decoy.getMaxHp(), false);
    decoy.setCurrentMp(decoy.getMaxMp());
    decoy.setHeading(activeChar.getHeading());
    decoy.setReflection(activeChar.getReflection());
    activeChar.setDecoy(decoy);
    decoy.spawnMe(Location.findAroundPosition(activeChar, 50, 70));
  }
}
View Full Code Here

    for (DoorTemplate template : doors.values())
    {
      DoorInstance door = new DoorInstance(IdFactory.getInstance().getNextId(), template);
      door.setReflection(this);
      door.setIsInvul(true);
      door.spawnMe(template.getLoc());
      if (template.isOpened())
      {
        door.openMe();
      }
      _doors.put(template.getNpcId(), door);
View Full Code Here

    for (InstantZone.DoorInfo info : doors.values())
    {
      DoorInstance door = new DoorInstance(IdFactory.getInstance().getNextId(), info.getTemplate());
      door.setReflection(this);
      door.setIsInvul(info.isInvul());
      door.spawnMe(info.getTemplate().getLoc());
      if (info.isOpened())
      {
        door.openMe();
      }
      _doors.put(info.getTemplate().getNpcId(), door);
View Full Code Here

        MerchantInstance merchant = new MerchantInstance(IdFactory.getInstance().getNextId(), merchantTemplate);
        merchant.setCurrentHp(merchant.getMaxHp(), false);
        merchant.setCurrentMp(merchant.getMaxMp());
        merchant.setHeading(activeChar.getHeading());
        merchant.setReflection(activeChar.getReflection());
        merchant.spawnMe(activeChar.getLoc());
        ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(merchant), _lifeTime);
        break;
      case TREE:
        if (activeChar.isMounted() || !activeChar.getSummonList().canSummon(_summonType, _summonPoint))
        {
View Full Code Here

    int npcId = 18319 + Math.min(fisher.getLevel() / 11, 7);
    MonsterInstance npc = new MonsterInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(npcId));
    npc.setSpawnedLoc(Location.findPointToStay(fisher, 100, 120));
    npc.setReflection(fisher.getReflection());
    npc.setHeading(fisher.getHeading() - 32768);
    npc.spawnMe(npc.getSpawnedLoc());
    npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, fisher, Rnd.get(1, 100));
  }
 
  /**
   * Method getRandomFishType.
View Full Code Here

    {
      MonsterInstance mob = new MonsterInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(FOUNDRY_MYSTIC_ID));
      mob.setSpawnedLoc(loc);
      mob.setReflection(actor.getReflection());
      mob.setCurrentHpMp(mob.getMaxHp(), mob.getMaxMp(), true);
      mob.spawnMe(mob.getSpawnedLoc());
    }
    for (Location loc : _spiritGuardSpawnPoints)
    {
      MonsterInstance mob = new MonsterInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(FOUNDRY_SPIRIT_GUARD_ID));
      mob.setSpawnedLoc(loc);
View Full Code Here

    {
      MonsterInstance mob = new MonsterInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(FOUNDRY_SPIRIT_GUARD_ID));
      mob.setSpawnedLoc(loc);
      mob.setReflection(actor.getReflection());
      mob.setCurrentHpMp(mob.getMaxHp(), mob.getMaxMp(), true);
      mob.spawnMe(mob.getSpawnedLoc());
    }
    setZoneInactive();
    super.onEvtSpawn();
  }
 
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.