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
Alaric
Journeyman
*

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



Post: #10
RE: Wipe a world
But you haven't said what you do. In one post you say that with foritems you aren't able to delete players (how could you even get this error when foritems loop through items in specific distance, NOT players).
Now you say that it works but you have to use the command like 30 times to remove all items in your house. Huh.

FORITEMS is a for-cycle. The "10000" is distance from you. I think the needed distance is 8000+ to cover all tiles in felucca when you stay on coors 1,1.

You wanted to wipe all items, so.. with this forcycle you loop through all items within distance 10000tiles => all items placed a current map.

If you have 5986 items in the map, it will run the forcycle for all of them while every item becomes uid.

Code:
foritems 10
    code
endfor
This provide specific code for all items within 10 tiles distance.

Your specific case
Code:
foritems 10000
    if <type> != t_spawn_char  //IF type of the current/scanned item ISN'T t_spawn_char
   remove //REMOVES current item
   endif
endfor
03-15-2014 03:25 AM
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: 2 Guest(s)