Examples of spawnMe()


Examples of l2p.gameserver.model.instances.L2MerchantInstance.spawnMe()

        L2MerchantInstance merchant = new L2MerchantInstance(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().scheduleAi(new DeleteMerchantTask(merchant), _lifeTime, true);
        break;
    }
    if(isSSPossible())
    {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MinionInstance.spawnMe()

      monster.setChampion(1);
    }
    monster.onSpawn();
    monster.setHeading(_master.getHeading());
    addSpawnedMinion(monster);
    monster.spawnMe(_master.getMinionPosition());
  }

  /**
   * Same as spawnSingleMinion, but synchronized.<BR><BR>
   *
 
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.spawnMe()

        {
          L2MonsterInstance npc = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(mobId));
          npc.setSpawnedLoc(Rnd.coordsRandomize(OBELISK_LOC.clone().setZ(-12224), 500, 900));
          npc.setReflection(actor.getReflection());
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
        }
      }
      // Таск открытия двери
      // Возможно на оффе дверь открывается по какому-то другому тригеру
      ThreadPoolManager.getInstance().scheduleGeneral(new OpenDoorTask(DOOR, refId), OPEN_DOOR_DELAY);
View Full Code Here

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

    L2NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.onSpawn();
    npc.setHeading(loc.h);
    npc.setXYZInvisible(loc);
    npc.spawnMe();
    return npc;
  }

  public static void setScarletSpawnTask(boolean forced)
  {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2PathfinderInstance.spawnMe()

            p.getPlayer().sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber((COLLAPSE_TIME - TIME_LIMIT) / 60000));
            L2PathfinderInstance npc = new L2PathfinderInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(32485));
            npc.setSpawnedLoc(KamalokaNightmare.this.getTeleportLoc());
            npc.setReflection(KamalokaNightmare.this.getId());
            npc.onSpawn();
            npc.spawnMe(npc.getSpawnedLoc());
          }
          else
          {
            collapse();
          }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2PenaltyMonsterInstance.spawnMe()

        L2PenaltyMonsterInstance npc = new L2PenaltyMonsterInstance(IdFactory.getInstance().getNextId(), temp);
        npc.setSpawnedLoc(def);
        npc.setReflection(fisher.getReflection());
        npc.setHeading(fisher.getHeading() - 32768);
        npc.onSpawn();
        npc.spawnMe(npc.getSpawnedLoc());
        npc.SetPlayerToKill(fisher);
      }
      catch(Exception e)
      {
        _log.warning("Could not spawn Penalty Monster " + npcid + ", exception: " + e);
View Full Code Here

Examples of l2p.gameserver.model.instances.L2PetInstance.spawnMe()

            _log.warning("PetSummon: failed set stats for summon " + npcId + ".");
            return;
          }
        }
        _player.sendPacket(new MagicSkillLaunched(_player.getObjectId(), 2046, 1, pet, true));
        pet.spawnMe(GeoEngine.findPointToStay(_player.getX(), _player.getY(), _player.getZ(), MIN_RADIUS, MAX_RADIUS, _player.getReflection().getGeoIndex()));
        pet.setRunning();
        pet.setFollowStatus(true, true);
        if (pet instanceof L2PetBabyInstance)
        {
          ((L2PetBabyInstance) pet).startBuffTask();
View Full Code Here

Examples of l2p.gameserver.model.instances.L2ReflectionBossInstance.spawnMe()

    }
    L2ReflectionBossInstance tiat = new L2ReflectionBossInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(TIAT_NPC_ID));
    tiat.setSpawnedLoc(TIAT_LOC);
    tiat.setReflection(actor.getReflection());
    tiat.onSpawn();
    tiat.spawnMe(tiat.getSpawnedLoc());
    actor.getReflection().addSpawn(tiat.getSpawn());
  }

  @Override
  protected boolean randomWalk()
View Full Code Here

Examples of l2p.gameserver.model.instances.L2SiegeBossInstance.spawnMe()

      L2SiegeBossInstance siegeBoss = new L2SiegeBossInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(sp.getNpcId()));
      siegeBoss.setCurrentHpMp(siegeBoss.getMaxHp(), siegeBoss.getMaxMp(), true);
      siegeBoss.setXYZInvisible(sp.getLoc().correctGeoZ());
      siegeBoss.setSpawnedLoc(siegeBoss.getLoc());
      siegeBoss.setHeading(sp.getLoc().h);
      siegeBoss.spawnMe();
      _siegeBosses.add(siegeBoss);
      if(sp.getNpcId() == 35408)
      {
        Functions.npcSay(siegeBoss, "Gustave's soldiers, fight! Delivers the invader to die!");
      }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2SiegeHeadquarterInstance.spawnMe()

      outpost.setHeading(player.getHeading());
      outpost.setInvul(true);
      // Ставим аутпост перед чаром
      int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
      int y = (int) (player.getY() + 100 * Math.sin(player.headingToRadians(player.getHeading() - 32768)));
      outpost.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getReflection().getGeoIndex()));
      siegeClan.setHeadquarter(outpost);
    }
    else
    {
      L2SiegeHeadquarterInstance outpost = siegeClan.getHeadquarter();
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.