public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( "The Evil Mage Ring for The Shadow Horse");
}
public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;
if ( from.Backpack.ConsumeTotal( typeof( Qoner ), 1 ) )
{
Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ) );
from.SendMessage("You Exchange The Ring For The Horse.");
}
else
{
from.SendMessage("You do not have The Ring.");
}
}
etherkye said:change toCode:Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ) );
Code:Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ));
using System;
using Server.Items;
using Server.Mobiles;
namespace Server.Items
{
[Serializable()]
public class Qone : Item
{
[Constructable]
public Qone() : base( 0xED4 )
{
Movable = false;
Hue = 0x85;
Name = "A Quest 1 Exchange Stone";
}
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
list.Add( "The Evil Mage Ring for The Shadow Horse");
}
public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;
if ( from.Backpack.ConsumeTotal( typeof( Qoner ), 1 ) )
{
Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ));
from.SendMessage("You Exchange The Ring For The Horse.");
}
else
{
from.SendMessage("You do not have The Ring.");
}
}
public Qone( 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();
}
}
}
Add( new AnimalBuyInfo( 1, typeof( Horse ), 602, 10, 204, 0 ) );
Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ) );
if ( from.Backpack.ConsumeTotal( typeof( Qoner ), 1 ) )
{
Add( new AnimalBuyInfo( 1, typeof( ShadowHorse ), ));
from.SendMessage("You Exchange The Ring For The Horse.");
}
if ( from.Backpack.ConsumeTotal( typeof( Qoner ), 1 ) )
{
BaseCreature horse = new ShadowHorse();
horse.MoveToWorld( from.Location, from.Map );
horse.Controled = true;
horse.ControlMaster = from;
from.SendMessage("You Exchange The Ring For The Horse.");
}