Init Upload
This commit is contained in:
45
Example/ExampleRaceGate.cs
Normal file
45
Example/ExampleRaceGate.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ExampleRaceGate : Item
|
||||
{
|
||||
[Constructable]
|
||||
public ExampleRaceGate() : base(0xF6C)
|
||||
{
|
||||
Movable = false;
|
||||
Light = LightType.Circle300;
|
||||
Hue = 0;
|
||||
Name = "Example Race Gate";
|
||||
}
|
||||
|
||||
public ExampleRaceGate(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int) 0);
|
||||
}
|
||||
|
||||
public override bool OnMoveOver( Mobile m )
|
||||
{
|
||||
m.SendMessage( "Example Message" );
|
||||
m.Hue = 1453;
|
||||
m.Title = "Example Title";
|
||||
m.Location = new Point3D(1455, 1568, 30);
|
||||
m.AddToBackpack( new ExampleShiftTalisman() );
|
||||
World.Broadcast( 0x35, true, "Example Message" );
|
||||
return false; //Changed this to false
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Example/ExampleRaceTile.cs
Normal file
45
Example/ExampleRaceTile.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ExampleRaceTile : Item
|
||||
{
|
||||
[Constructable]
|
||||
public ExampleRaceTile() : base(6178)
|
||||
{
|
||||
Movable = false;
|
||||
Light = LightType.Circle300;
|
||||
Hue = 0;
|
||||
Name = "Example Race Tile";
|
||||
}
|
||||
|
||||
public ExampleRaceTile(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int) 0);
|
||||
}
|
||||
|
||||
public override bool OnMoveOver( Mobile m )
|
||||
{
|
||||
m.SendMessage( "Example Message" );
|
||||
m.Hue = 1453;
|
||||
m.Title = "Example Title";
|
||||
m.Location = new Point3D(1455, 1568, 30);
|
||||
m.AddToBackpack( new ExampleShiftTalisman() );
|
||||
World.Broadcast( 0x35, true, "Example Message" );
|
||||
return false; //Changed this to false
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
84
Example/ExampleShiftOrb.cs
Normal file
84
Example/ExampleShiftOrb.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ExampleShiftOrb : Item
|
||||
{
|
||||
[Constructable]
|
||||
public ExampleShiftOrb() : base( 22334 )
|
||||
{
|
||||
Movable = true;
|
||||
Hue = 0;
|
||||
Name = "A Example Shapeshift Orb";
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
|
||||
public ExampleShiftOrb( 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();
|
||||
}
|
||||
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( from.Mounted == true )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042561 );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
||||
{
|
||||
from.BodyMod = 58;
|
||||
from.HueMod = 0x0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (from.Female == true )
|
||||
{
|
||||
from.BodyMod = 401;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
from.BodyMod = 400;
|
||||
from.HueMod = -1;
|
||||
|
||||
|
||||
}
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
84
Example/ExampleShiftTalisman.cs
Normal file
84
Example/ExampleShiftTalisman.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ExampleShiftTalisman : BaseTalisman
|
||||
{
|
||||
[Constructable]
|
||||
public ExampleShiftTalisman() : base( 12121 )
|
||||
{
|
||||
Movable = true;
|
||||
Hue = 0;
|
||||
Name = "A Example Shapeshift Talisman";
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
|
||||
public ExampleShiftTalisman( 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();
|
||||
}
|
||||
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
||||
{
|
||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( from.Mounted == true )
|
||||
{
|
||||
from.SendLocalizedMessage( 1042561 );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
||||
{
|
||||
from.BodyMod = 58;
|
||||
from.HueMod = 0x0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (from.Female == true )
|
||||
{
|
||||
from.BodyMod = 401;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
from.BodyMod = 400;
|
||||
from.HueMod = -1;
|
||||
|
||||
|
||||
}
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user