#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
8eae46895e
7512 changed files with 416187 additions and 0 deletions
31
Scripts/Items/Construction/Signs/BaseSign.cs
Normal file
31
Scripts/Items/Construction/Signs/BaseSign.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseSign : Item
|
||||
{
|
||||
public BaseSign( int dispID ) : base( dispID )
|
||||
{
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public BaseSign( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 1 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
56
Scripts/Items/Construction/Signs/LocalizedSign.cs
Normal file
56
Scripts/Items/Construction/Signs/LocalizedSign.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class LocalizedSign : Sign
|
||||
{
|
||||
private int m_LabelNumber;
|
||||
|
||||
public override int LabelNumber{ get{ return m_LabelNumber; } }
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Number{ get{ return m_LabelNumber; } set{ m_LabelNumber = value; InvalidateProperties(); } }
|
||||
|
||||
[Constructable]
|
||||
public LocalizedSign( SignType type, SignFacing facing, int labelNumber ) : base( ( 0xB95 + (2 * (int)type) ) + (int)facing )
|
||||
{
|
||||
m_LabelNumber = labelNumber;
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public LocalizedSign( int itemID, int labelNumber ) : base( itemID )
|
||||
{
|
||||
m_LabelNumber = labelNumber;
|
||||
}
|
||||
|
||||
public LocalizedSign( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
|
||||
writer.Write( m_LabelNumber );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
switch ( version )
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
m_LabelNumber = reader.ReadInt();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
107
Scripts/Items/Construction/Signs/Sign.cs
Normal file
107
Scripts/Items/Construction/Signs/Sign.cs
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public enum SignFacing
|
||||
{
|
||||
North,
|
||||
West
|
||||
}
|
||||
|
||||
public enum SignType
|
||||
{
|
||||
Library,
|
||||
DarkWoodenPost,
|
||||
LightWoodenPost,
|
||||
MetalPostC,
|
||||
MetalPostB,
|
||||
MetalPostA,
|
||||
MetalPost,
|
||||
Bakery,
|
||||
Tailor,
|
||||
Tinker,
|
||||
Butcher,
|
||||
Healer,
|
||||
Mage,
|
||||
Woodworker,
|
||||
Customs,
|
||||
Inn,
|
||||
Shipwright,
|
||||
Stables,
|
||||
BarberShop,
|
||||
Bard,
|
||||
Fletcher,
|
||||
Armourer,
|
||||
Jeweler,
|
||||
Tavern,
|
||||
ReagentShop,
|
||||
Blacksmith,
|
||||
Painter,
|
||||
Provisioner,
|
||||
Bowyer,
|
||||
WoodenSign,
|
||||
BrassSign,
|
||||
ArmamentsGuild,
|
||||
ArmourersGuild,
|
||||
BlacksmithsGuild,
|
||||
WeaponsGuild,
|
||||
BardicGuild,
|
||||
BartersGuild,
|
||||
ProvisionersGuild,
|
||||
TradersGuild,
|
||||
CooksGuild,
|
||||
HealersGuild,
|
||||
MagesGuild,
|
||||
SorcerersGuild,
|
||||
IllusionistGuild,
|
||||
MinersGuild,
|
||||
ArchersGuild,
|
||||
SeamensGuild,
|
||||
FishermensGuild,
|
||||
SailorsGuild,
|
||||
ShipwrightsGuild,
|
||||
TailorsGuild,
|
||||
ThievesGuild,
|
||||
RoguesGuild,
|
||||
AssassinsGuild,
|
||||
TinkersGuild,
|
||||
WarriorsGuild,
|
||||
CavalryGuild,
|
||||
FightersGuild,
|
||||
MerchantsGuild,
|
||||
Inns,
|
||||
Theatre
|
||||
}
|
||||
|
||||
public class Sign : BaseSign
|
||||
{
|
||||
[Constructable]
|
||||
public Sign( SignType type, SignFacing facing ) : base( ( 0xB95 + (2 * (int)type) ) + (int)facing )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public Sign( int itemID ) : base( itemID )
|
||||
{
|
||||
}
|
||||
|
||||
public Sign( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue