nhillsdonuk

Member
I want to completely remove this feature.

Whether that is removing the ability to use it or actually removing the property I'm not sure.

There is tonnes of insurance reference throughout the files, but I'm wondering what the "cleanest" way would be so that players simply can't insure items?

Cheers!

Nick
 
Take out the context menu entry in PlayerMobile for ToggleInsurance. Not sure if there is any other way to insure items. ;)
 
Go to scripts\Misc\CurrentExpansion.cs

Find:

C#:
Mobile.InsuranceEnabled = Core.AOS && !Siege.SiegeShard;

and replace it with:

C#:
Mobile.InsuranceEnabled = false;

This is the cleanest way to do it friend.
 
Go to scripts\Misc\CurrentExpansion.cs

Find:

C#:
Mobile.InsuranceEnabled = Core.AOS && !Siege.SiegeShard;

and replace it with:

C#:
Mobile.InsuranceEnabled = false;

This is the cleanest way to do it friend.

This way worked PERFECTLY! Removes context menu's automatically etc.

Thank you Tasanar :)
 
  • Like
Reactions: Dan
If you are using the newest repo it is now called ShardSettings

Scripts/Misc = ShardSettings.cs

Just change the true to false for insurance, if you want to disable it.
 
If you are using the newest repo it is now called ShardSettings

Scripts/Misc = ShardSettings.cs

Just change the true to false for insurance, if you want to disable it.
I ask this respectfully sorry for necroing an old post but where is this located now in current 58 pub as it is no longer in the ShardSettings.cs?

As this is how it looks now.

ShardSettings.cs:
using System;

namespace Server
{
    public static class ShardSettings
    {
        [CallPriority(Int32.MinValue)]
        public static void Configure()
        {
            Core.OnExpansionChanged += Invalidate;
            
            Invalidate();
        }

        public static void Invalidate()
        {
            if (Core.AOS)
            {
                Mobile.AOSStatusHandler = AOS.GetStatus;
            }
            else
            {
                Mobile.AOSStatusHandler = null;
            }
        }
    }
}
 
It is now located in Mobile.cs on the Server core. It reads InsuranceEnabled from the config file Loot.cfg.
Thank you so much Lokai i have been on the hunt for a couple days now and you came in to save the day!

Just a note for anyone else wondering this setting you will have to implement on your own it is not already in the loot.cfg!
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back