Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-10-2004, 01:01 AM   #1 (permalink)
Forum Expert
 
Join Date: Sep 2002
Age: 23
Posts: 1,472
Default Abstracted Respawn Command

Description: A very simple addition that manually triggers the Respawn method of targeted spawners. Support for XMLSpawner, MegaSpawner, and the default RunUO spawner.

Support for the following prefixes:
  1. Single
  2. Global
  3. Multi
  4. Area
  5. Contained

To add support for MegaSpawner, or XMLSpawner look near line 95 for these two pieces of code.

Code:
/*	To add Support for MegaSpawner, uncomment these two lines.
 *	if ( list[i] is MegaSpawner )
 *		((MegaSpawner)list[i]).Respawn();
 */
Code:
/*	To add Support for XMLSpawner, uncomment these two lines.
 *	if ( list[i] is XMLSpawner )
 *		((XMLSpawner)list[i]).Respawn();
 */
To enable support for the two above types, remove the commenting like below:

Code:
	if ( list[i] is MegaSpawner )
		((MegaSpawner)list[i]).Respawn();
Code:
	if ( list[i] is XMLSpawner )
		((XMLSpawner)list[i]).Respawn();
Use the attached Commands.cs in place of the original.. The original can be found in \Scripts\Commands\Abstracted\Commands
Attached Files
File Type: cs Commands.cs (27.2 KB, 67 views)
Ravatar is offline   Reply With Quote
Old 10-09-2004, 03:54 AM   #2 (permalink)
Forum Novice
 
Join Date: Aug 2004
Age: 19
Posts: 149
Default

Nice work :}
Bobert is offline   Reply With Quote
Reply

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