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: Heroic Items?  (Read 1916 times)

Portals

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 24
    • View Profile
Heroic Items?
« on: January 08, 2014, 07:27:58 am »


As you can see this item says Heroic, but I am trying to edit the text to say something else. Is this edited in the .exe or somewhere else?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: Heroic Items?
« Reply #1 on: January 08, 2014, 09:10:50 am »
Patch-enUS-3.MPQ

Interface/FrameXML/GlobalStrings.LUA

Search for ITEM_HEROIC, this is where that name is stored.

Edit and make new patch
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Portals

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 24
    • View Profile
Re: Heroic Items?
« Reply #2 on: January 08, 2014, 09:28:33 am »
Thank you! Is there a way to add another name. For instance I want there to be Normal, Medium, and Hard names in different colors.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: Heroic Items?
« Reply #3 on: January 08, 2014, 11:03:53 am »
Not to my knowledge, Heroic is set as a flag in item template.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Heroic Items?
« Reply #4 on: January 08, 2014, 03:49:49 pm »
You could hack it together by having the item name have be "Great Axe | R_LEGEND".

In the Lua file, find | in the item name and replace that and anything right of it with nothing so only "Great Axe" displays.

On tooltip hover, if "| R_LEGEND" is found, instead of displaying the normal "Heroic" bit display your own custom message.

This is very hacky but does work. You can replace almost anything displayed using methods like this.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Portals

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 24
    • View Profile
Re: Heroic Items?
« Reply #5 on: January 09, 2014, 03:07:47 am »
I really don't understand stoneharry, can you please explain it a little bit more detailed or add me on skype @ NikoMotus. I am willing to pay for a private lesson if needed.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Heroic Items?
« Reply #6 on: January 09, 2014, 11:06:05 am »
Quote from: "Portals"
I really don't understand stoneharry, can you please explain it a little bit more detailed or add me on skype @ NikoMotus. I am willing to pay for a private lesson if needed.

The display is fully handled from the Lua and XML files. InterfaceFrameXML

This means you can change how it is displayed. Find where the item display frame is and then try modifying it. See if you can find exactly where it is showing what you want to modify.

Now the string name etc are being parsed in as strings. Strings can be modified.

If you change the item name string to have a code in it, then client side do not display the code but use it to determine what to show in another section, you have achieved what you set out to do.

This is not an easy implementation at all - for that reason I can only tell you the theory behind it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Heroic Items?
« Reply #7 on: January 09, 2014, 02:55:24 pm »
Aren't things like item-links assembled in-client, thus can't be stripped of the tag?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Heroic Items?
« Reply #8 on: January 09, 2014, 04:35:32 pm »
Quote from: "schlumpf"
Aren't things like item-links assembled in-client, thus can't be stripped of the tag?

You are correct as always. I just assumed it was rendered in the frameXML like almost everything else is, and now upon checking it seems only global strings are stored there. My bad.

Ignore my previous posts.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: Heroic Items?
« Reply #9 on: January 09, 2014, 10:49:58 pm »
Just on a whim, I tried using $B $N n and | just to see what happened, and sadly nothing...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »