Post Reply 
 
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



Post: #1
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
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Server Wipe and keep spawns?
Change

IF (<TYPE> != t_spawn_char) || !(<ATTR> & attr_static)

to

IF !( ( <type> == t_spawn_char) || ( <attr> & attr_static))
03-23-2014 08:53 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Xenon
Apprentice
*

Posts: 5
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Mar 2014
Reputation: 0



Post: #3
RE: Server Wipe and keep spawns?
worked perfect thanks!
03-26-2014 02:18 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)