ModernUO/Scripts/Engines/MLQuests/Items/NibbetSatchel.cs
eos 35fbffdb51 ML quest system; first SVN release.
Secondary changes:
- Region fixes, mainly for New Haven.
- Recipe system changes.
- Enabled ML craftables.
- Dyeing/cutting restrictions for quest items.
- Moved IsInvulnerable from BaseVendor to BaseCreature.
- Moved RandomBrightHue to Utility.
- Items no longer decay when attached to a spawner.
- Quest item hue is now faked through packets, instead of overriding Hue.
- Re-enabled item drag effects for SA clients.
- Fixed AssignRandomFacialHair bug in Utility.
- Added random hue comments to Utility.
2013-02-03 01:05:17 +00:00

49 lines
1.1 KiB
C#

using System;
using Server;
namespace Server.Items
{
public class NibbetSatchel : Backpack
{
[Constructable]
public NibbetSatchel()
{
Hue = Utility.RandomBrightHue();
DropItem( new TinkerTools() );
switch ( Utility.Random( 10 ) )
{
case 0: DropItem( new Springs( 3 ) ); break;
case 1: DropItem( new Axle( 3 ) ); break;
case 2: DropItem( new Hinge( 3 ) ); break;
case 3: DropItem( new Key() ); break;
case 4: DropItem( new Scissors() ); break;
case 5: DropItem( new BarrelTap( 3 ) ); break;
case 6: DropItem( new BarrelHoops() ); break;
case 7: DropItem( new Gears( 3 ) ); break;
case 8: DropItem( new Lockpick( 3 ) ); break;
case 9: DropItem( new ClockFrame( 3 ) ); break;
}
}
public NibbetSatchel( Serial serial )
: base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}