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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...