SphereCommunity
Block race at char creation - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Block race at char creation (/Thread-Block-race-at-char-creation)



Block race at char creation - massis87 - 02-28-2017 04:03 AM

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.


RE: Block race at char creation - Shamino - 02-28-2017 04:35 AM

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


RE: Block race at char creation - Coruja - 02-28-2017 04:59 AM

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)