View Single Post
Old 06-10-2004, 01:01 AM   #1 (permalink)
Ravatar
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