Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 04-03-2003, 11:05 AM   #1 (permalink)
 
Join Date: Dec 2002
Posts: 584
Send a message via ICQ to bleis
Default Real need help here with worldspawner

I used the worldsapwner to sapwn monsters around my world. Now I realy need to get rid of the spawnes it made. Is there a way to only remove the spawners that this worldsapwner made ?? I have to tell you that I´m not programmer, and cant figure out a script for it. Can some one please help me out here
__________________
Founder of...
www.Abyss-Centurian.tk
Finaly opened,
www.NordicMyth.dk
bleis is offline   Reply With Quote
Old 04-03-2003, 11:13 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

for loop through the Spawners in World.Items.Value and add the results to an array.

For loop through the contents and delete the spawner.

YOU CANNOT DIRECTLY DELETE THE SPAWNER in World.Items.Value which is why you use an array to do it.
Phantom is offline   Reply With Quote
Old 04-03-2003, 12:00 PM   #3 (permalink)
Forum Expert
 
Mortis's Avatar
 
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
Default

If this world spawner places spawngems use the link below for a script that removes spawngems.

http://www.runuo.com/discussion/view...emove+spawners
__________________
I'm waiting in my cold cell when the bell begins to chime
Reflecting on my past life and it doesn't have much time.
Mortis is offline   Reply With Quote
Old 04-03-2003, 05:18 PM   #4 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

He wants to only remove the spawners placed by the worldspawner script, not all spawners.

bleis, not having looked at the script in question. It is hard to answer, but yes it should be doable but may require some scripting. Reverting to an old save sure would be easier....

(btw, if you want to remove all spawners, or every item of any type, no need to write any scripts. Just put Delete(); in the deserialize method of the items class. )
__________________
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   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