Jump to content
  • 0

[Request] Faction Enemy/ally Name Colors


Question

Posted

Hey guys. I've been working on a faction server for a while and what i'm trying to do is. Make enemies appear in red name and allies in white name but i have absolutely no idea how this could be done. I'd really appreciate it if anyone could help me with that.

Here's a picture of how it looks 

http://img259.imageshack.us/img259/2498/61426658.png

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

writeD(_activeChar.getFunction() != getClient().getActiveChar().getFunction() ? 0xFF0000 : _activeChar.getAppearance().getNameColor());

 

anyways im too kind as you see, thats the job of "mxcL2devs" not mine

Edited by xdem
  • 0
Posted (edited)

 I've already tried to make something. Here's what i did but it didn't work as i expected.

 
L2PcInstance tmp = getClient().getActingChar();
 
if ((tmp != null) && (_activeChar.getFactionId() == tmp.getFactionId()))
{
      writeD(_activeChar.getAppearance().getNameColor());
}
else
{
      writeD(0xFF0000);
}

anyway thanks for the replies guys! i really appreciate your help :) i'll try what xdem posted and i'll give you feedback.

it works! thank you very much xdem :)
Edited by Ratatat

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...

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