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!

[spawnallregions not working

koluch

Sorceror
[spawnallregions not working

For some reason, the spawnallregions is not working for us( it only worked on the first releases, like svn 65??? )
I have done [spawnallregions, [respawnallregions, well tried all the region commands to no avail since the earlier release.
Could someone please let me know if their regions spawn using the latest svn and what exactly they are doing to get them to fire up.
** this is to start the different wheat, sheep, ect regions in the Region.xml file.
RunUO has reported that this is not a bug and all that is necessary is to type [spawnallregions - I just cant get it to work.

Thanks for your help,

Koluch
 

Lestat181

Sorceror
It doesn't work because there is two brackets are missing in BaseRegion.cs,

Look for
Code:
		if ( !lt.Ignored && ltAvgZ >= minZ && ltAvgZ < maxZ )
                    if ((ltFlags & TileFlag.Wet) != 0)
                        if (water)
                            m_SpawnBuffer1.Add(ltAvgZ);
                    else if (land && !ltImpassable)
                        m_SpawnBuffer1.Add(ltAvgZ);
and add the two brackets
Code:
		if ( !lt.Ignored && ltAvgZ >= minZ && ltAvgZ < maxZ )
                    if ((ltFlags & TileFlag.Wet) != 0)
                    {
                        if (water)
                            m_SpawnBuffer1.Add(ltAvgZ);
                    }
                    else if (land && !ltImpassable)
                        m_SpawnBuffer1.Add(ltAvgZ);
 
Top