|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Summary:
This is a Release 1.0 version of the standard spawner modified to include a SpawnRange property. Description: The HomeRange property still determines how far a creature may wander from the spawner as in the distribution spawner. However that property no longer affects where the creature actually spawns. Now SpawnRange determines how far from the spawner the creature or item will first appear. This is usefull for spawning a creature in a long narrow space such as a hallway or a river. The SpawnRange can be set small with a large HomeRange and the creature will spawn within the narrow confins yet may still wander the entire length of the space. 1.0 Notes: This is a direct replacement for the 1.0 distribution spawner or the Beta36 Spawner2. All versioning updates are handled already. This script was written for RunUO 1.0. Moving from Archives to Submissions on 05/06/06. Installation: This is a replacement for the Spawner.cs file in Scripts\Misc. That file should be renamed to Spawner.org when this is installed.
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 Last edited by David; 05-07-2006 at 01:47 AM. |
|
|
|
|
#4 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
I'm sorry, but I'm not familiar with that quest. Unless the description says use Spawner2, my guess would be no it is not....
(edit: Well, actually I guess it is. However this file is included with the quest download. )
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
#5 (permalink) |
|
Forum Novice
Join Date: Jun 2003
Location: Brazil
Age: 29
Posts: 800
|
Could you update it for the 1.0 RC0? I ask that because my spawns system depends of that script. In spite of me to have added another property (SpawnID), I still need the spawnrange. And the new version altered the original script. Could you update his/her script?
PS.: you can just update Spawner.cs (1.0 RC0) with SpawnRange, i can update myself your version with SpawnID after. |
|
|
|
|
#6 (permalink) | |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Quote:
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
|
#7 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Updated for Release 1.0 RC0.
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
#9 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Basicly, yes. I would suggest renaming the original, or moving it to to a folder away from the Scripts folder. Any existing spawners will be updated with the default SpawnRange of 4.
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
#10 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
Fixed a minor bug which resulted in unreachable code.
If you are currently using this spawner there is no need to download the corrected version. Only the first restart after upgrading from a distro spawner was affected. For the curious or anal, at the end of the Deserialize method is this code Code:
break; } m_SpawnRange = ( version <= 2 ? m_HomeRange : m_SpawnRange ); //fix SpawnRange until first Deserialize of ver 3 } } Code:
break; } } m_SpawnRange = ( version <= 2 ? m_HomeRange : m_SpawnRange ); //fix SpawnRange until first Deserialize of ver 3 }
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
|
|
#11 (permalink) |
|
Forum Novice
Join Date: Jun 2003
Location: Brazil
Age: 29
Posts: 800
|
Good job.
Suggestion: it would be better than you added the version of the script to each updating in it. For instance: version 04.21.2004 (release date) or v2.1, v2.2 etc. And put in the top of scripts too: / / version 04.21.2004 or // release 04.21.2004 or //v2.1 etc. I say it because the script i had was 1.0 RC0 too, but do not have the line m_SpawnRange = ( version <= 2 ? m_HomeRange : m_SpawnRange ); in Deserialize, then i suppose you release at least 3 versions after RunUO 1.0 RC0. And with a version number, is easier identify and update scripts. But thx by your awesome script! ![]() |
|
|
|
|
#12 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
That line reflects a change in how I handle converting from a distro spawner. There was no change in functionality, only a little cleaner code. I was pretty sure I did that at the same time I updated the script for 1.0 RC0. But yes, I can add a date or version.
The versioning in the script mirrors the distro version of the spawner.
__________________
David Forum Moderator The RunUO.com Forum Moderator Team Forum Rules and Guidelines RunUO Forum Search Engine Download RunUO 2.0 RC2 |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|