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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unique Character Names
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #1
Unique Character Names
This thought entered my mind in answer to a question on the forum.

Logging player names (as characters are created) and storing then in a list which is then checked (as characters are created) to see if the chosen name already exists.
If a match is found, the new player is stoned and presented with an unclosable unmoveable gump asking them to choose a new name, if that name passes the list they are free'd and allowed to continue their game.

Entries in the list are removed when a character is deleted, so if for whatever reason you wish to delete and remake a character with the same name it will allow you.

Darksun84 ran a test on lists while I was messing with this and received only a 90mb increase in the memory useage of sphere for a list with 1,000,000 entries. Yes that's a million.
So the likelyhood of this script hogging your computer's memory is slim.

Unique Character Names

This script does not provide support for existing shards who may now wish to implement a unique name policy. Not because it can't be done (it definately can) but because it is a headache if 2 players have the same name... who gets to keep it?
If it turns out that this feature is in demand I will work it into the script, though I accept no responsibility for the arguments it may bring.

[Image: 2nis46r.jpg]
(This post was last modified: 03-15-2013 06:56 AM by Mordaunt.)
03-15-2013 05:05 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Unique Character Names - Mordaunt - 03-15-2013 05:05 AM
RE: Unique Character Names - xwerswoodx - 03-19-2013, 03:25 AM
RE: Unique Character Names - gooool - 04-01-2013, 04:00 PM
RE: Unique Character Names - Mordaunt - 04-01-2013, 10:22 PM
RE: Unique Character Names - gooool - 04-02-2013, 01:47 AM
RE: Unique Character Names - Mordaunt - 04-02-2013, 03:24 AM
RE: Unique Character Names - gooool - 04-02-2013, 07:15 PM
RE: Unique Character Names - Mordaunt - 04-02-2013, 10:19 PM
RE: Unique Character Names - gooool - 08-06-2013, 10:49 PM
RE: Unique Character Names - Mordaunt - 08-07-2013, 12:09 AM
RE: Unique Character Names - gooool - 08-07-2013, 12:54 AM
RE: Unique Character Names - Mordaunt - 08-07-2013, 01:19 AM
RE: Unique Character Names - gooool - 08-07-2013, 01:59 AM
RE: Unique Character Names - Mordaunt - 08-07-2013, 02:03 AM
RE: Unique Character Names - gooool - 08-07-2013, 02:19 AM
RE: Unique Character Names - darksun84 - 08-07-2013, 02:26 AM
RE: Unique Character Names - Mordaunt - 08-07-2013, 02:28 AM
RE: Unique Character Names - gooool - 08-10-2013, 12:02 PM
RE: Unique Character Names - Mordaunt - 08-10-2013, 12:23 PM
RE: Unique Character Names - phibertap - 10-20-2013, 05:02 AM
RE: Unique Character Names - Mordaunt - 10-20-2013, 08:33 AM
RE: Unique Character Names - Mordaunt - 11-11-2013, 12:56 AM
RE: Unique Character Names - Mordaunt - 12-05-2013, 02:35 AM
RE: Unique Character Names - XuN - 12-05-2013, 03:59 AM

Forum Jump:


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