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
Spawn in one place !
Author Message
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #8
RE: Spawn in one place !
To Be honest that is a bad thing to do because you end up with many players on one tile.

The solution would be to make a filing system or more a tiling system.

First let pic a location to put all the offline players, personally I would use another map or I would put them in the ocean far off land. You can decide were the first file or tile will be located, for the purposes of this example I will just call the start coords as X and Y, you need to set them yourself
for example:
green acres would be
PHP Code:
[DEFNAME OfflineFilingSystem]
StartLocation_X   5104 
StartLocation_Y   1251 

Another major concern here is what happens when the player logs in, maybe you want him to go back to the place you first took him from before you filed / tiled him.

PHP Code:
[DEFNAME OfflineFilingSystem]
StartLocation_X   X
StartLocation_Y   Y

[FUNCTION MoveOfflinePLayersToo]
LOCAL.RowNumber=<EVAL StartLocation_X>
FORPLAYERS 7000
    
IF !<ISONLINE>
        
LOCAL.OfflinePlayerCount=<LOCAL.OfflinePlayerCount>+1
        TAG
.LastAtTheseCoords=<P>
        
GO <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_X>>
        
LOCAL.RowNumber=<EVAL StartLocation_X 1>
    ENDIF
ENDFOR
SERV.LOG <EVAL <LOCAL.OfflinePlayerCount>> players have been filed from <EVAL StartLocation_X>,<EVAL StartLocation_Ytoo  <EVAL <LOCAL.RowNumber>>,<EVAL StartLocation_Y

Then I suppose on login you would check to see if a player is at the coords <TAG.LastAtTheseCoords> and if not move him there.

ON=@Login
If <P> != <TAG.LastAtTheseCoords>
GO <TAG.LastAtTheseCoords>
ENDIF
(This post was last modified: 11-03-2012 07:25 PM by Barnabus.)
11-03-2012 07:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Spawn in one place ! - tyllneas - 11-03-2012, 08:43 AM
RE: Spawn in one place ! - Extreme - 11-03-2012, 09:28 AM
RE: Spawn in one place ! - tyllneas - 11-03-2012, 10:02 AM
RE: Spawn in one place ! - Extreme - 11-03-2012, 10:25 AM
RE: Spawn in one place ! - tyllneas - 11-03-2012, 10:31 AM
RE: Spawn in one place ! - Barnabus - 11-03-2012, 06:40 PM
RE: Spawn in one place ! - tyllneas - 11-03-2012, 07:08 PM
RE: Spawn in one place ! - Barnabus - 11-03-2012 07:14 PM
RE: Spawn in one place ! - tyllneas - 11-03-2012, 09:27 PM
RE: Spawn in one place ! - Barnabus - 11-03-2012, 10:18 PM
RE: Spawn in one place ! - tyllneas - 11-04-2012, 08:37 PM
RE: Spawn in one place ! - Barnabus - 11-04-2012, 08:46 PM

Forum Jump:


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