Jump to content
  • 0

[Help] Add clan leader color at CB


Question

Posted

here my code i see gms and clan leaders but normally players dont see on cb just stay 3 players and see only 2 in cb:

 

here code :

 

if (Config.BBS_SHOW_PLAYERLIST)

{

htmlCode.append("<table border=0><tr><td><table border=0>");

 

for (L2PcInstance player : getOnlinePlayers(page))

{

cell++;

 

if (cell == 1)

{

htmlCode.append(trOpen);

}

 

StringUtil.append(htmlCode, "<td align=left valign=top FIXWIDTH=110><a action=\"bypass _bbsloc;playerinfo;", player.getName(), "\">");

 

if (player.isGM())

{

StringUtil.append(htmlCode, "<font color=\"LEVEL\">", player.getName(), "</font>");

}

 

else if (Config.COLOR_COMMUNITY_BOARD)

{

if (player.getClan() != null && player.isClanLeader()&& player.getClan().getLevel() >= Config.CLAN_LEVEL)

{

StringUtil.append(htmlCode, "<font color=\"00FF00\">", player.getName(), "</font>");

}

}

 

else

{

htmlCode.append(player.getName());

}

 

htmlCode.append("</a></td>");

 

if (cell < Config.NAME_PER_ROW_COMMUNITYBOARD)

htmlCode.append(colSpacer);

 

if (cell == Config.NAME_PER_ROW_COMMUNITYBOARD)

{

cell = 0;

htmlCode.append(trClose);

}

}

 

the orange lines i changed

 

here little bit down : same java :

 

if (Config.BBS_SHOW_PLAYERLIST)

{

htmlCode.append("<table border=0><tr><td><table border=0>");

 

cell = 0;

for (L2PcInstance player : getOnlinePlayers(page))

{

if ((player == null) || (player.getAppearance().getInvisible()))

continue; // Go to next

 

cell++;

 

if (cell == 1)

{

htmlCode.append(trOpen);

}

 

StringUtil.append(htmlCode, "<td align=left valign=top FIXWIDTH=110><a action=\"bypass _bbsloc;playerinfo;", player.getName(), "\">");

 

if (player.isGM())

{

StringUtil.append(htmlCode, "<font color=\"LEVEL\">", player.getName(), "</font>");

}

 

else if (Config.COLOR_COMMUNITY_BOARD)

{

if (player.getClan() != null && player.isClanLeader()&& player.getClan().getLevel() >= Config.CLAN_LEVEL)

{

StringUtil.append(htmlCode, "<font color=\"00FF00\">", player.getName(), "</font>");

}

}

 

else

{

htmlCode.append(player.getName());

}

 

 

htmlCode.append("</a></td>");

 

if (cell < Config.NAME_PER_ROW_COMMUNITYBOARD)

htmlCode.append(colSpacer);

 

if (cell == Config.NAME_PER_ROW_COMMUNITYBOARD)

{

cell = 0;

htmlCode.append(trClose);

}

}

 

so and they dont show normally online players thanks for help

4 answers to this question

Recommended Posts

  • 0
Posted

try this

 

              else if (Config.COLOR_COMMUNITY_BOARD)
              {
                 if (player.getClan() != null && player.isClanLeader()&& player.getClan().getLevel() >= Config.CLAN_LEVEL)
                 {
                    StringUtil.append(htmlCode, "<font color=\"00FF00\">", player.getName(), "</font>");
                 }
                 else
                 {
                    StringUtil.append(htmlCode, "<font color=\"F0F8FF\">", player.getName(), "</font>");
                  }

              }

edit: change the color if you dont like it

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock