CODE |
using System; using Server; //using Server.Network; //using Server.Spells; using Server.Mobiles; using Server.Items; //using System.Collections; //using Server.Targeting; //using Server.Scripts.Commands; using Server.EventHandler; namespace Server.Items { public enum RingbookType { Invalid = -1, Regular, } public class OzzysMysteryBookRing : BaseArmor { public override int BasePhysicalResistance{ get{ return 20; } } public override int BaseFireResistance{ get{ return 20; } } public override int BaseColdResistance{ get{ return 20; } } public override int BasePoisonResistance{ get{ return 20; } } public override int BaseEnergyResistance{ get{ return 20; } } public override ArmorMaterialType MaterialType{ get{ return ArmorMaterialType.Cloth; } } public override int ArtifactRarity{ get{ return 421; } } [Constructable] public OzzysMysteryBookRing() : base( 0x108a ) { Weight = 0.0; Name = "Ozzy's Mystery Book Ring"; Hue = 0; Attributes.AttackChance = 30; Attributes.DefendChance = 30; Attributes.BonusStr = 35; Attributes.BonusInt = 25; Attributes.BonusDex = 30; Attributes.BonusHits = 50; Attributes.LowerManaCost = 15; Attributes.Luck = 100; Attributes.RegenHits = 10; Attributes.ReflectPhysical = 65; Attributes.NightSight = 1; Attributes.WeaponDamage = 40; Attributes.WeaponSpeed = 30; LootType = LootType.Blessed; } private static void EventSink_OpenSpellbookRequest( OpenSpellbookRequestEventArgs e ) { Mobile from = e.Mobile; case 1: type = RingbookType.Regular; break; } public override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "You must be wearing the robe to use it!" ); } else { EventSink.OpenSpellbookRequest += new OpenSpellbookRequestEventHandler( EventSink_OpenSpellbookRequest ); EventSink.CastSpellRequest += new CastSpellRequestEventHandler( EventSink_CastSpellRequest ); } } |
CODE |
- Error: Scripts\New Stuff\OzzysMysteryBook.cs: CS0234: (line 11, column 14) Th e type or namespace name 'EventHandler' does not exist in the class or namespace 'Server' (are you missing an assembly reference?) |
CODE |