Milva

Moderator
Decided to try UO Architect with a newer updated ServUO but have this error I'm not sure how to solve :)
Any help much appreciate! Will upload the script
Errors:
+ Custom/Server/OrbRemoteServer/UOArchitect/MobileSaver.cs:
CS1061: Line 345: 'Server.Mobiles.Spawner' does not contain a definition for
'SpawnNames' and no extension method 'SpawnNames' accepting a first argument of
type 'Server.Mobiles.Spawner' could be found (are you missing a using directive
or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Attachments

  • MobileSaver.cs
    14.5 KB · Views: 5
Thank You so much! No rush when ever you find a few minutes to check it out, I know your busy :)
 
Ok, try copying the entire method to look like this:

Code:
		public static Spawner LoadMobile( Item item )
		{
			Type t = GetType( item.Z - Offset );
			if ( t == null )
				return null;
            Spawner spawner = new Spawner(t.ToString());
			//spawner.SpawnNames.Add( t.ToString() );
			spawner.Running = true;
			spawner.HomeRange = 0;
			spawner.WalkingRange = 4;
			//spawner.Respawn();
			return spawner;
		}
 
Perfect!! Thanks so much no error now :) I will also update UO Art with the new mobile updated with credit to you!
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back