Jump to content
Sign in to follow this  
Kyren

Color change

Recommended Posts

hello I have a question on how to change the item txt color instead of normal color of the item txt white like It can b change to color red,blue,yellow. Does anybody know which part need to edit in iteminfo?

Share this post


Link to post
Share on other sites

HEX Game.exe i guess, is conditioned by item type in some cases, and if applied also by energy, *not 100% sure. You can check it on the shared source.

 

Example Cap, Armor, Boots, Gloves:

 

Item Energy 0000 1000 : gray

Item Energy 1000 3000 : WHITE

Item Energy 3000 5000 : GREEN

Item Energy 5000 7000 : PURPLE

Item Energy 7000 ????  : RED

 

File: UIItemCommand.cpp

* you can also change this within an item instance

Edited by Totoka
+Example
  • Thanks 1

Discord: andresc

Share this post


Link to post
Share on other sites

Column Description

01 Item-ID

02 Itemname

03 Icon

04 Model to be displayed when item is dropped

05 Model - Lance

06 Model - Carsise

07 Model - Phyllis

08 Model - Ami

09 Ship Symbol

10 Ship Size Number

11 see ItemType.lua

12[ Obtain Prefix Rate

13 Set ID

14 Forging Level

15 Stable Value

16 can be repaired (0/1)

17 can be traded (0/1)

18 can be banked (0/1

19 can be dropped (0/1)

20 can be deleted (0/1)

21 max. Stacksize (1-99 - max. number of items that can be stacked)

22 unknown

23 Price

24 Useable by characters (1-4

25 min. Character Level

26 Useable by classes (JobType.lua)

27 unknown

28 unknown
29 slots where item can be equipped (Look.lua)

30 slots that are switched with item

31 item obtain into location determine (whatever)

32-52 percentage bonuses

53-73 constant bonuses

74 PR

75 item left hand exert identifier

76 Item Energy (Conches, etc.)

77 Durability

78 Max instantiation hole value

79-85 unused ship-stuff

86 ship movement speed (?)

87 usage effect

88 display effect

89 item bind effect

90 item bind effect dummy

91 Display item effect (item put at object slot 1 to show effect

92 item drop model effect

93 item usage effect

94 Description

95 Remarks

Edited by Kyren

Share this post


Link to post
Share on other sites

I just want to revive this thread since the topic is interesting. What is the exact offset to change the RGB color for the item name color? As you have notice the color is lighter that's why I want to change it into vivid one. Is it possible using hex only? I saw in CO that they manage to make it like that. 
DISCLAIMER: Credits for CO team on making this such beautiful concept. :D

 image.png.c58da2ad82ff220228c168e975431d8b.png

Share this post


Link to post
Share on other sites

inside source code it's called insde
 

void CItemCommand::AddHint( int x, int y ){

UIItemCommand.cpp
then inside it 
 

	if(_ItemData.sEndure[1] == 25000 && _ItemData.sEnergy[1] == 0){
		PushHint( _pItem->szName, COLOR_WHITE, 5, 1 );
		_ShowBody();
		return;
	}

and in co they use this line of code
 

	if( isWeapon || isDefenceType || isJewelery ||isEquip  ){
		if ( _ItemData.GetItemLevel() > 0 ){
			sprintf( buf, "Lv%d %s",_ItemData.GetItemLevel(), GetName());
		}else{
			sprintf( buf, "%s", GetName() );
		}
		PushHint( buf, COLOR_WHITE, 5, 1 ); //		//item name color  >	note i just made it as white was black before lol <

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Sign in to follow this  

×
×
  • Create New...