XxSP1DERxX said:EDIT: Damn you Packer! You beat me to it.... oh well
Muhahaha
XxSP1DERxX said:EDIT: Damn you Packer! You beat me to it.... oh well
BaseMagicFish : Item, IEntity, IPoint3D, IPoint2D, IHued
Derived Types: PeculiarFish, PrizedFish, TrulyRareFish, WondrousFish
(ctor) BaseMagicFish( Serial serial )
(ctor) BaseMagicFish( int hue )
int Bonus( get; )
StatType Type( get; )
virtual bool Apply( Mobile from )
virtual void Deserialize( GenericReader reader )
virtual void OnDoubleClick( Mobile from )
virtual void Serialize( GenericWriter writer )
public override int Bonus{ get{ return 5; } }
public override StatType Type{ get{ return StatType.Int; } }
int Bonus( get; )
StatType Type( get; )
public class PrizedFish : BaseMagicFish
{
int version = reader.ReadInt();
WonderlandADnc said:emmmmmmmmmm
Code:public class PrizedFish : BaseMagicFish {
Code:int version = reader.ReadInt();
public virtual bool Apply( Mobile from )
or.......
public override void OnDoubleClick( Mobile from )
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 ) )
{
if ( from.Body.IsHuman && !from.Mounted )
{
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();
}
}
}
Explain please.WonderlandADnc said:can someone plese look at this
it not got the int on it. as i cant sort it out/
but its the working one.
but when u add it.
it says nothing. but then i try another char and it do.
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 );
[B]{[/B]
from.Say( "*" + "Hic" + "*" );
[B]}[/B]
WonderlandADnc said:the bold bits i dont understand sorry.
public override void OnDoubleClick( Mobile from )
{
Container pack = from.Backpack;
if (pack != null && pack.ConsumeTotal( typeof( DrinkMe ), 1 ) )
{
{[COLOR="Red"]<--- what is this for?[/COLOR]
from.SendMessage( "You drink the liquid and feel small enough to fit throught the door!" );
from.PlaySound( 0x2D6 );
{[COLOR="red"]<-- Why do you need this?[/COLOR]
from.Say( "*" + "Hic" + "*" );
}[COLOR="red"]<-- Why do you need this?[/COLOR]
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 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*" );
}
}
}
}
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (3 errors, 0 warnings)
- Error: Scripts\Customs\fortowns\AlicesWon\DrinkMe.cs: CS1518: (line 34, colum
n 19) Expected class, delegate, enum, interface, or struct
- Error: Scripts\Customs\fortowns\AlicesWon\DrinkMe.cs: CS1518: (line 40, colum
n 19) Expected class, delegate, enum, interface, or struct
- Error: Scripts\Customs\fortowns\AlicesWon\DrinkMe.cs: CS1022: (line 45, colum
n 2) Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.