Rochaven
Initiate
Does anyone see why this box isn't clicky? The quest goes that as you get a item in your pack, you double click the box and then the newly acquired item. After you you have combined three required items, you take box back to npc and receive reward. The box isn't let me me double click on it. When i open the file i see several "null" at the start and wonder if its right. This quest isn't mine , was given to me third party so no idea who or where it comes from.
using System;
using Server;
using Server.Gumps;
using Server.Network;
using System.Collections;
using Server.Multis;
using Server.Mobiles;
namespace Server.Items
{
public class AncientJewelryBox : Item
{
[Constructable]
public AncientJewelryBox() : this( null )
{
}
[Constructable]
public AncientJewelryBox ( string name ) : base ( 0x9A8 )
{
Name = "Ancient Jewelry Box";
LootType = LootType.Blessed;
Hue = 1288;
}
public AncientJewelryBox ( Serial serial ) : base ( serial )
{
}
public override void OnDoubleClick( Mobile m )
{
Item a = m.Backpack.FindItemByType( typeof(ArrianasDiamond) );
if ( a != null )
{
Item b = m.Backpack.FindItemByType( typeof(ArrianasClips) );
if ( b != null )
{
Item c = m.Backpack.FindItemByType( typeof(ArrianasHoops) );
if ( c != null )
{
m.AddToBackpack( new DiamondHoopEarrings() );
a.Delete();
b.Delete();
c.Delete();
m.SendMessage( "You Combine the knowledge of Arriana's ancestry into a Heirloom" );
this.Delete();
}
}
else
{
m.SendMessage( "You are missing something..." );
}
}
}
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();
}
}
}
using Server;
using Server.Gumps;
using Server.Network;
using System.Collections;
using Server.Multis;
using Server.Mobiles;
namespace Server.Items
{
public class AncientJewelryBox : Item
{
[Constructable]
public AncientJewelryBox() : this( null )
{
}
[Constructable]
public AncientJewelryBox ( string name ) : base ( 0x9A8 )
{
Name = "Ancient Jewelry Box";
LootType = LootType.Blessed;
Hue = 1288;
}
public AncientJewelryBox ( Serial serial ) : base ( serial )
{
}
public override void OnDoubleClick( Mobile m )
{
Item a = m.Backpack.FindItemByType( typeof(ArrianasDiamond) );
if ( a != null )
{
Item b = m.Backpack.FindItemByType( typeof(ArrianasClips) );
if ( b != null )
{
Item c = m.Backpack.FindItemByType( typeof(ArrianasHoops) );
if ( c != null )
{
m.AddToBackpack( new DiamondHoopEarrings() );
a.Delete();
b.Delete();
c.Delete();
m.SendMessage( "You Combine the knowledge of Arriana's ancestry into a Heirloom" );
this.Delete();
}
}
else
{
m.SendMessage( "You are missing something..." );
}
}
}
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();
}
}
}
Last edited: