1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Overriding Paperdoll Buttons - Help button, etc

Discussion in 'General Discussion' started by zerodowned, May 2, 2016.

  1. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    I recall a script [ on RunUo ] that allowed overriding buttons on the Paperdoll, like creating a customer Help system.
    Can't seem to find it on RunUo or here now, does anyone remember this script?
     
  2. Boldunum
    Offline

    Boldunum Member

    Joined:
    Aug 3, 2015
    Messages:
    31
    Likes Received:
    2
    Look in Scripts\Engines\Help\HelpGump.cs
    Then on line 55

    EventSink.HelpRequest += new HelpRequestEventHandler( EventSink_HelpRequest );

    Just remove that handler and create your own.

    EDIT: don't know anything about the script tho
     
    • Like Like x 1
  3. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    Oh, right, an evenksink.
    I thought there was a way to override the packet for a paperdoll button though and there isn't an eventsink for every button
     
  4. Lokai
    Offline

    Moderator ServUO Developer

    Joined:
    Dec 4, 2014
    Messages:
    895
    Likes Received:
    137
    I played around with the Skills button for my Custom Skills system. For that I simply hooked into the method in PlayerMobile that fetches the Skills gump. Yes, not everything has an EventSink, but most things can be found one place or another. I am guessing that the Guild button might be the same. As for Help, Boldunum is correct.
     
    • Like Like x 1
  5. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    Sorry, forgot to post an update. Was able to find most paperdoll buttons in eventsink

    ChatRequestEventHandler
    VirtueGumpRequestEventHandler
    HelpRequestEventHandler
    LogoutEventHandler
    GuildGumpRequestHandler
     
  6. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    @zerodowned
    I see those are the calls when the buttons are pressed...did you happen to find anything that would let you change any of the buttons (moving them around perhaps), besides just changing the gump images?
    The Party Manifest button is in a terrible position (mostly blocked by robes/cloaks, and a foot), and I was hoping to moving it somewhere else on the paperdoll, or "block" it and add a new button.
     
  7. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    unfortunately not, it seems to be hard coded into the client.

    I see in EC you can use a context menu on other players to add them to the part; so you could use that for CC too.
    But as for a workaround to get to the party system menu like you mentioned...I'm not sure other than seeing if there's another cliloc that would work and add it the player's self-context options?
     
    • Informative Informative x 1
  8. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    Alright, so if that is the case...I think I know a way to skin this cat LOL
    Stay tuned... ;)

    EDIT:
    Well, since there is no call to the Party Manifest, there is no way I can see to switch it to another button. I was thinking I could replace the Peace/War button with Party, but I can't get it to open the Party Manifest.
     
    #8 tass23, Feb 18, 2017
    Last edited: Feb 18, 2017
  9. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    well, poo...
    was hoping that it could be called with something like this, but it doesn't work either.

    maybe send Broadsword devs a suggestion to move the party manifest scroll on the paperdoll? you can't be the only one who's bothered by it

    or you could just clone the party manifest gump by coding one yourself

    Code (C#):
    1. public static void Party_OnCommand( CommandEventArgs e )
    2.         {      
    3.             Party p = Party.Get(e.Mobile);
    4.          
    5.             if (p == null)
    6.                 e.Mobile.Party = p = new Party(e.Mobile);
    7.              
    8.             e.Mobile.Send(new PartyMemberList(p));
    9.         }
     
  10. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,592
    Likes Received:
    186
    this is about as close as I can get to cloning it, everything but the font; but I can use the hex code shown there for the grey color and probably the lighter shadow

    edit: the text on top is a little low

    upload_2017-2-18_8-47-50.png
     
  11. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    Yeah, I can build a new one, it's just accessing it currently is not...I don't want to say convenient, or difficult...but I would certainly say "hidden", thanks, dude :)
     
Similar Threads: Overriding Paperdoll
Forum Title Date
Script Support Overriding paperdoll quest gump Feb 21, 2017
Script Support Combat System - Overriding Mar 11, 2013
Script Support Paperdoll Avatar Yesterday at 6:56 AM
Script Support New Body Race in Paperdoll Jun 9, 2016
Custom Releases Updated paperdoll.php Feb 1, 2015
Tutorials Paperdoll gumpid override Jan 20, 2015
Script Support Paperdoll gumpid override Jan 15, 2015