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

Allow Gargoyle to Ride Mounts 07/17/2018

Allow Gargoyle to Ride Mounts

  1. Joshua
    What this does is allow a gargoyle toon to ride mounts without glitching out and disappearing. This is done by using a bodymod and turning them into human (kind of) which the graphic exist for. When they remove the robe they go back to normal. Additionally to prevent future issues the script will also check at login if the toon is wearing the robe, if they are its kicked into their pack to prevent glitches. Also upon removal of the robe the toon is also kicked off the mount.

    Update: 7/17/2018: I've moved the LoginEventHandler to the ShroudOfTheEternalSteed script instead to prevent extra changes to other files.


    I will support what I can when i can. Just post and you shall 'eventually' be answered.

    Instructions -

    1) Put ShroudOfTheEternalSteed.cs into customs Folder

    2) Next Locate your BaseMount.cs and Add this to OnDoubleClick

    Code (C#):
    1.         public override void OnDoubleClick(Mobile from)
    2.         {
    3.             if (from.Race == Race.Gargoyle && from.IsPlayer())
    4.             {
    5.                 Item shroudeternal = from.FindItemOnLayer(Layer.OuterTorso);
    6.                 if (shroudeternal is ShroudOfTheEternalSteed)
    7.                     from.SendMessage("Your shroud allows you to mount ridable animals.");
    8.                 else
    9.                 {
    10.                     from.SendMessage("Your impressive wing span frightens the animal.");
    11.                     return;
    12.                 }
    13.             }
    14.          
    15.             if (this.IsDeadPet)
    16.                 return;

    3) And remove/comment out - this from On Double Click
    Code (C#):
    1.             if (from.Race == Race.Gargoyle && from.IsPlayer())
    2.             {
    3.                 from.SendLocalizedMessage(1112281);
    4.                 this.OnDisallowedRider(from);
    5.                 return;
    6.             }
    4) In BaseClothing.cs , Need to allow gargoyles to wear the clothing.
    Locate this line, around line 638 or so.
    Code (C#):
    1. if (from.Race == Race.Gargoyle && !this.CanBeWornByGargoyles)
    and below that make it look like this
    Code (C#):
    1.               if (from.Race == Race.Gargoyle && !this.CanBeWornByGargoyles)
    2.                 {
    3.                     //ENHANCEMENT//
    4.                     if (this is ShroudOfTheEternalSteed)
    5.                     {
    6.                     }
    7.                     else
    8.                     {
    9.                         from.SendLocalizedMessage(1111708); // Gargoyles can't wear this.
    10.                         return false;
    11.                     }
    12.                 }
    And you are done. Equip the robe to your gargoyle and try to mount your favorite horse ;)

Recent Updates

  1. Changed Fairy Clothing to Gargoyle Clothing