• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

|CFF Color Tag Generator Webtool - Great for Item Name/Descriptions, Spell Names, Gossip, etc

Anthonys-Toolbox

Epic Member
Gradient |CFF Color Tag Generator Webtool -Great for Item Name/Descriptions, Spell Names, Gossip,etc

Due to how TrinityCore has changed over the past year, also Big Thanks to Laurea's research, character strings break after 400 characters. Which is a shame since it used to show 2047 characters without a hitch, Descriptions can do 1023 characters still atleast. As for Skyfire users, you can still display up to 1023 characters in both name and descriptions without any problems. =D If you plan to use this tool, then it's up to you to make it work for your project and needs. It's beyond my control if this somehow screws up your server. And just a heads up, atleast for me, I have not seen color bleeding into the next item or string. Though if you notice this happening, then do as Laurea suggests and end it off with a |r tag.

It's not a single color generator, so if you needed just one color, you can use a normal palette picker website for that to define the Hexidecimal you need such as:
http://www.colorpicker.com/

However if you wanted to do something a bit more crazy and complicated such as Gradients. You'd either have to do it manually(been there), or code your own tool, or modify an existing tool for that like I did.. XD.
Here's the Link: http://anthonys-toolbox.org/tektekmod/ItemNames/ItemName.htm

Original Link for outputting to HTML and BB's is here: http://www.tektek.org/color/

My mod outputs |CFF tags. If you use this for Item names/descriptions, make sure you modify the max character limit of your columns as one letter will eat up 11 character spaces. I was going to add a character counter but I never got around to it.

Example:

Ingame Output: Hey guys.Thanks for dropping by and checking us out!

Database String: |CFFC80046H|CFFC80032e|CFFC8001Ey|CFFC80008 |CFFC80D00g|CFFC82200u|CFFC83500y|CFFC84600s|CFFC85700.|CFFC76800 |CFFC77800T|CFFC88900h|CFFC79B00a|CFFC7AF00n|CFFC8C400k|CFFB4C800s|CFF9FC800 |CFF8BC800f|CFF78C800o|CFF64C800r|CFF51C700 |CFF3CC800d|CFF26C800r|CFF0EC800o|CFF00C80Bp|CFF00C823p|CFF00C73Ai|CFF00C84En|CFF00C762g|CFF00C875 |CFF00C889b|CFF00C89Dy|CFF00C7B1 |CFF00C7C8a|CFF00B1C7n|CFF009EC8d|CFF008BC8 |CFF007AC8c|CFF006AC8h|CFF0059C8e|CFF0048C8c|CFF0037C8k|CFF0024C7i|CFF0010C8n|CFF0500C8g|CFF1B00C8 |CFF3000C7u|CFF4300C8s|CFF5700C8 |CFF6A00C8o|CFF7E00C8u|CFF9300C8t|CFFAA00C7!
 
Last edited:

Laurea

Enthusiast
make sure you modify the max character limit of your columns
NO. The client supports up to 255 characters (uint8) in most strings, you do not simply go around and make the database support more than that (I know for a fact that Trinity's item_template string fields already have 255 length).

Anyways, let's put this into practice. Linking in chat breaks if you don't use |r to close the tag. This means that every letter in your gradient actually takes up twelve characters (ten otherwise - you fail math forever). An item link in chat, assuming no enchants, that the entry id is 10000 or above (all WotLK items), and linked by a player above level nine, takes up 51 characters without an item name. Add eight if it has charges, up to three if it is enchanted, up to six if it has a random suffix, and three for every gem.

So, assuming we have an unsocketed, enchanted WotLK item: 51 characters from the base link and 3 for enchantment. We now have 201 characters to work with (255-51-3=201). This means you can have 16 characters in the item name at the very most before you reach the limit (201/12=16.75), and that would leave all of 9 characters for the message (201-16*12=9).


TL;DR Gradients aren't practical.
 
Last edited:

AlexeWarr

Epic Member
very nice Anthony, And Laurea, I used to increase max length of characters in item's description field and worked
 

Anthonys-Toolbox

Epic Member
NO. The client supports up to 255 characters (uint8) in most strings, you do not simply go around and make the database support more than that (I know for a fact that Trinity's item_template string fields already have 255 length).

Anyways, let's put this into practice. Linking in chat breaks if you don't use |r to close the tag. This means that every letter in your gradient actually takes up twelve characters (ten otherwise - you fail math forever). An item link in chat, assuming no enchants, that the entry id is 10000 or above (all WotLK items), and linked by a player above level nine, takes up 51 characters without an item name. Add eight if it has charges, up to three if it is enchanted, up to six if it has a random suffix, and three for every gem.

So, assuming we have an unsocketed, enchanted WotLK item: 51 characters from the base link and 3 for enchantment. We now have 201 characters to work with (255-51-3=201). This means you can have 16 characters in the item name at the very most before you reach the limit (201/12=16.75), and that would leave all of 9 characters for the message (201-16*12=9).


TL;DR Gradients aren't practical.

You don't have to close it. Alteast I never have closed it. In trinity you can have up to 2047 characters in a varchar string, in Skyfire it's 1023. You really need to get your brain together mate. I personally don't like people linking custom items in chat so I'm glad you can't. And you can link it actually, if your total input string is less than 255 characters, following MY 11 character math. Not your 12 character bs math.

Also if it's not possible to change your length, explain how I did this??
2W1P2.jpg


How do you get that my Math is wrong? lol. |CFF = 4, FFFFFF=6, the single letter after is 11 total. Don't believe me? Count it. It will use up 11 characters total in your columns.

Gradients may not be practical Mister I cheat on simple games, it's to whoever wishes to use them... Similar to how I also put images as my descriptions and item names:

2W1Ti.jpg
 
Last edited:

Laurea

Enthusiast
You don't have to close it. Alteast I never have closed it. In trinity you can have up to 2047 characters in a varchar string, in Skyfire it's 1023. You really need to get your brain together mate. I personally don't like people linking custom items in chat so I'm glad you can't. And you can link it actually, if your total input string is less than 255 characters, following MY 11 character math. Not your 12 character bs math.

Also if it's not possible to change your length, explain how I did this??
2W1P2.jpg


How do you get that my Math is wrong? lol. |CFF = 4, FFFFFF=6, the single letter after is 11 total. Don't believe me? Count it. It will use up 11 characters total in your columns.

Gradients may not be practical Mister I cheat on simple games, it's to whoever wishes to use them... Similar to how I also put images as my descriptions and item names:

2W1Ti.jpg
Did some testing. The item name completly breaks at 401 characters, and the auction house won't show anything past 255 characters. Image 1 Image 2

If you don't close every color tag, the last bracket in an item link will be colored - not very aesthetically pleasing. Also, people who do want their players to be able to link items will still have to adhere to the 255 character limit.

I will admit to derping up the math, since I did not include the character itself. This means that you will only have fifteen characters for item links to work if you don't want the discolored bracket, and 18 otherwise.

Yes, it is for those who want it. Doesn't change the fact that it can easily break the client (which happens at 37 characters if each is colored differently).

It's not on topic, but those images would take up an obscene amount of screen space if used at that size. Also, may I ask why you brought up my "cheating," since it has nothing at all to do with this?
 

Anthonys-Toolbox

Epic Member
You're cheating on a simple game was brought up because that's what I know your alias from and that will be your ID in my thoughts, and of your incorrect thought processes. Coming on like you were correct but you derped in your math and your "YOU CAN"T HAVE MORE THAN 255" in a column even though now you say you have 401? Really? 401 < 255? I didn't know that.

As I said, people who want to use this will and others who don't, will not. I never used them for Auction houses or my normal Items, only custom items, which in turn didn't matter if it colored the next item as All items from this particular Section were colored anyway.

As you should know, if someone is willing to do something right, they'll do it meaning they'll take the time to figure out how to make this work for their usage if need be.

Also as you should understand, this is merely a tool meant to be manipulated. If one can't manipulate it or use it to their own prospects, that's beyond my concern quite honestly. There are many uses for this, however you seem to be only looking at the surface of it, which is honestly extremely sad.

Edit: And the reason I like things not being Linkable.. is I hate it when players would go and be like, WTS [EPIC CUSTOM ITEM] even though it's unobtainable normally nor do they have it.

But shouldn't this be in the Scripts & applications?

I was going to put it there originally but it felt too simple of a tool to be put into it.
 
Last edited:

Foereaper

Founder
I don't understand what Laurea messing with the arcade has to do with anything. I'll admit it was pretty funny at the time, and it was reset afterwards. That being said, it's a neat tool, but not practical due to the exact reasons Laurea stated. I fail to see why you two are so on edge with each other, I don't mind a discussion about the issue, but keep personal remarks out of it.
 

Anthonys-Toolbox

Epic Member
I don't understand what Laurea messing with the arcade has to do with anything. I'll admit it was pretty funny at the time, and it was reset afterwards. That being said, it's a neat tool, but not practical due to the exact reasons Laurea stated. I fail to see why you two are so on edge with each other, I don't mind a discussion about the issue, but keep personal remarks out of it.

Well that whole cheat thing is his Identity to me, I do not know him or her for anything else so for now he/she is known as Mister I cheat on simple games. As I said, this is merely a tool, If one wishes to use it, then it's their job to make it work for their purpose and ideas. If they wish to close it off, so be it. If they don't, so be that as well. I used them for all of the donor items and I already stated as to why I didn't mind that you couldn't link them and again, donor only items, so naturally they wouldn't appear anywhere else.

I suppose we're "on edge" with one another is because he/she pointed out two incorrect things and talked on as they were correct. And it just went on from there. Also Laurea seems to be a practical, strict, and a tad bit too overly serious of a person when it comes to emulation.. I'm a lot looser it seems as I'm not a developer type.. Which could be another reason why people have a hard time taking me serious sometimes. XD
 
Last edited:

Foereaper

Founder
Well that whole cheat thing is his Identity to me, I do not know him or her for anything else so for now he/she is known as Mister I cheat on simple games. As I said, this is merely a tool, If one wishes to use it, then it's their job to make it work for their purpose and ideas. If they wish to close it off, so be it. If they don't, so be that as well. I used them for all of the donor items and I already stated as to why I didn't mind that you couldn't link them and again, donor only items, so naturally they wouldn't appear anywhere else.

I suppose we're "on edge" with one another is because he/she pointed out two incorrect things and talked on as they were correct. And it just went on from there.

That information should be included in the main post, mainly to not waste people's time trying to get it to work. And like I said, keep personal remarks away from any discussion, even if it's how you identify someone, it has nothing to do with the topic at all. It's derogatory and prejudice, which neither has anything to do on these forums at all.

Again, it's a neat tool, more so for vanity purposes, as it's not very functional for anything else.
 
Top