Package lineage2.gameserver.model

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


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


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

      boolean isVisible = player.isVisible();
      for (Summon summon : player.getSummonList())
      {
        summon.unSummon();
      }
      player.decayMe();
      player.setFlying(true);
      player.setLoc(player.getLoc().changeZ(300));
      player.setTransformation(id);
      if (isVisible)
      {
View Full Code Here

        player.setTransformationName(null);
      }
      if (isFlyingTransform)
      {
        boolean isVisible = player.isVisible();
        player.decayMe();
        player.setFlying(false);
        player.setLoc(player.getLoc().correctGeoZ());
        player.setTransformation(0);
        if (isVisible)
        {
View Full Code Here

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

  {
    NpcInstance target = GameObjectsStorage.getByNpcId(Gilmore);
    if (target != null)
    {
      _oldGilmoreRef = target.getRef();
      target.decayMe();
      NpcTemplate template = NpcHolder.getInstance().getTemplate(Gilmore);
      MonsterInstance monster = new MonsterInstance(IdFactory.getInstance().getNextId(), template);
      monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
      monster.setXYZ(73329, 117705, -3741);
      GilmoreAI ai = new GilmoreAI(monster);
View Full Code Here

        npc.setChampion(((MonsterInstance) actor).getChampion());
        npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp(), true);
        npc.spawnMe(npc.getSpawnedLoc());
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
        actor.doDie(actor);
        actor.decayMe();
        attacker.setTarget(npc);
        attacker.sendPacket(new StatusUpdate(npc).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP));
        return;
      }
    }
View Full Code Here

    for (long[] list : world.FifthRoom.npclist2)
    {
      NpcInstance npc = GameObjectsStorage.getAsNpc(list[0]);
      if (npc != null)
      {
        npc.decayMe();
      }
    }
  }
 
  private void removeMonoliths(World world)
View Full Code Here

    for (long[] list : world.SecondRoom.monolith)
    {
      NpcInstance npc = GameObjectsStorage.getAsNpc(list[0]);
      if (npc != null)
      {
        npc.decayMe();
      }
    }
  }
 
  private boolean allStonesDone(World world)
View Full Code Here

          activeChar.sendMessage("Target is incorrect!");
          return false;
        }
        npc = (NpcInstance) obj;
        npc.setHeading(activeChar.getHeading());
        npc.decayMe();
        npc.spawnMe();
        activeChar.sendMessage("New heading : " + activeChar.getHeading());
        spawn = npc.getSpawn();
        if (spawn == null)
        {
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.