Package lineage2.gameserver.model.instances

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


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


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

          continue;
        }
        p.setNameColor(Config.SERVICES_OFFLINE_TRADE_NAME_COLOR);
        p.setOfflineMode(true);
        p.setIsOnline(true);
        p.spawnMe();
        if ((p.getClan() != null) && (p.getClan().getAnyMember(p.getObjectId()) != null))
        {
          p.getClan().getAnyMember(p.getObjectId()).setPlayerInstance(p, false);
        }
        if (Config.SERVICES_OFFLINE_TRADE_SECONDS_TO_KICK > 0)
View Full Code Here

      if (activeChar.getPlayerAccess().GodMode && !Config.SHOW_GM_LOGIN)
      {
        activeChar.setInvisibleType(InvisibleType.NORMAL);
      }
      activeChar.setNonAggroTime(Long.MAX_VALUE);
      activeChar.spawnMe();
      if (activeChar.isInStoreMode())
      {
        if (!TradeHelper.checksIfCanOpenStore(activeChar, activeChar.getPrivateStoreType()))
        {
          activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
View Full Code Here

      player.setFlying(true);
      player.setLoc(player.getLoc().changeZ(300));
      player.setTransformation(id);
      if (isVisible)
      {
        player.spawnMe();
      }
    }
    else
    {
      player.setTransformation(id);
View Full Code Here

        player.setFlying(false);
        player.setLoc(player.getLoc().correctGeoZ());
        player.setTransformation(0);
        if (isVisible)
        {
          player.spawnMe();
        }
      }
      else
      {
        player.setTransformation(0);
View Full Code Here

      player.setClassId(vals[5], true, false);
    }
    editCharacter(activeChar);
    player.broadcastCharInfo();
    player.decayMe();
    player.spawnMe(activeChar.getLoc());
  }
 
  /**
   * Method editCharacter.
   * @param activeChar Player
View Full Code Here

      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

      }
      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

        {
          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.