Item insurance has been added to the Distro.

Discussion about the development of POL's official distribution scripts.

Moderators: POL Developer, Distro Developer

Post Reply
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Item insurance has been added to the Distro.

Post by Yukiko »

For those not reading the core-changes.txt file, two new members for items have been added, cursed and insured. They can either be set to 1 or 0.

I have pushed the item insurance system to the Distro.

A very special thanks to ThisIsMe, The Gump Guru, for writing the insurance menu gump.

There are two ways of insuring items.

1. You can toggle insurance on items by single left-clicking on your in-game character to bring up the context menu and select Toggle Item Insurance. You will receive a persistent target. Target items to either insure an item, or if they are already insured, uninsure the item. A player must have enough gold in their bank to insure an item. As an item is insured, the cost for that item will be deducted from their bank. If they uninsure an item

2. You can open the insure item menu by entering the command .insurancemenu. This gump will list all insurable items equipped and in the top level of your backpack. Normally this would be done from the popup menu but there is an issue with the way the popup menu packet is implemented in the Core. ThisIsMe is working with Turley, and eventually, probably Kevin, to correct the issue.

Only equipped items and items in the main backpack can be insured. Containers, with the exception of quivers, cannot be insured. Stackable items cannot be insured. Cursed items cannot be insured.

The cost of insuring an item, according to uoguide.com and uo.com, "is a percentage" of the price for which a vendor sells the item. Currently, the cost is set to 75% of the vendor sell price. The percentage can be changed in /mobiles/insurance/config/settings.cfg.

Code: Select all

Elem Settings
{
	# InsuranceRate	is the percentage of the items VendorSellsFor price.
	# A rate of 1.0 indicates the rate is equal to the VendorSellsFor price.
	# A rate of 0.75 indicates the rate is equal to 75% of the VendorSellsFor price.
	InsuranceRate	0.75
}
I have updated the mega cliloc packet hook to display cursed and insured items.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Item insurance has been added to the Distro.

Post by Yukiko »

I pushed some updates and improvements to the item insurance system. With Turley's addition of support for the new popup menu packet, you can now access the item insurance menu from the player popup menu. Thanks Turley. :)
Post Reply