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:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unique Character Names
Author Message
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #11
RE: Unique Character Names
(08-07-2013 12:09 AM)Mordaunt Wrote:  6 months have passed since you last asked this question, you have not provided any further information which makes it impossible to assist you.
I have once again run tests on this script on my own server and short of making a small unrelated update to it, cannot replicate your problem. Please say which version and build of sphere you are using. I would suggest updating to the pre-release anyway

v1.1

Added check to prevent loss of dialog by logging out or being disconnected.

Never really thought about it before but it caused an issue in that on logging back in the player would not be presented with the name change dialog, essentially circumventing the script, but would also be stoned and unable to do anything about it without GM intervention.

(sphere 56.2.0)
SphereServer V0.56b-Nightly

On my server was not wipe, that's decided to wipe improved in agent that would make this script
08-07-2013 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #12
RE: Unique Character Names
What build number? copy & paste the first line that comes up on the console when you start the server.

[Image: 2nis46r.jpg]
08-07-2013 01:19 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #13
RE: Unique Character Names
(08-07-2013 01:19 AM)Mordaunt Wrote:  What build number? copy & paste the first line that comes up on the console when you start the server.

Sphere Version 0.56b-Nightly [WIN32] by http://www.sphereserver.com, compiled at Jun 4 2007 (14:05:53)
21:52:WARNING: --- WARNING ---
08-07-2013 01:59 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #14
RE: Unique Character Names
Update your server... you are running a 6 year old build.
Move to the stable pre-release version and then we will take a look to see if the problem still exists.

Lists are not even available in the version you are running.

[Image: 2nis46r.jpg]
(This post was last modified: 08-07-2013 02:12 AM by Mordaunt.)
08-07-2013 02:03 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #15
RE: Unique Character Names
I have to rewrite all the scripts server!
Tell me what edro I choose for this script??
08-07-2013 02:19 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

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



Post: #16
RE: Unique Character Names
List weren't implemented in the 2007 release, so you can't use the script unless you download the new 2013 release
(This post was last modified: 08-07-2013 02:27 AM by darksun84.)
08-07-2013 02:26 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #17
RE: Unique Character Names
You shouldn't be using a 6 year old version anyway.

The pre-release version released this year would be a better version for you to use.
It should not require you to rewrite any of your scripts, but you will have to check the sphere.ini against the one for the server version you are currently using as there have been additions and changes in that file.
Once you have done that just drop the pre-release version and the sphere.ini file into your server folder and run it.

[Image: 2nis46r.jpg]
08-07-2013 02:28 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gooool
Apprentice
*

Posts: 18
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #18
RE: Unique Character Names
Well, can anyone have a script for my assembly? will be very grateful to you
08-10-2013 12:02 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #19
RE: Unique Character Names
Update to the 2013 pre-release.
You will not have to change any scripts.
The version of the server you are running does not support lists.

[Image: 2nis46r.jpg]
08-10-2013 12:23 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
phibertap
Apprentice
*

Posts: 9
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #20
Big Grin RE: Unique Character Names
Hey Mordaunt, Thanks for this script, just what I was looking for!

I'm a real newb when it comes to Sphere, but I did find a way to improve on this script, course I could be wrong. Smile

I changed Line 73, to allow for Capitals in character names.
Code:
From:
if strregex(^[a-z]+$,<argtxt[0]>)
To:
if strregex(^[aA-zZ]+$,<argtxt[0]>)

And I added a new line after line 81
To update the account's chatname to that of the new character name.
Code:
src.account.chatname <argtxt[0]>

Again, thanks for your scripts, Im having fun learning this!
10-20-2013 05:02 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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