Package l2p.gameserver.model

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


        player.addSkill(sk, true);
      }
      skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getClassId());
    }
    player.sendPacket(new SkillList(player));
    player.broadcastUserInfo(true);
  }
}
View Full Code Here


    player.setNoble(true);
    player.updatePledgeClass();
    player.updateNobleSkills();
    player.sendPacket(new SkillList(player));
    player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
    player.broadcastUserInfo(true);
    player.sendMessage("Поздравляем, вы стали дворянином");
  }

  public void dialogTW()
  {
View Full Code Here

      }
    }
    else if(targ.isInStoreMode())
    {
      targ.setPrivateStoreType(L2Player.STORE_PRIVATE_NONE);
      targ.broadcastUserInfo(true);
      targ.getBuyList().clear();
    }
    if(Config.MAT_ANNOUNCE_FOR_ALL_WORLD)
    {
      Announcements.getInstance().announceToAll(msg);
View Full Code Here

      return;
    }
    if(param[0].equalsIgnoreCase("FFFFFF"))
    {
      player.setNameColor(Integer.decode("0xFFFFFF"));
      player.broadcastUserInfo(true);
      return;
    }
    char c[];
    String s;
    c = param[0].toCharArray();
View Full Code Here

    c = param[0].toCharArray();
    s = "" + c[4] + c[5] + c[2] + c[3] + c[0] + c[1];
    if(mOption.price(player, Config.SERVICES_CHANGE_NICK_COLOR_ITEM, Config.SERVICES_CHANGE_NICK_COLOR_PRICE))
    {
      player.setNameColor(Integer.decode("0x" + s));
      player.broadcastUserInfo(true);
    }
  }

  public void onLoad()
  {
View Full Code Here

    L2Player player = (L2Player) getSelf();
    if(player.getPkKills() > 0 && mOption.price(player, Config.PlayerKillerPriceId, Config.PlayerKillerPriceCount))
    {
      player.setPkKills(player.getPkKills() - 1);
    }
    player.broadcastUserInfo(true);
    pk_page();
  }

  public void pkkarma()
  {
View Full Code Here

    L2Player player = (L2Player) getSelf();
    if(player.getKarma() > 0 && mOption.price(player, Config.PlayerKillerKarmaPriceId, Config.PlayerKillerKarmaPriceCount))
    {
      player.setKarma(Config.PlayerKillerKarma > player.getKarma() ? 0 : player.getKarma() - Config.PlayerKillerKarma);
    }
    player.broadcastUserInfo(true);
    pk_page();
  }

  @Override
  public void onLoad()
View Full Code Here

          statement.setInt(1, target.getClanId());
          statement.execute();
          DatabaseUtils.closeStatement(statement);
          statement = null;
          target.sendPacket(Msg.CLAN_HAS_DISPERSED);
          target.broadcastUserInfo(true);
        }
        catch(Exception e)
        {
        }
        finally
View Full Code Here

    }
    if(param[0].equalsIgnoreCase("FFFFFF"))
    {
      player.unsetVar("titlecolor");
      player.setTitleColor(Integer.decode("0xFFFFFF"));
      player.broadcastUserInfo(true);
      return;
    }
    char c[];
    String s;
    c = param[0].toCharArray();
View Full Code Here

    s = "" + c[4] + c[5] + c[2] + c[3] + c[0] + c[1];
    if(mOption.price(player, Config.SERVICES_CHANGE_TITLE_COLOR_ITEM, Config.SERVICES_CHANGE_TITLE_COLOR_PRICE))
    {
      player.setVar("titlecolor", Integer.toHexString(Integer.decode("0x" + s)));
      player.setTitleColor(Integer.decode("0x" + s));
      player.broadcastUserInfo(true);
    }
  }

  public static void OnPlayerEnter(int objectId)
  {
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.