Examples of spawnMe()


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

    obj.setType(type);
    obj.setStaticObjectId(id);
    obj.setFilePath(filePath);
    obj.setMapX(mapX);
    obj.setMapY(mapY);
    obj.spawnMe(new Location(x, y, z));
    return obj;
  }
}
View Full Code Here

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

        summon.setCurrentHp(summon.getMaxHp(), false);
        summon.setCurrentMp(summon.getMaxMp());
        summon.setHeading(activeChar.getHeading());
        summon.setRunning();
        activeChar.setPet(summon);
        summon.spawnMe(loc == null ? GeoEngine.findPointToStay(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 100, 150, activeChar.getReflection().getGeoIndex()) : loc);
        if(summon.getSkillLevel(4140) > 0)
        {
          summon.altUseSkill(SkillTable.getInstance().getInfo(4140, summon.getSkillLevel(4140)), activeChar);
        }
        if(summon.getName().equalsIgnoreCase("Shadow"))
View Full Code Here

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

            L2NpcInstance commanderNpc = new L2SupportUnitInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(npc1_id));
            commanderNpc.setCurrentHpMp(commanderNpc.getMaxHp(), commanderNpc.getMaxMp(), true);
            commanderNpc.setXYZInvisible(loc.correctGeoZ());
            commanderNpc.setSpawnedLoc(commanderNpc.getLoc());
            commanderNpc.setHeading(loc.h);
            commanderNpc.spawnMe();
            _commanderNpcs.add(commanderNpc);
            _commanderSpawns.add(new SiegeSpawn(fortress.getId(), loc, npc2_id));
          }
          catch(Exception e)
          {
View Full Code Here

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

          flag.setSpawnedLoc(flag.getLoc());
          flag.setHeading(loc.h);
          flag.setItemId(info.getValue());
          flag.setBaseTerritoryId(flagCastleId);
          flag.setCurrentTerritoryId(castle.getId());
          flag.spawnMe();
          _flags.add(flag);
          setWardLoc(flagCastleId, flag.getLoc());
        }
        i++;
      }
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.spawnMe()

    for(SiegeSpawn sp : FortressSiegeManager.getFlagsList(getSiegeUnit().getId()))
    {
      L2ItemInstance flag = ItemTable.getInstance().createItem(sp.getNpcId());
      flag.setCustomFlags(L2ItemInstance.FLAG_EQUIP_ON_PICKUP | L2ItemInstance.FLAG_NO_DESTROY | L2ItemInstance.FLAG_NO_TRADE | L2ItemInstance.FLAG_NO_UNEQUIP, false);
      flag.setXYZInvisible(sp.getLoc().correctGeoZ());
      flag.spawnMe();
      _flags.add(flag);
    }
  }

  private void unSpawnFlags()
View Full Code Here

Examples of lineage2.gameserver.model.GameObject.spawnMe()

          }
          else if (target.isNpc())
          {
            ((NpcInstance) target).setTitle(val);
            target.decayMe();
            target.spawnMe();
          }
          return true;
        }
        catch (StringIndexOutOfBoundsException e)
        {
View Full Code Here

Examples of lineage2.gameserver.model.Player.spawnMe()

      return;
    }
    activeChar.setIsInMovie(false);
    activeChar.setMovieId(0);
    activeChar.decayMe();
    activeChar.spawnMe();
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.WinnerStatueInstance.spawnMe()

      List<Location> locations = spawnLocations.get(template.getCategoryType());
      for (Location loc : locations)
      {
        WinnerStatueInstance statue = new WinnerStatueInstance(IdFactory.getInstance().getNextId(), template);
        statue.setLoc(loc);
        statue.spawnMe();
        spawnedStatues.add(statue);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip.spawnMe()

      }
      ClanAirShip dockedShip = new ClanAirShip(player.getClan());
      dockedShip.setDock(_dock);
      dockedShip.setPlatform(_platform);
      dockedShip.setHeading(0);
      dockedShip.spawnMe(_platform.getSpawnLoc());
      dockedShip.startDepartTask();
      Functions.npcSay(this, NpcString.AIRSHIP_IS_SUMMONED_IS_DEPART_IN_5_MINUTES, ChatType.SHOUT, 5000);
    }
    else if (command.equalsIgnoreCase("register"))
    {
View Full Code Here

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

        {
          Skill agatSkill = getFirstAddedSkill();
          NpcTemplate agatTemplate = NpcHolder.getInstance().getTemplate(getNpcId());
          AgathionInstance agat = new AgathionInstance(IdFactory.getInstance().getNextId(), agatTemplate, activeChar, _lifeTime, agatSkill, activeChar.getLoc());
          agat.setReflection(activeChar.getReflection());
          agat.spawnMe(activeChar.getLoc());
          agat.setFollowTarget(activeChar);
          agat.setIsInvul(true);
          agat.setRunning();
          ThreadPoolManager.getInstance().schedule(new GameObjectTasks.DeleteTask(agat), _lifeTime);
        }
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.