Can you change prat class colors?

Can you change prat class colors?

by sapporo » Thu May 28, 2015 8:12 pm

Hey I was curious if you could change the Prat class colors. Shamans are colored pink (paladin color) in chat rather than blue.
sapporo
Tester
 

Re: Can you change prat class colors?

by Noxm » Thu May 28, 2015 8:33 pm

I will happy if someone find us a solution :)
Nostalrius PvP -
Noxm - <Core Raider of Emphasis>
Alt : Noxmk - Noxmq
User avatar
Noxm
Knight-Lieutenant
Knight-Lieutenant
 

Re: Can you change prat class colors?

by heradura » Thu May 28, 2015 9:10 pm

That's just what the shaman color is.
heradura
Sergeant Major
Sergeant Major
 

Re: Can you change prat class colors?

by sapporo » Fri May 29, 2015 12:28 am

heradura wrote:That's just what the shaman color is.

I mean I assume I could edit the lua to change it. In retail it's blue and that's what I want, I assume it's one string for both.
sapporo
Tester
 

Re: Can you change prat class colors?

by heradura » Fri May 29, 2015 3:03 am

Dug around for a second; Prat uses Babble-Class-2.2 library to get class colors, which in turn uses the API function RAID_CLASS_COLORS as expected. In other words, the addon is asking the game which color to use for which class (was certainly new to me to see pink used for shaman, as a Wrath babby, but obviously makes sense).

If you really want, here's a hacky way to do what you want:
Go to Addons\Prat\libs\Babble-Class-2.2 and open the Lua file.
Go to line 123, which reads:
Code: Select all
if RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
      return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b

Change the "if" to "elseif" (no space) and paste the following before it:
Code: Select all
if RAID_CLASS_COLORS and RAID_CLASS_COLORS["Shaman"] then
      return 0, 122, 222


That should work. I guess. I'm not a programmer, just some idiot who learned C++ and Java in highschool. Basically you're telling it "wait wait, if it's a shaman just go ahead and make it this color before asking the game". Shouldn't affect your paladin color, either.

If it doesn't work I'll actually bother to test it and get it right for you, lol.
heradura
Sergeant Major
Sergeant Major
 

Re: Can you change prat class colors?

by Bioness » Fri May 29, 2015 3:18 am

sapporo wrote:
heradura wrote:That's just what the shaman color is.

I mean I assume I could edit the lua to change it. In retail it's blue and that's what I want, I assume it's one string for both.


A quick 2 minute search on google reveals that Shamans were in fact PINK before the Burning Crusade. This makes sense seeing as how they were faction exclusive back then.


http://www.mmo-champion.com/threads/135 ... p=23865002
http://www.reddit.com/r/wow/comments/31 ... ins_class/
http://www.wow-one.com/forum/topic/1679 ... ass-color/

Image
User avatar
Bioness
Knight-Lieutenant
Knight-Lieutenant
 

Re: Can you change prat class colors?

by schaka » Sat May 30, 2015 7:01 am

Just make an addon that overwrites RAID_CLASS_COLORS with the following table - since it's global, all you have to do is make an addon with the following content:

Code: Select all
RAID_CLASS_COLORS = {
    ["HUNTER"] = { r = 0.67, g = 0.83, b = 0.45, colorStr = "ffabd473" },
    ["WARLOCK"] = { r = 0.58, g = 0.51, b = 0.79, colorStr = "ff9482c9" },
    ["PRIEST"] = { r = 1.0, g = 1.0, b = 1.0, colorStr = "ffffffff" },
    ["PALADIN"] = { r = 0.96, g = 0.55, b = 0.73, colorStr = "fff58cba" },
    ["MAGE"] = { r = 0.41, g = 0.8, b = 0.94, colorStr = "ff69ccf0" },
    ["ROGUE"] = { r = 1.0, g = 0.96, b = 0.41, colorStr = "fffff569" },
    ["DRUID"] = { r = 1.0, g = 0.49, b = 0.04, colorStr = "ffff7d0a" },
    ["SHAMAN"] = { r = 0.0, g = 0.44, b = 0.87, colorStr = "ff0070de" },
    ["WARRIOR"] = { r = 0.78, g = 0.61, b = 0.43, colorStr = "ffc79c6e" },
    ["DEATHKNIGHT"] = { r = 0.77, g = 0.12 , b = 0.23, colorStr = "ffc41f3b" },
    ["MONK"] = { r = 0.0, g = 1.00 , b = 0.59, colorStr = "ff00ff96" },
};
schaka
Senior Sergeant
Senior Sergeant
 

Re: Can you change prat class colors?

by Barolo » Fri Sep 18, 2015 8:44 am

I have tried to make a lua file with that text Schaka linked but I can't get it work. My Grid and Prat still use the default class colors.. Could anyone be able to make this addon?
User avatar
Barolo
Private
Private
 

Re: Can you change prat class colors?

by Vorfidus » Fri Sep 18, 2015 9:23 am

If nobody else has done it, I'll do it when I get home today and upload it. Like the others said, you just need to edit the LUA file inside the addon, which dictates the colors based on RGB.
The level of whining about bans on the forums is at an all time industrial level.
Vorfidus
Stone Guard
Stone Guard
 

Re: Can you change prat class colors?

by Ohr » Fri Sep 18, 2015 9:24 am

Vorfidus wrote:If nobody else has done it, I'll do it when I get home today and upload it. Like the others said, you just need to edit the LUA file inside the addon, which dictates the colors based on RGB.

Awesome, I'll be using it and include it into my UI pack.
User avatar
Ohr
Stone Guard
Stone Guard
 

Next

Return to Addons & macros