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: #9
RE: Unique Character Names
Do not get me on every pereprobyval.
Help for installation steps. Help

sphere_serv_triggers.scp in a component of

[FUNCTION f_onchar_create]
if <serv.LIST.player_names.COUNT>
if <serv.LIST.player_names.FINDELEM "<src.name>"> != -1
src.timerf 3, src.namechange
else
serv.LIST.player_names.ADD <src.name>
endif
else
serv.LIST.player_names.ADD <src.name>
serv.log Unique player name list created
endif

[FUNCTION f_onchar_delete]
serv.LIST.player_names.<LIST.player_names.FINDELEM "<src.name>">.REMOVE

unique_name.scp in a component of

[function namechange]
src.flags=(<src.flags>|040000)
src.sysmessage The name you have chosen is not available
src.sysmessage You will remain frozen until you choose a new name
src.dialog d_name_change

[Dialog d_name_change]
150,220
nomove
noclose
page 0 // Basic layout
gumppictiled 0 0 310 150 0a40
checkertrans 1 1 308 148
dtext 80 10 90 Please choose a new name
gumppic 20 50 1143 0
dtextentry 30 52 150 50 0 0
dtext 200 120 90 Confirm
button 250 120 0fa5 0fa7 1 0 1

[Dialog d_name_change BUTTON]
ON=1
if <serv.LIST.player_names.FINDELEM "<argtxt[0]>"> != -1
src.sysmessage The name you have chosen is not available
src.sysmessage Please chose a different name
src.dialog d_name_change
else
if strregex(^[a-z]+$,<argtxt[0]>)
local.length=<argtxt[0]>
if (<eval strlen(<local.length>)> < 3) || (<eval strlen(<local.length>)> > 16)
src.sysmessage Invalid name
src.sysmessage Valid names must me 3 - 16 characters in length
src.dialog d_name_change
else
serv.LIST.player_names.ADD <argtxt[0]>
src.name <argtxt[0]>
src.flags=(<src.flags>& ~040000)
src.sysmessage You name is now <src.name>
endif
else
src.sysmessage Invalid name
src.sysmessage Names may only contain letters a - z
src.dialog d_name_change
endif
endif

When you create a new character server swears:

19:51:ERROR:(sphere_serv_triggers.scp,54)Can't resolve <serv.LIST.player_names.COUNT>
19:51:ERROR:(sphere_serv_triggers.scp,61)Undefined keyword 'LIST.player_names.ADD'
19:51:(sphere_serv_triggers.scp,62)Unique player name list created


HELP HELP HELP
(This post was last modified: 08-06-2013 10:51 PM by gooool.)
08-06-2013 10:49 PM
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: 7 Guest(s)