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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-07-2004, 03:01 PM   #1 (permalink)
Cat
 
Join Date: Mar 2003
Location: One life? Why? I've got nine left...er four...
Posts: 138
Default Change to Scripts\Engines\Spawner\spawner.cs

change lines 130 and 138

from
Code:
creaturesName.Add( creatureName.ToLower() );
to
Code:
creaturesName.AddRange( creatureName.ToLower().Split(",".ToCharArray()));
this minor change will allow people to pass in a comma delimented list of creatures/items when creating a spawner. (if you wanted to get fancy a .Trim() could be added after the split to remove an excess spaces after the comma). This is compatible with exisiting scripts (backwards compatible) and adds to the core functionality and usefulness of the basic spawner object.

Just my humble thoughts on the matter.
Cat 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