#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
8eae46895e
7512 changed files with 416187 additions and 0 deletions
70
Scripts/Items/Addons/WaterTroughSouthAddon.cs
Normal file
70
Scripts/Items/Addons/WaterTroughSouthAddon.cs
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class WaterTroughSouthAddon : BaseAddon, IWaterSource
|
||||
{
|
||||
public override BaseAddonDeed Deed{ get{ return new WaterTroughSouthDeed(); } }
|
||||
|
||||
[Constructable]
|
||||
public WaterTroughSouthAddon()
|
||||
{
|
||||
AddComponent( new AddonComponent( 0xB43 ), 0, 0, 0 );
|
||||
AddComponent( new AddonComponent( 0xB44 ), 1, 0, 0 );
|
||||
}
|
||||
|
||||
public WaterTroughSouthAddon( 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();
|
||||
}
|
||||
|
||||
public int Quantity
|
||||
{
|
||||
get{ return 500; }
|
||||
set{}
|
||||
}
|
||||
}
|
||||
|
||||
public class WaterTroughSouthDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon{ get{ return new WaterTroughSouthAddon(); } }
|
||||
public override int LabelNumber{ get{ return 1044350; } } // water trough (south)
|
||||
|
||||
[Constructable]
|
||||
public WaterTroughSouthDeed()
|
||||
{
|
||||
}
|
||||
|
||||
public WaterTroughSouthDeed( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue