Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: spiderwaseem on July 06, 2016, 10:49:35 pm

Title: Adding a Level Requirement Message Per Class?
Post by: spiderwaseem on July 06, 2016, 10:49:35 pm
Hello everyone!

I'm trying to replicate the "You must have an existing character of at least level 55 on any realm to create a Death Knight" message, however, for another class with different text shown.

I was able to achieve having the same message show. However, it automatically showed when I made the class Heroic server-side. My current issue is that both different classes have different requirements. So the same message can't be shown on these different classes.

Looking into GlueStrings.lua, this is where the message's text is being handled:
Code: [Select]
CHAR_CREATE_LEVEL_REQUIREMENT = "You must have an existing character of at least level 55 on any realm to create a Death Knight.";

What I don't know is where this message is defined exactly. Where does it tell the client to display the "CHAR_CREATE_LEVEL_REQUIREMENT" message for Heroic Classes? If I know where this is, I can easily create another one for the other class.


Here's an in-game view of what I'm talking about:

 - Message when creating a DK without meeting requirements:
(http://puu.sh/pSFrP/b7c27bd88b.jpg)

 - Message I need to show when not meeting requirements on a DIFFERENT class, Demon Hunter:
(http://puu.sh/pSFws/5ad960322f.jpg)

Instead, the same message is displayed, so how can I have a different message shown per class?
I've already tried looking in a few places such as an 'Entire Solution' search server-side for "CHAR_CREATE_LEVEL_REQUIREMENT" and in CharacterCreate.lua/.xml and a few others.
I could be searching for the wrong thing, but any help is appreciated.

Thanks!
Deathorous.
Title: Re: Adding a Level Requirement Message Per Class?
Post by: schlumpf on July 06, 2016, 11:34:21 pm
This is hardcoded in the client.
Title: Re: Adding a Level Requirement Message Per Class?
Post by: spiderwaseem on July 07, 2016, 12:13:41 am
Quote from: "schlumpf"
This is hardcoded in the client.

Damn...
I could probably make some kind of lua code client-side that could do this then.
Or something...