Cad

Member
Hello, I'm stuck trying to figure out how to insert spell icons for "Recall" and "Gate Travel" into my runebooks instead of the words "Recall" and "Gate Travel"

I've found the line needed to edit but not sure what I'm looking at. I know the current CliLoc numbers for these are to display the words but how can I make it to display the spell icons instead?

RunebookGump.cs:
                    if (Core.AOS)
                    {
                        AddButton(135 + (half * 160), 140, 2103, 2104, 50 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 136, 110, 20, 1062722, false, false); // Recall

                        AddButton(135 + (half * 160), 158, 2103, 2104, 100 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 154, 110, 20, 1062723, false, false); // Gate Travel

                        AddButton(135 + (half * 160), 176, 2103, 2104, 75 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 172, 110, 20, 1062724, false, false); // Sacred Journey
                    }
                    else
                    {
                        AddButton(135 + (half * 160), 140, 2103, 2104, 50 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 136, 110, 20, 1062722, false, false); // Recall

                        AddButton(135 + (half * 160), 158, 2103, 2104, 100 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 154, 110, 20, 1062723, false, false); // Gate Travel
                    }
                }
            }
        }

Any guidance is much appreciated.
Thanks in advance.

Expansion: UOR
Client: ClassicUO w/ Razor 7.0.88.1

Runebooknew.pngoldrunebook.png
Post automatically merged:

*****SOLVED*****

SOLUTION:


Using UOFiddler 4.6 I was able to find the GumpID for the spellicons (2271 for recall and 2291 for gate travel) and replace the ID of the little blue button to those.
I removed the lines following those two that read the words Recall and Gate Travel to keep that clean look.

Below is the line of code of my changes.

After changes
RunebookGump.cs:
                        AddButton(135 + (half * 160), 140, 2271, 2271, 50 + index, GumpButtonType.Reply, 0); //Spell Icon Gump button for Recall

                        AddButton(205 + (half * 160), 140, 2291, 2291, 100 + index, GumpButtonType.Reply, 0); // Spell Icon Gump button for Gate Travel

Before changes
RunebookGump.cs:
                        AddButton(135 + (half * 160), 140, 2103, 2104, 50 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 136, 110, 20, 1062722, false, false); // Recall

                        AddButton(135 + (half * 160), 158, 2103, 2104, 100 + index, GumpButtonType.Reply, 0);
                        AddHtmlLocalized(150 + (half * 160), 154, 110, 20, 1062723, false, false); // Gate Travel
Post automatically merged:


Post automatically merged:

runebookfinal.png
 

Attachments

  • runebookfinal.png
    runebookfinal.png
    85.7 KB · Views: 2
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back