CODE |
namespace Server.Misc { public class PoisonRoom { public PoisonRoomRegion MainRegion; public PoisonRoom( int StartX, int StartY, int EndX, int EndY, Map map, string name ) { MainRegion = new PoisonRoomRegion( name, map, this, new Rectangle2D( new Point2D( StartX, StartY ), new Point2D( EndX, EndY ) ) ); } } public class PoisonRoomRegion : Region { public PoisonRoom Room; public PoisonRoomRegion( string name, Map map, PoisonRoom room, Rectangle2D area ) : base( name, map, 51, area ) { Room = room; } |
CODE |
foreach ( Item tem in ((Hashtable)World.Items.Clone()).Values ) { if ( tem.Map == null ) World.RemoveItem( tem ); } |
CODE |
RunUO - [www.runuo.com] Version 2.0, Build 2366.971 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...failed (2 errors, 0 warnings) Errors: + doom/leverpuzzel.cs: CS0117: Line 388: 'System.Collections.Generic.Dictionary<Server.Serial,Serve r.Item>' does not contain a definition for 'Clone' + doom/PoisonRoom.cs: CS0117: Line 16: 'Server.Misc.PoisonRoomRegion' does not contain a definitio n for 'Coords' CS0117: Line 17: 'Server.Misc.PoisonRoomRegion' does not contain a definitio n for 'Coords' CS0117: Line 22: 'Server.Misc.PoisonRoomRegion' does not contain a definitio n for 'Coords' CS1502: Line 29: The best overloaded method match for 'Server.Region.Region( string, Server.Map, int, params Server.Rectangle2D[])' has some invalid argument s CS1503: Line 29: Argument '2': cannot convert from 'string' to 'Server.Map' CS1503: Line 29: Argument '3': cannot convert from 'Server.Map' to 'int' CS0103: Line 32: The name 'LoadFromXml' does not exist in the current contex t CS0200: Line 33: Property or indexer 'Server.Region.Priority' cannot be assi gned to -- it is read only CS0200: Line 34: Property or indexer 'Server.Region.Map' cannot be assigned to -- it is read only Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. |
CODE |
RunUO - [www.runuo.com] Version 2.0, Build 2366.971 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) Errors: + doom/PoisonRoom.cs: CS1513: Line 65: } 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 System.Collections; using Server; using Server.Regions; using Server.Spells.Sixth; using Server.Spells.Seventh; using System.Collections.Generic; namespace Server.Misc { namespace Server.Misc { public class PoisonRoom { public PoisonRoomRegion MainRegion; public PoisonRoom( int StartX, int StartY, int EndX, int EndY, Map map, string name ) { MainRegion = new PoisonRoomRegion( name, map, this, new Rectangle2D( new Point2D( StartX, StartY ), new Point2D( EndX, EndY ) ) ); } } public class PoisonRoomRegion : Region { public PoisonRoom Room; public PoisonRoomRegion( string name, Map map, PoisonRoom room, Rectangle2D area ) : base( name, map, 51, area ) { Room = room; } public override void OnEnter( Mobile m ) { PoisonRoomRegionTimer t = new PoisonRoomRegionTimer( m ); t.Start(); } public override void OnExit( Mobile m ) { } public override bool OnResurrect( Mobile from ) { return false; } public override bool OnBeginSpellCast( Mobile m, ISpell s ) { if ( s is MarkSpell || s is GateTravelSpell ) { m.SendMessage( "You can not cast that here" ); return false; } return base.OnBeginSpellCast( m, s ); } private class PoisonRoomRegionTimer : Timer { public PoisonRoomRegionTimer( Mobile from ) : base( TimeSpan.FromSeconds( 1 ) ) { } protected override void OnTick() { } } } } |
CODE |
namespace Server.Misc { namespace Server.Misc { |
CODE |
namespace Server.Misc { |