[2.0-SVN] Lootable Trash Piles
Lootable Trash Piles
RunUO 2.0 or SVN
Based on the Lootable Treasure Piles script; modification suggested by Macil.
Description:
This script adds four Addons (without Deeds) which are decorative trash piles that produce loot for Players. Once added a Player stands within one tile of the treasure and double-clicks it. They will receive one or two bandages or kindling plus a chance of any one of over 100 random items plus a slim chance of a ring or bracelet or a low level rare item. Each Trash Pile remembers who received the loot and will not produce loot for that player again for 90 minutes (adjustable.)
Use:
Place this script in your Scripts\Custom folder and restart the server. Ingame, as a GM or better type [Add TrashPileSmall or [Add TrashPileMedium or [Add TrashPileLarge or [Add TrashPileXLarge. There are settings in Props for the chance a random item or a rare item will drop, the time delay before the pile is lootable again by that Player, and which (or none) sound will play when the pile is looted. Note that the percent chance is expressed as a number between 0 and 1, to have it produce a random item every time use .99999. There is a MaxUses property which defaults to zero. If MaxUses is anything other than zero the Trash Pile will be deleted when UsesCount equals MaxUses. There is also a setting to make the looter a criminal; there are no other qualifications to that so it works in any region and for any player. (Not sure why picking through a pile of trash would be a criminal act, but the option is there if you need it.)
Notes:
Updates:
First release.
Lootable Trash Piles
RunUO 2.0 or SVN
Based on the Lootable Treasure Piles script; modification suggested by Macil.
Description:
This script adds four Addons (without Deeds) which are decorative trash piles that produce loot for Players. Once added a Player stands within one tile of the treasure and double-clicks it. They will receive one or two bandages or kindling plus a chance of any one of over 100 random items plus a slim chance of a ring or bracelet or a low level rare item. Each Trash Pile remembers who received the loot and will not produce loot for that player again for 90 minutes (adjustable.)
Use:
Place this script in your Scripts\Custom folder and restart the server. Ingame, as a GM or better type [Add TrashPileSmall or [Add TrashPileMedium or [Add TrashPileLarge or [Add TrashPileXLarge. There are settings in Props for the chance a random item or a rare item will drop, the time delay before the pile is lootable again by that Player, and which (or none) sound will play when the pile is looted. Note that the percent chance is expressed as a number between 0 and 1, to have it produce a random item every time use .99999. There is a MaxUses property which defaults to zero. If MaxUses is anything other than zero the Trash Pile will be deleted when UsesCount equals MaxUses. There is also a setting to make the looter a criminal; there are no other qualifications to that so it works in any region and for any player. (Not sure why picking through a pile of trash would be a criminal act, but the option is there if you need it.)
Notes:
- Some of the decorative Items produced as random loot may not currently be available as Player owned items (Dirty Pot, Ruined Chair, Wood Debris, etc.) Those are standard RunUO Items and this script will hand them out to your Players. Please review the loot tables in the script to be sure they are appropriate for your shard.
- Each Player can only loot the pile once per time period. However many Players can loot the pile in a short time span. The (default) 90 minute delay applies to each Player individually.
- When a Player loots the pile they receive a message telling them what they have found.
- The list of Players who have looted the pile is not serialized. If the server is restarted the pile will be available again to anyone.
- For scriptors; this is based on the Lootable Treasure Piles script but uses a much improved loot generation process.
Updates:
First release.