Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Server Wipe and keep spawns?
|
Author |
Message |
Xenon
Apprentice
Posts: 5
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0
|
Server Wipe and keep spawns?
Hello everyone,
I use to own a fairly popular server around 5 years ago and was looking into the possibility of restarting it. I have tried a couple of methods how to "start over on it".
The first way I tried was to remove the account files from the server and let all the accounts remove them self. This worked but all items that were stored in houses were still saved in game floating objects. So this would not be practical for a new server.
http://forum.spherecommunity.net/Thread-...world+wipe
I tried this as well but this removed all my spawns and that's not what I wanted.
In simple I would like a script that would remove characters and items but avoid any spawns. Its been a long time since I played or scripted!
using the below script I think it just needs to be adjusted slightly
[FUNCTION ServerWipe]
FOROBJS 10000
IF (<ISITEM>)
IF (<TYPE> != t_spawn_char) || !(<ATTR> & attr_static)
REMOVE (I feel if I just change this value to ignore or just remove the whole if it might work)
ENDIF
ELIF (<ISCHAR>)
REMOVE 1
ENDIF
ENDFOR
FOR 0 <eval <SERV.ACCOUNTS>-1>
SERV.ACCOUNT.<LOCAL._FOR>.DELETE
ENDFOR
|
|
03-23-2014 08:10 PM |
|
|
User(s) browsing this thread: 1 Guest(s)