CODE |
RunUO - [www.runuo.com] Version 1.0.0, Build 36918 Scripts: Compiling C# scripts...failed (11 errors, 0 warnings) - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1519: (line 52, column 3) Invalid token '{' in class, struct, or interface member dec laration - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1519: (line 53, column 23) Invalid token '(' in class, struct, or interface member de claration - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1519: (line 53, column 65) Invalid token ')' in class, struct, or interface member de claration - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1519: (line 54, column 18) Invalid token '(' in class, struct, or interface member de claration - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1519: (line 55, column 23) Invalid token '(' in class, struct, or interface member de claration - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1520: (line 56, column 19) Class, struct, or interface method must have a return type - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1001: (line 56, column 33) Identifier expected - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1518: (line 59, column 10) Expected class, delegate, enum, interface, or struct - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1518: (line 63, column 19) Expected class, delegate, enum, interface, or struct - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1518: (line 69, column 19) Expected class, delegate, enum, interface, or struct - Error: Scripts\Customs\Weapons & Armor\AlastarsChokerofCompassion.cs: CS1022: (line 75, 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. |
CODE |
using System; using Server.Items; namespace Server.Items { public class AlastarsChokerofCompassion : PlateMempo { public override int BasePhysicalResistance{ get{ return 5; } } public override int BaseFireResistance{ get{ return 3; } } public override int BaseColdResistance{ get{ return 2; } } public override int BasePoisonResistance{ get{ return 3; } } public override int BaseEnergyResistance{ get{ return 2; } } public override int InitMinHits{ get{ return 255; } } public override int InitMaxHits{ get{ return 255; } } public override int AosStrReq{ get{ return 50; } } public override int OldStrReq{ get{ return 50; } } public override int ArmorBase{ get{ return 4; } } [Constructable] public AlastarsChokerofCompassion() { Weight = 3.0; Name = "Alastars Choker of Compassion"; Hue = 0x554; //1364 int x_Rand; x_Rand = Utility.Random(7); Attributes.ReflectPhysical = x_Rand; int x_Rand1; x_Rand1 = Utility.Random(3); Attributes.RegenHits = x_Rand1; int x_Rand2; x_Rand2 = Utility.Random(4); Attributes.RegenStam = x_Rand2; int x_Rand3; x_Rand3 = Utility.Random(3); ArmorAttributes.SelfRepair = x_Rand3; int x_Rand4; x_Rand4 = Utility.Random(2); ColdBonus = x_Rand4; } public override bool OnEquip( Mobile from ); { from.FixedParticles( 0x373A, 10, 15, 5018, EffectLayer.Waist ); from.PlaySound( 0x1EA ); from.SendMessage("The Virtue of Compassion flows through your veins as you equip the Choker"); return base.OnEquip( from ); } public AlastarsChokerofCompassion( 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(); } } } |