Kouri
Squire
I'm trying to make changes to the Slayer entries, trying to make them a bit more "specific" and add custom mobiles.
I added WyrmDispatcher slayer entry and removed all wyrm references from the DragonSlaying entry.
SlayerGroup.cs
And I added the WyrmDispatcher name to the SlayerName script.
Now, unfortunately my server crashes when I access my acct via RunUO.
I edited out the new entries in both of the Slayer scripts but the server continues to crash.
I added WyrmDispatcher slayer entry and removed all wyrm references from the DragonSlaying entry.
SlayerGroup.cs
Code:
reptilian.Opposition = new SlayerGroup[]{ arachnid };
reptilian.FoundOn = new Type[]{ typeof( TerathanAvenger ), typeof( TerathanMatriarch ) };
reptilian.Super = new SlayerEntry( SlayerName.ReptilianDeath, typeof( AncientWyrm ), typeof( DeepSeaSerpent ), typeof( GreaterDragon ), typeof( Dragon ), typeof( Drake ), typeof( GiantIceWorm ), typeof( IceSerpent ), typeof( GiantSerpent ), typeof( Hiryu ), typeof( IceSnake ), typeof( JukaLord ), typeof( JukaMage ), typeof( JukaWarrior ), typeof( LavaSerpent ), typeof( LavaSnake ), typeof( LesserHiryu ), typeof( Lizardman ), typeof( OphidianArchmage ), typeof( OphidianKnight ), typeof( OphidianMage ), typeof( OphidianMatriarch ), typeof( OphidianWarrior ), typeof( Reptalon ), typeof( SeaSerpent ), typeof( Serado ), typeof( SerpentineDragon ), typeof( ShadowWyrm ), typeof( SilverSerpent ), typeof( SkeletalDragon ), typeof( Snake ), typeof( SwampDragon ), typeof( WhiteWyrm ), typeof( Wyvern ), typeof( Yamandon ) );
reptilian.Entries = new SlayerEntry[]
{
new SlayerEntry( SlayerName.WyrmDispatcher, typeof( AncientWyrm ), typeof( ShadowWyrm ), typeof( WhiteWyrm ) ),
new SlayerEntry( SlayerName.DragonSlaying, typeof( GreaterDragon ), typeof( Dragon ), typeof( Drake ), typeof( Hiryu ), typeof( LesserHiryu ), typeof( Reptalon ), typeof( SerpentineDragon ), typeof( SkeletalDragon ), typeof( SwampDragon ), typeof( Wyvern ) ),
new SlayerEntry( SlayerName.LizardmanSlaughter, typeof( Lizardman ) ),
new SlayerEntry( SlayerName.Ophidian, typeof( OphidianArchmage ), typeof( OphidianKnight ), typeof( OphidianMage ), typeof( OphidianMatriarch ), typeof( OphidianWarrior ) ),
new SlayerEntry( SlayerName.SnakesBane, typeof( DeepSeaSerpent ), typeof( GiantIceWorm ), typeof( GiantSerpent ), typeof( IceSerpent ), typeof( IceSnake ), typeof( LavaSerpent ), typeof( LavaSnake ), typeof( SeaSerpent ), typeof( Serado ), typeof( SilverSerpent ), typeof( Snake ), typeof( Yamandon ) )
};
And I added the WyrmDispatcher name to the SlayerName script.
Now, unfortunately my server crashes when I access my acct via RunUO.
Code:
Server Crash Report
===================
RunUO Version 2.5, Build 0.24991
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
.NET Framework: 4.0.30319.296
Time: 8/17/2014 4:40:27 PM
Mobiles: 39967
Items: 207311
Exception:
System.TypeInitializationException: The type initializer for 'Server.Items.SlayerGroup' threw an exception. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Server.Items.SlayerGroup.CompileEntries(SlayerGroup[] groups)
at Server.Items.SlayerGroup..cctor()
--- End of inner exception stack trace ---
at Server.Items.SlayerGroup.GetEntryByName(SlayerName name)
at Server.Items.BaseWeapon.GetProperties(ObjectPropertyList list)
at Server.Item.get_PropertyList()
at Server.Item.InvalidateProperties()
at Server.Item.set_Map(Map value)
at Server.Mobile.set_Map(Map value)
at Server.Mobile.set_NetState(NetState value)
at Server.Network.PacketHandlers.PlayCharacter(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)
I edited out the new entries in both of the Slayer scripts but the server continues to crash.