RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Vampire monster problem!

daat99

Moderator
Staff member
There's a method that set it to always murderer, check the master of the arts scripts it should be inside it (and I know that you have it already ;) ).
Don't remember the exact method off hand tho.
 

daat99

Moderator
Staff member
I don't think that you can limit it to cast spells from circles 3-6 without making a new ai for it to use.

What you mean about random chance on rare ?
 

daat99

Moderator
Staff member
Check how it decide on which runic to drop on the loot.
to get 10% you need to make the switch (10xitems)
that means if you have 2 items you need switch(20) to get 10% to get 1 of them.
 

Whooper7777

Wanderer
omg

What the Fu*** problem now is 73 errors i just tried to do two another vampires:
Code:
Scripts: Compiling C# scripts...failed (73 errors, 0 warnings)
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\Vampire.cs: CS1513: (line 49,
column 29) } expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
11, column 10) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1002: (line
11, column 24) ; expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
11, column 46) Invalid token ',' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
11, column 65) Invalid token ',' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
13, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
14, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
15, column 16) Invalid token '=' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
16, column 8) Invalid token '=' in class, struct, or interface member declaratio
n
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
18, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
18, column 12) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
19, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
19, column 12) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
20, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
20, column 12) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
22, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
22, column 13) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
24, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
24, column 15) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
26, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
26, column 42) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
26, column 44) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
27, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
27, column 38) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
27, column 40) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
28, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
28, column 40) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
28, column 42) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
30, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
30, column 42) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
30, column 44) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
31, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
31, column 38) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
31, column 40) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
32, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
32, column 38) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
32, column 40) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
33, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
33, column 40) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
33, column 42) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
34, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
34, column 40) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
34, column 42) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
36, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
36, column 31) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
36, column 33) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
37, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
37, column 30) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
37, column 32) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
38, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
38, column 34) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
38, column 36) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
39, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
39, column 33) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
39, column 35) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
40, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
40, column 35) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
40, column 37) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
41, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
41, column 31) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
41, column 33) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
42, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
42, column 33) Identifier expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
42, column 35) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
44, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
45, column 10) Invalid token '=' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
47, column 17) Invalid token '=' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
49, column 4) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
49, column 18) Type expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
62, column 10) Class, struct, or interface method must have a return type
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1002: (line
62, column 39) ; expected
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
62, column 54) Invalid token ')' in class, struct, or interface member declarati
on
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireSlave.cs: CS1513: (line
 49, column 29) } expected
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
here is scripts:
1st VampireLord.cs
Code:
using System;
using Server;
using Server.Items;

namespace Server.Mobiles
{
	[CorpseName( "an vampire Lord's corpse" )]
	public class VampireKing : BaseCreature
	{
		[Constructable]
		public VampireLord() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "Vampire King";
			Body = 0x3CA;
			BaseSoundID = 0x482;
			Hue = 2847;

			SetStr( 342, 453 );
			SetDex( 115, 145 );
			SetInt( 545, 876 );

			SetHits( 1000, 1600 );

			SetDamage( 47, 69 );

			SetDamageType( ResistanceType.Physical, 30 );
			SetDamageType( ResistanceType.Cold, 40 );
			SetDamageType( ResistanceType.Energy, 40 );

			SetResistance( ResistanceType.Physical, 55, 65 );
			SetResistance( ResistanceType.Fire, 25, 30 );
			SetResistance( ResistanceType.Cold, 50, 60 );
			SetResistance( ResistanceType.Poison, 50, 60 );
			SetResistance( ResistanceType.Energy, 25, 30 );

			SetSkill( SkillName.EvalInt, 120.1, 130.0 );
			SetSkill( SkillName.Magery, 120.1, 150.0 );
			SetSkill( SkillName.Meditation, 100.1, 101.0 );
			SetSkill( SkillName.Poisoning, 110.1, 120.0 );
			SetSkill( SkillName.MagicResist, 200.2, 300.0 );
			SetSkill( SkillName.Tactics, 140.1, 212.0 );
			SetSkill( SkillName.Wrestling, 111.1, 134.0 );

			Fame = 23000;
			Karma = -23000;

			VirtualArmor = 70;

			PackNecroReg( 150, 200 );

		public override void GenerateLoot()
		{
			AddLoot( LootPack.SuperBoss, 3 );
			AddLoot( LootPack.MedScrolls, 2 );
		}

		public override bool Unprovokable{ get{ return true; } }
		public override bool AlwaysMurderer{ get{ return true; } }
		public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
		public override int TreasureMapLevel{ get{ return 5; } }

		public VampireLord( Serial serial ) : base( serial )
		{
		}
    
		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();
		}
	}
}
and VampireSlave.cs
Code:
using System;
using Server;
using Server.Items;

namespace Server.Mobiles
{
	[CorpseName( "an vampire Slave's corpse" )]
	public class VampireSlave : BaseCreature
	{
		[Constructable]
		public VampireSlave() : base( AIType.AI_Meelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "Vampire Guard";
			Body = 0x3CA;
			BaseSoundID = 0x482;
			Hue = 2780;

			SetStr( 87, 137 );
			SetDex( 96, 115 );
			SetInt( 545, 876 );

			SetHits( 560, 595 );

			SetDamage( 15, 27 );

			SetDamageType( ResistanceType.Physical, 20 );
			SetDamageType( ResistanceType.Cold, 40 );
			SetDamageType( ResistanceType.Energy, 40 );

			SetResistance( ResistanceType.Physical, 55, 65 );
			SetResistance( ResistanceType.Fire, 25, 30 );
			SetResistance( ResistanceType.Cold, 50, 60 );
			SetResistance( ResistanceType.Poison, 50, 60 );
			SetResistance( ResistanceType.Energy, 25, 30 );

			SetSkill( SkillName.EvalInt, 87.1, 130.0 );
			SetSkill( SkillName.Magery, 67.1, 130.0 );
			SetSkill( SkillName.Meditation, 56.1, 101.0 );
			SetSkill( SkillName.Poisoning, 100.1, 101.0 );
			SetSkill( SkillName.MagicResist, 175.2, 200.0 );
			SetSkill( SkillName.Tactics, 90.1, 100.0 );
			SetSkill( SkillName.Wrestling, 75.1, 100.0 );

			Fame = 23000;
			Karma = -23000;

			VirtualArmor = 60;

			PackNecroReg( 150, 200 );

		public override void GenerateLoot()
		{
			AddLoot( LootPack.FilthyRich, 3 );
			AddLoot( LootPack.MedScrolls, 2 );
		}

		public override bool Unprovokable{ get{ return true; } }
		public override bool AlwaysMurderer{ get{ return true; } }
		public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
		public override int TreasureMapLevel{ get{ return 5; } }

		public VampireSlave( Serial serial ) : base( serial )
		{
		}
    
		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();
		}
	}
}
 

daat99

Moderator
Staff member
Read your first error:
Code:
 - Error: Scripts\Mobiles\Monsters\Humanoid\Magic\Vampire.cs  : CS1513: (line 49,
column 29) [color=red]} expected[/color]

Fix that and read the rest of the errors and fix acordingly.
When you shrink the errors a bit (just try it several times) post again if you still need help.
 

Whooper7777

Wanderer
im not good at englihs and i cant get rid of those errors pppllz help meee here is Vampire.cs
Code:
using System;
using Server;
using Server.Items;

namespace Server.Mobiles
{
	[CorpseName( "an vampire's corpse" )]
	public class Vampire : BaseCreature
	{
		[Constructable]
		public Vampire() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "Vampire";
			Body = 0x3CA;
			BaseSoundID = 0x482;
			Hue = 2708;

			SetStr( 145, 234 );
			SetDex( 96, 115 );
			SetInt( 545, 876 );

			SetHits( 560, 595 );

			SetDamage( 15, 27 );

			SetDamageType( ResistanceType.Physical, 20 );
			SetDamageType( ResistanceType.Cold, 40 );
			SetDamageType( ResistanceType.Energy, 40 );

			SetResistance( ResistanceType.Physical, 55, 65 );
			SetResistance( ResistanceType.Fire, 25, 30 );
			SetResistance( ResistanceType.Cold, 50, 60 );
			SetResistance( ResistanceType.Poison, 50, 60 );
			SetResistance( ResistanceType.Energy, 25, 30 );

			SetSkill( SkillName.EvalInt, 120.1, 130.0 );
			SetSkill( SkillName.Magery, 120.1, 130.0 );
			SetSkill( SkillName.Meditation, 100.1, 101.0 );
			SetSkill( SkillName.Poisoning, 100.1, 101.0 );
			SetSkill( SkillName.MagicResist, 175.2, 200.0 );
			SetSkill( SkillName.Tactics, 90.1, 100.0 );
			SetSkill( SkillName.Wrestling, 75.1, 100.0 );

			Fame = 23000;
			Karma = -23000;

			VirtualArmor = 60;

			PackNecroReg( 150, 200 );

		public override void GenerateLoot()
		{
			AddLoot( LootPack.UltraRich, 3 );
			AddLoot( LootPack.MedScrolls, 2 );
		}

		public override bool Unprovokable{ get{ return true; } }
		public override bool AlwaysMurderer{ get{ return true; } }
		public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
		public override int TreasureMapLevel{ get{ return 5; } }

		public Vampire( Serial serial ) : base( serial )
		{
		}
    
		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();
		}
	}
}
 

daat99

Moderator
Staff member
This is the most basic and common error and you need to learn to fix it if you want to script stuff.

Basically every openning brace { need 1 (and ONLY 1) closing bracer }

The error said that you missed some bracers so look through the code especially in the lines where you get errors and add the bracers that you missed.

If you can't fix this basic error then you realy think to read tutorials a bit more. it isn't personal and it isn't that I don't want to help you but you won't learn if I keep fixing those for you.

So keep trying and I realy hope that you'll manage to fix it.
 

Murzin

Knight
how do make it have a chance to drop something?

Code:
			if (Utility.Random( 15 ) == 1 )
			{
				PackItem( new SwordofValor() );
			}

change the utility.random( 15 ) to 10, and change the 1 to a like 2 or 3.

then change the SwordofValor() to what you want it to drop.

it is never a good idea to set the chance to drop at either end of the possible outcome because from what i can tell the random number generator isnt very accurate.

think of it more as like a bell-curve.. if you put it in the middle you will get a drop too often.. put it at an extreme range of the possible outcomes and you get too few drops..

put it within the top 25-33% or bottom 25-33% range and it will be more accurate.
 

jjarmis

Wanderer
Murzin said:
it is never a good idea to set the chance to drop at either end of the possible outcome because from what i can tell the random number generator isnt very accurate.

think of it more as like a bell-curve.. if you put it in the middle you will get a drop too often.. put it at an extreme range of the possible outcomes and you get too few drops..

Yes, the random number generator in C# (and in almost every language) is derived from the current milliseconds of DateTime.Now. So at any given moment in time it is more likely to be somewhere in the middle than close to 0.
 

Whooper7777

Wanderer
llittle problem with one artifact what im doing for vampirelord: errors:
Code:
Scripts: Compiling C# scripts...failed (5 errors, 0 warnings)
 - Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1513: (line 40, column 4)
} expected
 - Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 46, column 16)
 Expected class, delegate, enum, interface, or struct
 - Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 50, column 25)
 Expected class, delegate, enum, interface, or struct
 - Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 57, column 25)
 Expected class, delegate, enum, interface, or struct
 - Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1022: (line 64, column 1)
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.
and vialofblood.cs
Code:
using System; 
using Server; 

namespace Server.Items 
{ 

   	public class VialofBlood : BaseItem 
   	{ 

      		[Constructable] 
      		public VialofBlood() 
      		{ 
          		Name = "Vial of Blood";
         		ItemID = 3620;
         		Weight = 3.0;
       			Hue = 2671;
       
     		 }

      		public override void OnDoubleClick( Mobile from ) 
     		{ 
                        string modName = m.Serial.ToString();
			StatMod smod = m.GetStatMod( "Str" );
                        StatMod dmod = m.GetStatMod( "Dex" );
                        StatMod imod = m.GetStatMod( "Int" );
                        if ( smod != null && imod != null && dmod != null)
			{
                                m.SendMessage( "You applied blood to your own blood!" );
			}
			else if (smod == null && imod == null && dmod == null)
			{
				m.AddStatMod( new StatMod( StatType.Int, modName + "Int", 20, TimeSpan.FromMinutes( 5 ) ) );
                                m.AddStatMod( new StatMod( StatType.Dex, modName + "Dex", 20, TimeSpan.FromMinutes( 5 ) ) );
                                m.AddStatMod( new StatMod( StatType.Str, modName + "Str", 20, TimeSpan.FromMinutes( 5 ) ) );
                                m.Hits = m.HitsMax ;
                                m.Mana = m.ManaMax ;
                                m.Stam = m.StamMax ;
				this.Delete();
                                m.SendMessage( "You feel Super!" );
			}
		}

		public override TimeSpan Duration{ get{ return TimeSpan.FromMinutes( 3.0 ); } }		 
      		} 


      		public VialofBlood( Serial serial ) : base( serial ) 
      		{ 
      		} 

      		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(); 
      		} 
   	}     
}
whats the problem?
 
Top