Shadow_2004
Wanderer
Exchange Stone
Im getting problems i want to exchange a ring you get from a quest to a horse in return but it is not working can you show me whats wrong please
thx
Im getting problems i want to exchange a ring you get from a quest to a horse in return but it is not working can you show me whats wrong please
Code:
using System;
using Server.Items;
namespace Server.Items
{
[Serializable()]
public class Qone : Item
{
[Constructable]
public Qone() : base( 0xED4 )
{
Movable = True;
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 ( pack != null && pack.ConsumeItem( Qoner ) ) ;
{
from.Backpack.AddItem( new Shadowhorse(1) );
((Mobile)from).SendMessage("You Exchange The Ring For The Horse.");
}
else
((Mobile)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();
}
}
}
thx