Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 03-10-2004, 02:03 AM   #1 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default [1.0] Spawner2

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.
Attached Files
File Type: zip Spawner2.zip (3.6 KB, 390 views)
__________________
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.
David is offline  
Old 03-10-2004, 02:18 AM   #2 (permalink)
Forum Expert
 
Join Date: Aug 2003
Location: Australia
Age: 30
Posts: 270
Send a message via ICQ to big_cat Send a message via MSN to big_cat Send a message via Yahoo to big_cat
Default

Thanks David Awesome script
big_cat is offline  
Old 03-23-2004, 07:23 AM   #3 (permalink)
 
Join Date: Feb 2004
Posts: 1
Default

Is this the spawner to use with Gauntlet's Quest?
Abigor is offline  
Old 03-23-2004, 01:38 PM   #4 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline  
Old 04-08-2004, 06:34 PM   #5 (permalink)
Forum Novice
 
nerun's Avatar
 
Join Date: Jun 2003
Location: Brazil
Age: 29
Posts: 800
Default

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.
nerun is offline  
Old 04-08-2004, 07:36 PM   #6 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Originally Posted by nerun
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.
Sure, I should have done that already--sorry. I will update it tonight.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline  
Old 04-09-2004, 12:55 AM   #7 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline  
Old 04-13-2004, 02:10 PM   #8 (permalink)
 
Join Date: Oct 2003
Posts: 95
Smile

Great job!

well, I just want to ask.... how to use it , just delete the original one(spawner.cs), then put this one in??
lover1973 is offline  
Old 04-13-2004, 02:43 PM   #9 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline  
Old 04-21-2004, 11:05 AM   #10 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
	}
}
change that to
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
David is offline  
Old 04-21-2004, 12:18 PM   #11 (permalink)
Forum Novice
 
nerun's Avatar
 
Join Date: Jun 2003
Location: Brazil
Age: 29
Posts: 800
Wink

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!
nerun is offline  
Old 04-21-2004, 02:14 PM   #12 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

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
David is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5