#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
63
Scripts/Items/Addons/PyramidAddon.cs
Normal file
63
Scripts/Items/Addons/PyramidAddon.cs
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class PyramidAddon : BaseAddon
|
||||
{
|
||||
public override bool ShareHue
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public PyramidAddon()
|
||||
{
|
||||
AddComponent( new AddonComponent( 1006 ), 0, 0, 5 );
|
||||
|
||||
for ( int o = 1; o <= 2; ++o )
|
||||
{
|
||||
AddComponent( new AddonComponent( 1011 ), -o, -o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1012 ), +o, +o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1013 ), +o, -o, ( 2 - o ) * 5 );
|
||||
AddComponent( new AddonComponent( 1014 ), -o, +o, ( 2 - o ) * 5 );
|
||||
}
|
||||
|
||||
for ( int o = -1; o <= 1; ++o )
|
||||
{
|
||||
AddComponent( new AddonComponent( 1007 ), o, 2, 0 );
|
||||
AddComponent( new AddonComponent( 1008 ), 2, o, 0 );
|
||||
AddComponent( new AddonComponent( 1009 ), o, -2, 0 );
|
||||
AddComponent( new AddonComponent( 1010 ), -2, o, 0 );
|
||||
}
|
||||
|
||||
AddComponent( new AddonComponent( 1007 ), 0, 1, 5 );
|
||||
AddComponent( new AddonComponent( 1008 ), 1, 0, 5 );
|
||||
AddComponent( new AddonComponent( 1009 ), 0, -1, 5 );
|
||||
AddComponent( new AddonComponent( 1010 ), -1, 0, 5 );
|
||||
}
|
||||
|
||||
public PyramidAddon( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (byte) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadByte();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue