top

Asta daca vrei sa ai clase cu diferite culori la nick

 
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Graffyty.MyForum.ro -> Lineage II
Autor Mesaj
NeW ErA-CS
Founder
Founder
NeW ErA-CS

Data inscrierii: 12/Oct/2007
Mesaje: 60
Localitate: NeW ErA

MesajTrimis: 22/12/2007 17:44    Titlul subiectului: Asta daca vrei sa ai clase cu variate culori la nick Raspunde cu citat (quote)

nsereaza in config.java file pentru a avea dierite colorații la nume pentru deosebite clase ;)

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);
}

BAFTA :D

:-D
_________________
[URL=http://graffyty.myforum.ro]Asta daca vrei sa ai clase cu diferite culori la nick Asta daca vrei sa ai clase cu variate culori la nick[/URL]
Sus
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:    Subiectul anterior : Subiectul urmator  
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Graffyty.MyForum.ro -> Lineage II Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum

Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro