WonderlandADnc
Wanderer
yea we have it. its works. i now need to test on others, that it works on all. other then that. its the int bit. pretty please dont give up.
---------------EDIT------------------------------
this is what i have tred with the int
Code:
using System;
namespace Server.Items
{
[FlipableAttribute( 0x99F, 0x99F )]
public class DrinkMe : Item
{
// int hi = 0; //
[Constructable]
public DrinkMe() : base( 0x99F )
{
Name = "Drink Me!";
this.Weight = 0.1;
}
public DrinkMe( Serial serial ) : base( serial )
{
}
public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;
if (pack != null && pack.ConsumeTotal( typeof( DrinkMe ), 1 ) )
from.SendMessage( "You drink the liquid and feel small enough to fit throught the door!" );
from.PlaySound( 0x2D6 );
from.Say( "*Hic*" );
}
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();
}
}
}
---------------EDIT------------------------------
this is what i have tred with the int
Code:
public MWMushroom2( Serial serial ) : base( serial )
{
public virtual bool Apply( Mobile from )
{
public override int Bonus{ get{ return 25; } }
public override StatType Type{ get{ return StatType.Int; } }
int Bonus( get; )
StatType Type( get; )
}
public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;
if (pack != null && pack.ConsumeTotal( typeof( MWMushroom2 ), 1 ) )
from.SendMessage( "You pick a piece." );
from.SendMessage( "And eat the mushroom and feel bigger!" );
from.PlaySound( 0x3c );
}
public override void Serialize( GenericWriter writer )