The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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

Posts: 1,687
Likes Given: 245
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
Post Reply 


Messages In This Thread
Wipe a world - kevin465 - 03-15-2014, 01:23 AM
RE: Wipe a world - Alaric - 03-15-2014, 01:32 AM
RE: Wipe a world - kevin465 - 03-15-2014, 01:35 AM
RE: Wipe a world - Alaric - 03-15-2014, 01:38 AM
RE: Wipe a world - kevin465 - 03-15-2014, 01:39 AM
RE: Wipe a world - XuN - 03-15-2014, 01:41 AM
RE: Wipe a world - kevin465 - 03-15-2014, 02:03 AM
RE: Wipe a world - Alaric - 03-15-2014, 02:39 AM
Wipe a world - kevin465 - 03-15-2014, 02:56 AM
RE: Wipe a world - Alaric - 03-15-2014, 03:25 AM
RE: Wipe a world - kevin465 - 03-15-2014, 03:31 AM
RE: Wipe a world - Alaric - 03-15-2014, 03:46 AM
Wipe a world - kevin465 - 03-15-2014, 04:15 AM
RE: Wipe a world - Shidhun - 03-15-2014, 08:04 AM
RE: Wipe a world - XuN - 03-15-2014, 08:20 AM
RE: Wipe a world - Coruja - 03-20-2014, 11:39 AM
RE: Wipe a world - darksun84 - 03-20-2014 08:03 PM
RE: Wipe a world - Abuelox - 06-18-2014, 01:17 AM

Forum Jump:


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