Colors

All Helbreath Client Source Discussion here.
pg120
noob
Posts: 24
Joined: Wed Jul 27, 2005 5:22 am

Post by pg120 »

Can anyone post on how to change colors of items in client, sorta like glowing? So say i wanted bright yellow armors, how would i go on doing that, or even a bright green zwand? Help would be appreciated :ph34r:
EvilHit
Loyal fan
Posts: 356
Joined: Sun Jan 16, 2005 3:20 am

Post by EvilHit »

like hb underlord aka my server ?
pg120
noob
Posts: 24
Joined: Wed Jul 27, 2005 5:22 am

Post by pg120 »

Sure if thats what you have in hb underlord, think u could help me out? B)
Sclaw23
just visiting
Posts: 1
Joined: Wed Apr 13, 2005 2:52 am

Post by Sclaw23 »

i have also been looking for this code >.> can anyone help?
Sain
noob
Posts: 17
Joined: Sun Mar 25, 2007 6:22 pm

Post by Sain »

Yep that would be cool, i have seen pictures from HB Underlord the white armor. I would really appreciate if someone pasted the code.

Cheers,
SaiN
Charles
Loyal fan
Posts: 418
Joined: Wed Nov 26, 2003 8:20 pm

Post by Charles »

Sain wrote: Yep that would be cool, i have seen pictures from HB Underlord the white armor. I would really appreciate if someone pasted the code.

Cheers,
        SaiN
<i>"Always write good code. Feel bad to write bad code."</i>
pg120
noob
Posts: 24
Joined: Wed Jul 27, 2005 5:22 am

Post by pg120 »

Someone please help us three? :(
Sentinel
Loyal fan
Posts: 462
Joined: Thu Jan 11, 2007 4:16 pm

Post by Sentinel »

Yoru all fucking retarded. All it is, is changing the RGBs. Jesus fucking christ, c'mon you stupid twats. Fucking pick up the books and TRY to learn. Sleezy fucking faggets. -.-



EDIT: What I'm searching for, is the glowing of the Xelima,Medusa, and Ice Swords... Point me in the direction too look, and I'll begin there.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->charlie says:<br>i may own outpost but im not a nerd<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->(locobans @ Mar 12 2007, 10:48 PM) <br>"Remember while peeing, If you shake it more than twice you playing with it..." <br><!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
Sain
noob
Posts: 17
Joined: Sun Mar 25, 2007 6:22 pm

Post by Sain »

lol @ u
pg120
noob
Posts: 24
Joined: Wed Jul 27, 2005 5:22 am

Post by pg120 »

How about spaming useless things, ranting at people you can point them in the right direction? Yeah. ;)
Sentinel
Loyal fan
Posts: 462
Joined: Thu Jan 11, 2007 4:16 pm

Post by Sentinel »

Why don't you guys search? If there wasn't spam dipshit, there would be no topics. You guys just piss the fuck out of me with your lack of knowledge and wanting to learn. Fuck you, not everyone in life is going to give you a free ride. It's not that god damn hard.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->charlie says:<br>i may own outpost but im not a nerd<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->(locobans @ Mar 12 2007, 10:48 PM) <br>"Remember while peeing, If you shake it more than twice you playing with it..." <br><!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

Yeah its nice to see someone is speaking from experience.

You've tried to get your fair shares of free rides so let them have there's.
choouei
Loyal fan
Posts: 227
Joined: Tue Sep 12, 2006 3:19 pm

Post by choouei »

game.cpp

Code: Select all

case DEF_ITEMEFFECTTYPE_ARMORDYE:
 if ((sDestItemID >= 0) && (sDestItemID < DEF_MAXITEMS)) {
  if (m_pClientList[iClientH]->m_pItemList[sDestItemID] != NULL) {
   if (m_pClientList[iClientH]->m_pItemList[sDestItemID]->m_cCategory == 6) {
    m_pClientList[iClientH]->m_pItemList[sDestItemID]->m_cItemColor = m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sItemEffectValue1;
    SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMCOLORCHANGE, sDestItemID, m_pClientList[iClientH]->m_pItemList[sDestItemID]->m_cItemColor, NULL, NULL);
    return TRUE;
   }
   else {
    SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMCOLORCHANGE, sDestItemID, -1, NULL, NULL);
    return FALSE;
   }
  }
 }
 break;


CODE
case DEF_ITEMEFFECTTYPE_WEAPONDYE:
 if ((sDestItemID >= 0) && (sDestItemID < DEF_MAXITEMS)) {
  if (m_pClientList[ iClientH ]->m_pItemList[sDestItemID] != NULL) {
   if (m_pClientList[ iClientH ]->m_pItemList[sDestItemID]->m_cCategory == 1) {
    m_pClientList[ iClientH ]->m_pItemList[sDestItemID]->m_cItemColor = m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sItemEffectValue1;
    SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMCOLORCHANGE, sDestItemID, m_pClientList[iClientH]->m_pItemList[sDestItemID]->m_cItemColor, NULL, NULL);
    return TRUE;
   }
   else {
    SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMCOLORCHANGE, sDestItemID, -1, NULL, NULL);
    return FALSE;
   }
  }
 }
item.h

Code: Select all

#define DEF_ITEMEFFECTTYPE_ARMORDYE   32
#define DEF_ITEMEFFECTTYPE_WEAPONDYE  35
client.cpp

Code: Select all

m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  255,  127,  0), &m_wWR[12], &m_wWG[12], &m_wWB[12]); // Orange
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  205,  205,  0), &m_wWR[13], &m_wWG[13], &m_wWB[13]); // Yellow
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  178,  34,  34), &m_wWR[4], &m_wWG[4], &m_wWB[4]); // Crimson-Red
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  0, 100,  0), &m_wWR[11], &m_wWG[11], &m_wWB[11]); // Green
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 130,  90,  10), &m_wWR[3], &m_wWG[3], &m_wWB[3]); // Critical
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  16,  78, 139), &m_wWR[10], &m_wWG[10], &m_wWB[10]); // Heavy-blue
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 238, 233, 233), &m_wWR[15], &m_wWG[15], &m_wWB[15]); // White
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 123, 104, 238), &m_wWR[9], &m_wWG[9], &m_wWB[9]); // Violet
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  139,  58,  58), &m_wWR[14], &m_wWG[14], &m_wWB[14]); // Heavy-Red
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 135, 104,  30), &m_wR[6], &m_wG[6], &m_wB[6]); // Black
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 255, 106,  106), &m_wWR[8], &m_wWG[8], &m_wWB[8]); // Peach
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 139, 69,  19), &m_wWR[2], &m_wWG[2], &m_wWB[2]); // Bronze
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 108, 166,  205), &m_wWR[7], &m_wWG[7], &m_wWB[7]); // Aqua
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 10, 60,  70), &m_wWR[5], &m_wWG[5], &m_wWB[5]); // TealGreen
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 176, 48, 96), &m_wWR[1], &m_wWG[1], &m_wWB[1]); // Pink

m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 200/2,  200/2,  200/2),  &m_wR[0], &m_wG[0], &m_wB[0]);
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(176, 48, 96),  &m_wR[1], &m_wG[1], &m_wB[1]); // (Pink)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(   139,     69,     19),  &m_wR[2], &m_wG[2], &m_wB[2]); // (Bronze)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(   145,    104,     30),  &m_wR[3], &m_wG[3], &m_wB[3]); // (Gold)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 178,   34,      34),  &m_wR[4], &m_wG[4], &m_wB[4]); // (Crimson-Red)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    10,     60,     70),  &m_wR[5], &m_wG[5], &m_wB[5]); // (TealGreen)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(28, 28, 28),  &m_wR[6], &m_wG[6], &m_wB[6]); // (Black)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    108,    166,     205),  &m_wR[7], &m_wG[7], &m_wB[7]); // (Aqua)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(255, 106, 106),  &m_wR[8], &m_wG[8], &m_wB[8]); // (Peach)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    123,     104,     238),  &m_wR[9], &m_wG[9], &m_wB[9]); // (Violet)

m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(     16,     78,     139),  &m_wR[10], &m_wG[10], &m_wB[10]); // (Blue)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0, 100, 0),  &m_wR[11], &m_wG[11], &m_wB[11]); // (Green)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(255, 127, 0),  &m_wR[12], &m_wG[12], &m_wB[12]); // (Orange)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    205,     205,      0),  &m_wR[13], &m_wG[13], &m_wB[13]); // (Yellow)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    139,     58,     58),  &m_wR[14], &m_wG[14], &m_wB[14]); // (Red)
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  238,   233,   233),  &m_wR[15], &m_wG[15], &m_wB[15]); // (White)
edited: its simple RGB, if u dont know how, u can use photoshop to test out the colors and get the RGB numbers and paste them onto the numbers.
<img src='http://img284.imageshack.us/img284/6717/fuckto1.jpg' border='0' alt='user posted image' />
Sain
noob
Posts: 17
Joined: Sun Mar 25, 2007 6:22 pm

Post by Sain »

Cheers dude ;)
choouei
Loyal fan
Posts: 227
Joined: Tue Sep 12, 2006 3:19 pm

Post by choouei »

Sain wrote: Cheers dude ;)
mine is weapon dye not the color of the glow :D
if u want to code for it, i dont have sorry
<img src='http://img284.imageshack.us/img284/6717/fuckto1.jpg' border='0' alt='user posted image' />
Post Reply