I am using this script (wich i highjacked from in here somewhere)
in sphere_serv_triggers:
///////////////////
[FUNCTION f_onaccount_login]
if !<serv.account.<args>.chars> //I have 0 players, create 5 of them
//code for creating the newplayers here
FOR 0 2
newnpc c_newplayer //CHARDEF of the "New Character"
new.go 1982,1047,-28,2 //Send NPC to "Character Creation Room"
new.account = <args> //Assign NPC to account logging in.
new.disconnect // "Disconnect" the NPC, if you don't do this the NPC, even though attached to the account, will wander around aimlessly in the room.
serv.log New Player <local._for> for Account <args> created // Log notification
ENDFOR
else
if (<serv.account.<args>.chars> < 3)
newnpc c_newplayer
serv.log making additional chars
new.go 1982,1047,-28,2
new.account = <args>
new.disconnect
endif
serv.log Chars already created // Log notification
endif
[CHARDEF c_newplayer]
ID = c_wisp
Name = Create New Character
ON=@Create
color=00961
STR = 1
DEX = 1
INT = 1
allskills = 0.0
///////////////////
Working like a charm.... but:
I like that this script skips the entire vanilla creation process wich makes sense on my shard, where i have a race and class system, so players start out with presets once they have chosen their race and class.
Only problem is, i need to bypass the menu function of players beeing able to create or delete characters (from the menu)
i know i got:
[FUNCTION f_onchar_create] and [FUNCTION f_onchar_delete]
to work with, but i cant block the entire creation process since the server has to create those three new, blank character "slots"... i want players to handle the delete/create process from within the game :/
Please help