Examples of spawnMe()


Examples of com.l2jfrozen.gameserver.model.actor.instance.L2SummonInstance.spawnMe()

    if(getTargetType() == SkillTargetType.TARGET_CORPSE_MOB)
    {
      L2Character target = (L2Character) targets[0];
      if(target.isDead() && target instanceof L2NpcInstance)
      {
        summon.spawnMe(target.getX(), target.getY(), target.getZ() + 5);
        ((L2NpcInstance) target).endDecayTask();
      }
    }
    else
    {
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2SummonInstance.spawnMe()

        ((L2NpcInstance) target).endDecayTask();
      }
    }
    else
    {
      summon.spawnMe(activeChar.getX() + Rnd.get(40)-20, activeChar.getY() + Rnd.get(40)-20, activeChar.getZ());
    }

    summon.setFollowStatus(true);
    summon.setShowSummonAnimation(false); // addVisibleObject created the info packets with summon animation
    // if someone comes into range now, the animation shouldnt show any more
View Full Code Here

Examples of l2p.gameserver.model.L2Object.spawnMe()

          }
          else if(target.isNpc())
          {
            ((L2NpcInstance) target).setTitle(val);
            target.decayMe();
            target.spawnMe();
          }
          return true;
        }
        catch(StringIndexOutOfBoundsException e)
        { // Case of empty character title
View Full Code Here

Examples of l2p.gameserver.model.L2Player.spawnMe()

      player.sendMessage("Ваш класс был изменен Гейм Мастером");
      player.setClassId(classId, true);
      player.sendChanges();
      player.broadcastUserInfo(true);
      player.decayMe();
      player.spawnMe(player.getLoc());
    }
    return true;
  }

  public Enum[] getAdminCommandEnum()
View Full Code Here

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

    for(SiegeSpawn sp : _artefactSpawnList.get(castle.getId()))
    {
      L2ArtefactInstance art = new L2ArtefactInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(sp.getNpcId()));
      art.setCurrentHpMp(art.getMaxHp(), art.getMaxMp(), true);
      art.setHeading(sp.getLoc().h);
      art.spawnMe(sp.getLoc().changeZ(50));
      castle.getSiege().addArtifact(art);
    }
  }

  public static void spawnControlTowers(Castle castle)
View Full Code Here

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

            L2ClanHallMessengerInstance messenger = new L2ClanHallMessengerInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(npc_id));
            messenger.setCurrentHpMp(messenger.getMaxHp(), messenger.getMaxMp(), true);
            messenger.setXYZInvisible(loc.correctGeoZ());
            messenger.setSpawnedLoc(messenger.getLoc());
            messenger.setHeading(loc.h);
            messenger.spawnMe();
            _messengers.add(messenger);
          }
          catch(Exception e)
          {
            _log.warning("Error while loading Messenger(s) for " + clanhall.getName());
View Full Code Here

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

      L2CommanderInstance commander = new L2CommanderInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(sp.getNpcId()));
      commander.setCurrentHpMp(commander.getMaxHp(), commander.getMaxMp(), true);
      commander.setXYZInvisible(sp.getLoc().correctGeoZ());
      commander.setSpawnedLoc(commander.getLoc());
      commander.setHeading(sp.getLoc().h);
      commander.spawnMe();
      _commanders.add(commander);
    }
  }

  public void operateGuardDoors(boolean open, int commanders_count)
View Full Code Here

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

    for(SiegeSpawn sp : getControlTowerSpawnList(castle.getId()))
    {
      L2ControlTowerInstance tower = new L2ControlTowerInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(sp.getNpcId()), castle.getSiege(), sp.getValue());
      tower.setCurrentHpMp(tower.getMaxHp(), tower.getMaxMp(), true);
      tower.setHeading(sp.getLoc().h);
      tower.spawnMe(sp.getLoc());
      castle.getSiege().addControlTower(tower);
    }
  }

  public static int getControlTowerLosePenalty()
View Full Code Here

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

        decoy.setCurrentHp(decoy.getMaxHp(), false);
        decoy.setCurrentMp(decoy.getMaxMp());
        decoy.setHeading(activeChar.getHeading());
        decoy.setReflection(activeChar.getReflection());
        activeChar.setDecoy(decoy);
        decoy.spawnMe(activeChar.getLoc());
        break;
      case MERCHANT:
        if(activeChar.getPet() != null || activeChar.isMounted())
        {
          return;
View Full Code Here

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

    {
      L2DoorInstance door = getDoors().get(i);
      if(door.getCurrentHp() <= 0) // Сломанные восстанавливаем
      {
        door.decayMe(); // Kill current if not killed already
        door.spawnMe();
      }
      door.setCurrentHp(isDoorWeak ? door.getMaxHp() / 2 : door.getMaxHp(), true);
      door.closeMe();
    }
    loadDoorUpgrade(); // Check for any upgrade the doors may have
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.