Examples of spawnMe()


Examples of net.sf.l2j.gameserver.model.actor.instance.L2MinionInstance.spawnMe()

        //randomize +/-
        randPlusMin = Rnd.nextInt(2);
        if (randPlusMin == 1) spawnConstant *= -1;
        int newY = master.getY() + Math.round(spawnConstant);

        monster.spawnMe(newX, newY, master.getZ());

        if (Config.DEBUG)
            _log.fine("Spawned minion template " + minionTemplate.npcId + " with objid: "
                + monster.getObjectId() + " to boss " + master.getObjectId() + " ,at: " + monster.getX()
                + " x, " + monster.getY() + " y, " + monster.getZ() + " z");
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.spawnMe()

                    if (creature == null) continue;

                    creature.getSpawn().startRespawn();
                    creature.setCurrentHp(creature.getMaxHp());
                    creature.setCurrentMp(creature.getMaxMp());
                    creature.spawnMe();
                }

                i++;
            }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance.spawnMe()

        mob.setHeading(Rnd.nextInt(61794));
      else
        mob.setHeading(getHeading());

      mob.setSpawn(this);
      mob.spawnMe(newlocx, newlocy, newlocz);
      mob.onSpawn();

      if (Config.DEBUG)
        _log.finest("spawned Mob ID: "+_template.npcId+" ,at: "
            +mob.getX()+" x, "+mob.getY()+" y, "+mob.getZ()+" z");
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.spawnMe()

       while(it.hasNext()){
          try{ L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());

           target.getPoly().setPolyInfo(null, "1");
        target.decayMe();
        target.spawnMe(target.getX(),target.getY(),target.getZ());
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.spawnMe()

      }
      player.getAppearance().setSex(player.getAppearance().getSex()? false : true);
      player.sendMessage("Your gender has been changed by a GM");
      player.broadcastUserInfo();
      player.decayMe();
      player.spawnMe(player.getX(),player.getY(),player.getZ());
    }
    else if (command.startsWith("admin_setcolor"))
    {
      try
      {
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.spawnMe()

    player.broadcastPacket(new CharInfo(player));
    player.sendPacket(new UserInfo(player));
    player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    player.decayMe();
    player.spawnMe(activeChar.getX(),activeChar.getY(),activeChar.getZ());
  }

  private void editCharacter(L2PcInstance activeChar)
  {
    L2Object target = activeChar.getTarget();
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.spawnMe()

        }

        if (Config.PLAYER_SPAWN_PROTECTION > 0)
            activeChar.setProtection(true);

    activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

    if (L2Event.active && L2Event.connectionLossData.containsKey(activeChar.getName()) && L2Event.isOnEvent(activeChar))
            L2Event.restoreChar(activeChar);
        else if (L2Event.connectionLossData.containsKey(activeChar.getName()))
            L2Event.restoreAndTeleChar(activeChar);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PetInstance.spawnMe()

            activeChar.setPet(petSummon);

        activeChar.sendPacket(new MagicSkillUser(activeChar, 2046, 1, 1000, 600000));
        activeChar.sendPacket(new SystemMessage(SystemMessageId.SUMMON_A_PET));
            L2World.getInstance().storeObject(petSummon);
        petSummon.spawnMe(activeChar.getX()+50, activeChar.getY()+100, activeChar.getZ());
            activeChar.sendPacket(new PetInfo(petSummon));
        petSummon.startFeed(false);
        item.setEnchantLevel(petSummon.getLevel());

        ThreadPoolManager.getInstance().scheduleGeneral(new PetSummonFinalizer(activeChar, petSummon), 900);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2SiegeFlagInstance.spawnMe()

            // Spawn a new flag
            L2SiegeFlagInstance flag = new L2SiegeFlagInstance(player, IdFactory.getInstance().getNextId(), NpcTable.getInstance().getTemplate(35062));
            flag.setTitle(player.getClan().getName());
            flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp());
            flag.setHeading(player.getHeading());
            flag.spawnMe(player.getX(), player.getY(), player.getZ() + 50);
            castle.getSiege().getFlag(player.getClan()).add(flag);
        }
        catch (Exception e)
        {
            player.sendMessage("Error placing flag:" + e);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2SiegeGuardInstance.spawnMe()

        if (template != null)
        {
            final L2SiegeGuardInstance npc = new L2SiegeGuardInstance(IdFactory.getInstance().getNextId(), template);
            npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp());
            npc.setDecayed(false);
            npc.spawnMe(x, y, (z+20));

            if (messages != null && messages.length >0 )
              AutoChatHandler.getInstance().registerChat(npc, messages, chatDelay);

            if (despawnDelay > 0)
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.