Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 12-23-2007, 06:41 AM   #1 (permalink)
Forum Novice
 
Join Date: May 2006
Location: Israel
Age: 23
Posts: 142
Default How to disable insurance on a pre AOS server?

Hey.
I just decided to go with a pre AOS server and set the currentexpansion to None.
Now, before that in the same files I had the following configuration:
Code:
			Mobile.InsuranceEnabled = !Enabled;
			ObjectPropertyList.Enabled = !Enabled;
			Mobile.VisibleDamageType = !Enabled ? VisibleDamageType.Related : VisibleDamageType.None;
			Mobile.GuildClickMessage = !Enabled;
			Mobile.AsciiClickMessage = !Enabled;
As you may see it shows that all the insurance stuff is disabled. It worked pretty well with the highest expansion but as I set the

Code:
private static readonly Expansion Expansion = Expansion.None;
to None, insurance options were once again there.
How do I solve it?
Lord Northern is offline   Reply With Quote
Old 12-23-2007, 09:21 AM   #2 (permalink)
Forum Expert
 
jaynigs's Avatar
 
Join Date: Mar 2003
Location: England
Age: 35
Posts: 986
Default

Can't help your fully here, as i dont have any server scripts to hand, but this code snippet you posted isn't the right code you need to find.

Code:
Mobile.InsuranceEnabled = !Enabled;
ObjectPropertyList.Enabled = !Enabled;
Mobile.VisibleDamageType = !Enabled ? VisibleDamageType.Related : VisibleDamageType.None;
Mobile.GuildClickMessage = !Enabled;
Mobile.AsciiClickMessage = !Enabled;

From memory, i think the insurance is checked in mobile or playermobile and has an expansion check before it is enabled.
jaynigs is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5