Lineage2Developer Lineage2Developer
High Quality everytime !
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

[Guide] Races with different color of nick

 
Post new topic   Reply to topic    Lineage2Developer Forum Index -> Server
View previous topic :: View next topic  
Author Message
xXVaRcoLaCXx
MasTer Of The Server
MasTer Of The Server
xXVaRcoLaCXx

Joined: 04 Nov 2007
Posts: 11
Location: Giran Town

PostPosted: 20/11/2007 10:34    Post subject: [Guide] Races with different color of nick Reply with quote

insert in your config.java file to have different color name for different class!!!
Cod:
/* insert in config.java */
public static boolean CLASS_NAME_COLOR_ENABLED;

public static int HUMAN_NAME_COLOR;

public static int ELF_NAME_COLOR;

public static int DE_NAME_COLOR;

public static int ORC_NAME_COLOR;

public static int DWARF_NAME_COLOR;


/* ..... */

CLASS_NAME_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("ClassNameColorEnabled", "False"));
HUMAN_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("HumanNameColor", "FFFFFF"));
ELF_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("ElfNameColor", "FFFFFF"));
DE_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("DENameColor", "FFFFFF"));
ORC_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("OrcNameColor", "FFFFFF"));
DWARF_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("DwarfNameColor", "FFFFFF"));

/* insert in other.properties */
#set True if you want to config every race name color
ClassNameColorEnabled = False

HumanNameColor = FF0000

ElfNameColor = FF00FF

DENameColor = 00FF00

OrcNameColor = 000FFF

DwarfNameColor = 000000

/* insert in EnterWorld.java */
/* somewhere in this function
void runImpl()
{
L2PcInstance activeChar = getClient().getActiveChar();
....
}
*/
/* 1st test cod ... try 2nd cod first*/
if (Config.CLASS_NAME_COLOR_ENABLED)
{
if (((activeChar.getClassId().getId() >= 0) && (activeChar.getClassId().getId() <17>= 88) && (activeChar.getClassId().getId() <98>= 18) && (activeChar.getClassId().getId() <30>= 99) && (activeChar.getClassId().getId() <105>= 31) && (activeChar.getClassId().getId() <43>= 106) && (activeChar.getClassId().getId() <112>= 44) && (activeChar.getClassId().getId() <52>= 113) && (activeChar.getClassId().getId() <116>= 53) && (activeChar.getClassId().getId() <57>= 117) && (activeChar.getClassId().getId() <118>= 0x00) && (activeChar.getClassId().getId() <0x11>= 0x58) && (activeChar.getClassId().getId() <0x62>= 0x12) && (activeChar.getClassId().getId() <0x1e>= 0x63) && (activeChar.getClassId().getId() <0x69>= 0x1f) && (activeChar.getClassId().getId() <0x2b>= 0x6a) && (activeChar.getClassId().getId() <0x70>= 0x2c) && (activeChar.getClassId().getId() <0x34>= 0x71) && (activeChar.getClassId().getId() <0x74>= 0x35) && (activeChar.getClassId().getId() <0x39>= 0x75) && (activeChar.getClassId().getId() <= 0x76)))
activeChar.setNameColor(Config.DWARF_NAME_COLOR);
}



FINISH :w00t: :w00t: :w00t: :w00t: :w00t: :w00t: Credits to EviL33T
Back to top
View user's profile Send private message Send e-mail
tzuyk

tzuyk

Joined: 18 Nov 2007
Posts: 20

PostPosted: 20/11/2007 13:57    Post subject: Reply with quote

f f tare :D fascinant >:D<
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lineage2Developer Forum Index -> Server All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



smartDark Style by Smartor
Powered by phpBB © 2001, 2002 phpBB Group