View Single Post
Old 06-22-2006, 11:59 PM   #5 (permalink)
Hanse the Insane
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 47
Posts: 199
Send a message via ICQ to Hanse the Insane
Default

Sorry about that, I am rather new at this, here is the code:

/* Made by Sommy for Splitterwelt.com
* Das Script darf frei benutzt werden solange der Header erhalten bleibt.
* Bei Feedback bitte mail an webmaster@sommys.com oder
* PM auf www.run-uo.de
* Date: 02.03.2005
* Version 1.0
* Honigwaben Schleuder
*/

using System;
using Server;
using Server.Items;
using Server.Network;
using Server.Scripts;


namespace Server.Items
{


public class HoneycombProcessingKettle : Item
{

[Constructable]
public HoneycombProcessingKettle() : base( 0x9ED )
{
Name = "Honeycomb Processing Kettle";
this.Weight = 10.0;
}


public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;

if( from.InRange( this.GetWorldLocation(), 1 ) )
{

if (pack != null && pack.ConsumeTotal( typeof( HoneyComb ), 1 ) )
{
from.SendMessage( "*You centrifuge the honeycomb and separate honey and wax*" );

{

from.AddToBackpack( new RawBeeswax() );
from.AddToBackpack( new JarHoney() );
}
}

else
{
from.SendMessage( "You need a honeycomb to use in this kettle" );
return;
}
}



else
{
from.SendMessage( "You are too far away from this" );
return;
}

}
public HoneycombProcessingKettle( 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();
}
}

}
Hanse the Insane is offline