This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Adding a Level Requirement Message Per Class?  (Read 756 times)

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Adding a Level Requirement Message Per Class?
« 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:


 - Message I need to show when not meeting requirements on a DIFFERENT class, Demon Hunter:


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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Adding a Level Requirement Message Per Class?
« Reply #1 on: July 06, 2016, 11:34:21 pm »
This is hardcoded in the client.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: Adding a Level Requirement Message Per Class?
« Reply #2 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...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »