Package l2p.gameserver.model

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


      player.getInventory().unEquipItemInSlot(armorType);
      itemInstance.setEnchantLevel(ench);
      player.getInventory().equipItem(itemInstance, true);
      // send packets
      player.sendPacket(new InventoryUpdate().addModifiedItem(itemInstance));
      player.broadcastUserInfo(true);
      // informations
      activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      if(activeChar != player && ench >= (itemInstance.getItem().getType2() == L2Item.TYPE2_WEAPON ? 6 : 5))
      {
View Full Code Here


        {
          return false;
        }
        player.setRecomHave(player.getRecomHave() + recVal);
        player.sendMessage("You have been recommended by a GM");
        player.broadcastUserInfo(true);
      }
      catch(NumberFormatException e)
      {
        activeChar.sendMessage("Command format is //rec <number>");
      }
View Full Code Here

      {
        player.broadcastPacket(new SocialAction(player.getObjectId(), 16));
        Announcements.getInstance().announceToAll(player.getName() + " has become a hero.");
      }
      player.sendMessage("Admin changed your hero status.");
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_setnoble"))
    {
      // Статус сохраняется в базе
      L2Object target = activeChar.getTarget();
View Full Code Here

        player.sendMessage("Admin changed your noble status, now you nobless.");
      }
      player.updatePledgeClass();
      player.updateNobleSkills();
      player.sendPacket(new SkillList(player));
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_setsex"))
    {
      L2Object target = activeChar.getTarget();
      L2Player player;
View Full Code Here

      {
        return false;
      }
      player.changeSex();
      player.sendMessage("Your gender has been changed by a GM");
      player.broadcastUserInfo(true);
    }
    else if(fullString.startsWith("admin_setcolor"))
    {
      try
      {
View Full Code Here

        {
          return false;
        }
        player.setNameColor(Integer.decode("0x" + val));
        player.sendMessage("Your name color has been changed by a GM");
        player.broadcastUserInfo(true);
      }
      catch(StringIndexOutOfBoundsException e)
      { // Case of empty color
        activeChar.sendMessage("You need to specify the new color.");
      }
View Full Code Here

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

    {
      player.setClassId(vals[5], true);
    }
    player.sendChanges();
    editCharacter(activeChar); // Back to start
    player.broadcastUserInfo(true);
    player.decayMe();
    player.spawnMe(activeChar.getLoc());
  }

  private void editCharacter(L2Player activeChar)
View Full Code Here

      {
        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

    }
    L2Player owner = L2ObjectsStorage.getAsPlayer(ownerStoreId);
    if(owner != null)
    {
      owner.delCubic(this);
      owner.broadcastUserInfo(true);
    }
    ownerStoreId = 0;
    _offensiveSkills = null;
    _healSkills = 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.