Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wipe a world
Author Message
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #11
RE: Wipe a world
ok but if I want to delete all map deceit should I go on a specific coordinate?
03-15-2014 03:31 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #12
RE: Wipe a world
I don't know map deceit. If you mean removing all items in the underground deceit, then... There was something like

Code:
[function f_deceit_clear]
region.(uid of the deceit region or some idetificator).foritems f_lol

[function f_lol]
if <region.name> == deceit
   remove
endif


I'm not sure with this way but I think it worked.
Code:
region.foritems
should loop through all sectors the region is in => you have to check whether it is in the region DECEIT.

The code is crap, just theory because I don't remember the right form, syntax by heart.


e:I'm passing the baton, try it somebody, I'm confused again. I really don't know what kevin wants to achieve.
(This post was last modified: 03-15-2014 03:54 AM by Alaric.)
03-15-2014 03:46 AM
Find all posts by this user Like Post Quote this message in a reply
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #13
Wipe a world
Ok its work dont tell how i have do it but all its wiped !! But know if you can help me for how wipe all c_player_vendor off all char after i have finish to ask you help Smile
03-15-2014 04:15 AM
Find all posts by this user Like Post Quote this message in a reply
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #14
RE: Wipe a world
[function whatever]
forinstances c_player_vendor
remove
endfor
03-15-2014 08:04 AM
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: #15
RE: Wipe a world
This is the best help anyone can give you for this: http://wiki.sphere.torfo.org/index.php/Chapter_7
03-15-2014 08:20 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #16
RE: Wipe a world
Code:
[FUNCTION ServerWipe] //This will wipe all items, npcs and accounts
FOROBJS 10000
  IF (<ISITEM>)
    IF (<TYPE> != t_spawn_char) || !(<ATTR> & attr_static)
      REMOVE
    ENDIF
  ELIF (<ISCHAR>)
    REMOVE 1
  ENDIF
ENDFOR
FOR 0 <eval <SERV.ACCOUNTS>-1>
  SERV.ACCOUNT.<LOCAL._FOR>.DELETE
ENDFOR

[FUNCTION RegionWipeChars] //This will clear all chars only on your region (if you want clear destard, go to destard and use this command)
FORCHARS 10000
  IF (<REGION.UID> == <SRC.REGION.UID>)
    REMOVE
  ENDIF
ENDFOR
I made this code on-the-fly, untested, but maybe it could help with something

attr_static check on items is just to prevent world items like doors/walls/etc get removed. It will only work if you set attr_static (08000) on these items. If these items doesn't have attr_static they will get removed too

all chars will be removed too, but you dont need to care about spawns, they will spawn again later
(This post was last modified: 03-20-2014 11:47 AM by Coruja.)
03-20-2014 11:39 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #17
RE: Wipe a world
You can use this also for world wiping

PHP Code:
[FUNCTION startWorldWipe]
go 1,1,//this is the  super global region for map0 that contains all the other regions  of the map 
region.allchars wipeChars
region
.allcharsidle wipeChars //for characters belonging to a disconnected client
region.allitems wipeItems
return 

[FUNCTION 
wipeChars]

if (<
isplayer>)
    if <
account.plevel> < // this will avoid to remove the administrator characters.
        //serv.log removing player character <name>
        
remove 1
        
return 
    endif
else
    
//serv.log removing npc character <name>
    
remove 
endif 
return 

[FUNCTION 
wipeItems]
if (<
type> != t_spawn_char ) && ( <type> != t_spawn_item )
    
//serv.log removing item <name>
    
remove
endif
return 
(This post was last modified: 03-20-2014 08:23 PM by darksun84.)
03-20-2014 08:03 PM
Find all posts by this user Like Post Quote this message in a reply
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #18
RE: Wipe a world
Sorry to open an old topic, but as would be done to clear the multis, ie homes that put the players.
06-18-2014 01:17 AM
Visit this user's website 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)