Examples of spawnMe()


Examples of lineage2.gameserver.model.instances.CloneInstance.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

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

    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

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

    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

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

        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

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

    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

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

        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
        if (template != null)
        {
          final NpcInstance a = template.getNewInstance();
          a.setCurrentHpMp(a.getMaxHp(), a.getMaxMp());
          a.spawnMe(actor.getLoc());
        }
      }
    }, 10000L);
  }
}
View Full Code Here

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

    }
    pet.getInventory().restore();
    activeChar.getSummonList().addSummon(pet);
    pet.setHeading(activeChar.getHeading());
    pet.setReflection(activeChar.getReflection());
    pet.spawnMe(Location.findAroundPosition(activeChar, 50, 70));
    pet.setRunning();
    pet.setFollowMode(true);
    if (activeChar.isInOlympiadMode())
    {
      pet.getEffectList().stopAllEffects();
View Full Code Here

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

   * @return StaticObjectInstance
   */
  public StaticObjectInstance newInstance()
  {
    StaticObjectInstance instance = new StaticObjectInstance(IdFactory.getInstance().getNextId(), this);
    instance.spawnMe(new Location(getX(), getY(), getZ()));
    return instance;
  }
}
View Full Code Here

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

        activeChar.getSummonList().addSummon(summon);
        summon.setExpPenalty(_expPenalty);
        summon.setExp(Experience.LEVEL[Math.min(summon.getLevel(), Experience.LEVEL.length - 1)]);
        summon.setHeading(activeChar.getHeading());
        summon.setReflection(activeChar.getReflection());
        summon.spawnMe(loc == null ? Location.findAroundPosition(activeChar, 50, 70) : loc);
        summon.setRunning();
        summon.setFollowMode(true);
        if (summon.getSkillLevel(4140) > 0)
        {
          summon.altUseSkill(SkillTable.getInstance().getInfo(4140, summon.getSkillLevel(4140)), activeChar);
View Full Code Here

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

        }
        Skill symbolSkill = getFirstAddedSkill();
        SymbolInstance symbol = new SymbolInstance(IdFactory.getInstance().getNextId(), symbolTemplate, activeChar, symbolSkill);
        symbol.setReflection(activeChar.getReflection());
        symbol.setShowName(false);
        symbol.spawnMe(symbolLoc);
        ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(symbol), _lifeTime);
        break;
      case CLONE:
        if (activeChar.isMounted())
        {
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.