SphereCommunity
Unique Character Names - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Unique Character Names (/Thread-Unique-Character-Names)

Pages: 1 2 3


RE: Unique Character Names - gooool - 08-07-2013 12:54 AM

(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


RE: Unique Character Names - Mordaunt - 08-07-2013 01:19 AM

What build number? copy & paste the first line that comes up on the console when you start the server.


RE: Unique Character Names - gooool - 08-07-2013 01:59 AM

(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 ---


RE: Unique Character Names - Mordaunt - 08-07-2013 02:03 AM

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.


RE: Unique Character Names - gooool - 08-07-2013 02:19 AM

I have to rewrite all the scripts server!
Tell me what edro I choose for this script??


RE: Unique Character Names - darksun84 - 08-07-2013 02:26 AM

List weren't implemented in the 2007 release, so you can't use the script unless you download the new 2013 release


RE: Unique Character Names - Mordaunt - 08-07-2013 02:28 AM

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.


RE: Unique Character Names - gooool - 08-10-2013 12:02 PM

Well, can anyone have a script for my assembly? will be very grateful to you


RE: Unique Character Names - Mordaunt - 08-10-2013 12:23 PM

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.


RE: Unique Character Names - phibertap - 10-20-2013 05:02 AM

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!