Package l2p.gameserver.model

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


    }
    if(newFame >= 0)
    {
      int oldFame = player.getFame();
      player.setFame(newFame, "Admin manual");
      player.sendMessage("Admin has changed your fame from " + oldFame + " to " + newFame + ".");
      activeChar.sendMessage("Successfully Changed fame for " + player.getName() + " from (" + oldFame + ") to (" + newFame + ").");
    }
    else
    {
      activeChar.sendMessage("You must enter a value for fame greater than or equal to 0.");
View Full Code Here


    {
      strvals[i] = strvals[i].trim();
      vals[i] = strvals[i].isEmpty() ? 0 : Long.parseLong(strvals[i]);
    }
    player.addExpAndSp(vals[0], vals[1], false, false);
    player.sendMessage("Admin is adding you " + vals[0] + " exp and " + vals[1] + " SP.");
    activeChar.sendMessage("Added " + vals[0] + " exp and " + vals[1] + " SP to " + player.getName() + ".");
  }

  private void setSubclass(final L2Player activeChar, final L2Player player)
  {
View Full Code Here

          }
          if(target.isPlayer())
          {
            player = (L2Player) target;
            player.setTitle(val);
            player.sendMessage("Your title has been changed by a GM");
            player.sendChanges();
          }
          else if(target.isNpc())
          {
            ((L2NpcInstance) target).setTitle(val);
View Full Code Here

            activeChar.sendMessage("Name already exist.");
            return false;
          }
          Log.add("Character " + player.getName() + " renamed to " + val + " by GM " + activeChar.getName(), "renames");
          player.reName(val);
          player.sendMessage("Your name has been changed by a GM");
          return true;
        }
        catch(StringIndexOutOfBoundsException e)
        { // Case of empty character name
          activeChar.sendMessage("You need to specify the new name.");
View Full Code Here

      else
      {
        return false;
      }
      player.setRecomHave(player.getRecomHave() + 1);
      player.sendMessage("You have been recommended by a GM");
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_rec"))
    {
      try
View Full Code Here

      updateData();
    }
    boolean needStatusUpdate = true;
    if(old_level < _level)
    {
      owner.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2PetInstance.PetLevelUp", owner).addNumber(_level));
      broadcastPacket(new SocialAction(getObjectId(), SocialAction.LEVEL_UP));
      setCurrentHpMp(getMaxHp(), getMaxMp());
      needStatusUpdate = false;
    }
    if(needStatusUpdate && (addToExp > 0 || addToSp > 0))
View Full Code Here

        {
        }
        if(getCurrentFed() <= 0.10 * getMaxFed())
        {
          // Если пища закончилась, отозвать пета
          owner.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2PetInstance.UnSummonHungryPet", owner));
          unSummon();
          return;
        }
        setCurrentFed(getCurrentFed() - 5);
        sendPetStatusUpdate();
View Full Code Here

      {
        for(L2ItemInstance drop : _inventory)
        {
          if(drop != null)
          {
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2MonsterInstance.ItemBelongedToOther", player).addString(drop.getName()));
            dropItem(player, drop);
          }
        }
        if(_inventory != null)
        {
View Full Code Here

    {
      for(L2ItemInstance drop : templateInv)
      {
        if(drop != null)
        {
          player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2MonsterInstance.ItemBelongedToOther", player).addString(drop.getName()));
          dropItem(player, drop);
        }
      }
      if(_inventory != null)
      {
View Full Code Here

        }
        player.addSkill(sk, true);
      }
      skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getClassId());
    }
    player.sendMessage("Admin gave you " + skillCounter + " skills.");
    player.sendPacket(new SkillList(player));
    activeChar.sendMessage("You gave " + skillCounter + " skills to " + player.getName());
  }

  public Enum[] getAdminCommandEnum()
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.