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
Block race at char creation
Author Message
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #1
Block race at char creation
how can i block others race from char creation?
i need only humans on my server.

i block it at sphere trigger but i dont like as solution.

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 02-28-2017 04:20 AM by massis87.)
02-28-2017 04:03 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Shamino
Noob Scripter
*

Posts: 57
Likes Given: 5
Likes Received: 15 in 11 posts
Joined: Mar 2012
Reputation: 0

Exilio UO

Post: #2
RE: Block race at char creation
Enjoy Wink, try.

sphere_serv_triggers.scp

[FUNCTION f_onchar_create]
// ARGN3 --> race (1=human, 2=elf, 3=gargoyle)

IF (<ARGN3>==2) || (<ARGN3>==3)
SRC.FINDLAYER.11.REMOVE
SRC.FINDLAYER.16.REMOVE
IF (<SRC.OBODY>==c_elf_male) || (<SRC.OBODY>==c_gargoyle_male)
SRC.OBODY=c_man
SRC.BODY=c_man
SERV.NEWITEM=random_male_hair,1,<SRC>
NEW.COLOR=colors_hair
ELIF (<SRC.OBODY>==c_elf_female) || (<SRC.OBODY>==c_gargoyle_female)
SRC.OBODY=c_woman
SRC.BODY=c_woman
SERV.NEWITEM=random_female_hair,1,<SRC>
NEW.COLOR=colors_hair
SRC.CAN |= MT_FEMALE
ENDIF
SRC.OSKIN=083ea
SRC.COLOR=083ea
ENDIF

"My world is hell for the infidels. My blood pleasure of the immortals"
[Image: 2ec003662b15c61da117767a59bb99bao.jpg]
02-28-2017 04:35 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: Block race at char creation
just disable FEATURE_ML_UPDATE or FEATURE_SA_UPDATE on sphere.ini, this will disable elf/gargoyle buttons on character creation screen (don't forget that this will also disable some others minor features like ML/SA items on house customization engine)
02-28-2017 04:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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