SphereCommunity

Full Version: one doubt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
sup

what command should i use for when a player creates a char, does the server create a dialog box on the player screen?

Quote:[FUNCTION f_onchar_create]
src.allskills 290
src.go 5387,1138
SRC.STR=100
SRC.HITS=100
SRC.DEX=100
SRC.STAM=100
SRC.INT=100
SRC.MANA=100
SRC.STONE 1
SERv. ??????? DIALOG_UP d_entrada <<<<<<<<

serv.allclients is for all users, i need a command that serves only a specific user
just src.dialog

if your having troubles with it showing up on character create do timerf 1,dialog d_entrada
(01-06-2018 03:54 AM)Soulless Wrote: [ -> ]just src.dialog

if your having troubles with it showing up on character create do timerf 1,dialog d_entrada

i tried to use src.dialog but I got an error

16:10:1:Setup_CreateDialog acct='jex3566', char='efefef'
16:10:ERROR:(functions4.scp,83)Can't trysrc SRC.SDIALOG d_entrada object efefef (028f4) with src efefef (028f4)
I solved this like this:

add to your sphere.ini a common event to all your players:
Code:
// Events related to all players
//EventsPlayer=your_event
EventsPlayer=e_popup

then you create a script with the event like this:
Code:
[EVENTS e_popup]
ON=@Login
SRC.DIALOG d_popup

if you want this popup to be opened only once, add a tag and a tagcheck.
hope it helps.
Reference URL's