RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] FS Daily Rares v1.0.3

GhostRiderGrey

Sorceror
If that is correct, why are the first 3 are in the same building, an artist's studio of some sort, and the last 3 are in another artist's building?

Or are they adding the mobile called Artist at those locations?
 

Pure Insanity

Sorceror
Hard to tell without looking at the script. Maybe more then one npc gives out the tips? Have you tried going to that location to see what it spawns? Or looking through the rest of the script to see what the DailyRareSpawner function creates?
 

GhostRiderGrey

Sorceror
The "Artist" does not give out tips, he is just a moblie. Yes I have been to the locations and nothing seems to be spawning there. Ahh, in going back through the Artist script, he is referred to as Artist1 and not Artist. I will change that and re-test.
 

Pure Insanity

Sorceror
You do realize it's only set to spawn it for a certain amount of time? And not sure...but seems like it's set to spawn at a certain time.
 

Pure Insanity

Sorceror
My bad, it's not a specific time. But seems the spawns only last between 5 and 10 minutes. When are they spawned? There has to be somewhere in this script that specifies when they are spawned. It's a daily spawner...not a forever spawner, right? Wouldn't make sense to do it multiple times all day.
 

GhostRiderGrey

Sorceror
There is a settable time when it spawns the system, but you can also force the spawn with this command:

Code:
		[Usage( "ForceSpawnDailys" )]
		[Description( "Force Spawns All Daily Rares" )]
		private static void ForceSpawnDailys_OnCommand( CommandEventArgs e )
		{
			DailyRaresSystem.StartRareSpawn( true );
		}
 

mordredrs

Sorceror
Thanks for convert the script for 2.0!
I'd like to know if there's any way to spawn crates and chests in the cities.
Thanks in advance!
 

shackal

Sorceror
I got this error:

Errors:
+ Customs/FS Daily Rares v1.0.3/Core/DailyRaresSystem.cs:
CS0117: Line 373: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 376: 'Server.Mobiles.Spawner' does not contain a definition for
'MoveToWorrld'
CS0117: Line 377: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 381: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 385: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 389: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 393: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 417: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 421: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 425: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 429: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 433: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
CS0117: Line 437: 'Server.Mobiles.Spawner' does not contain a definition for
'InitSpawn'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Montmatre

Sorceror
I been getting that error to and really want to use this system

This will help it get past those errors but it is no means a fix as from 2.0 rc2 to 2.1 and above the Spawner.cs file was altered considerably. Not everything will work with these small alterations but you will be able to compile through it.

1. Go to DailyRaresSystem.cs change every instance of InitSpawn to InitSpawner.

2. Do this again with the TownCrate.cs file found within the Voran's Town Crates folder

3. Find the line in Spawner.cs that looks like this (around line 188 on mine)

Code:
        private void InitSpawner( int amount, TimeSpan minDelay, TimeSpan maxDelay, int team, int homeRange, List<string> spawnNames )
        {
            Visible = false;
            Movable = false;
            m_Running = true;
            m_Group = false;
            m_MinDelay = minDelay;
            m_MaxDelay = maxDelay;

Change the Private to Public

This should compile but more work needs to be done on it. I am currently working on another 2.0 - 2.2 translation atm, but I will get to this one eventually.
 

UOExtreme

Sorceror
This will help it get past those errors but it is no means a fix as from 2.0 rc2 to 2.1 and above the Spawner.cs file was altered considerably. Not everything will work with these small alterations but you will be able to compile through it.

1. Go to DailyRaresSystem.cs change every instance of InitSpawn to InitSpawner.

2. Do this again with the TownCrate.cs file found within the Voran's Town Crates folder

3. Find the line in Spawner.cs that looks like this (around line 188 on mine)

Code:
        private void InitSpawner( int amount, TimeSpan minDelay, TimeSpan maxDelay, int team, int homeRange, List<string> spawnNames )
        {
            Visible = false;
            Movable = false;
            m_Running = true;
            m_Group = false;
            m_MinDelay = minDelay;
            m_MaxDelay = maxDelay;

Change the Private to Public

This should compile but more work needs to be done on it. I am currently working on another 2.0 - 2.2 translation atm, but I will get to this one eventually.

After fixing what you told us to fix I now get this error

Errors:
+ Customs/FS Daily Rares v1.0.3/Core/DailyRaresSystem.cs:
cs0122= Line 371: 'Server.Mobiles.Spawner.InitSpawner<int, System.TimeSpan,
System.TimeSpan, int, int, System.Collections.Generic.List<string>>' is inaccessible due to its protection level



I get this on lines 371, 375, 379, 383, 387, 391, 415, 419, 423, 427, 431, 435
 
Top