ElMataReyes Posted January 19, 2020 Report Share Posted January 19, 2020 How are they. I would like to be told if the Dialogue is ok, or if I have to accommodate something? Thank you dialog Conex { title "Conex to a new Server" size -1 -1 210 150 option pixels button "Conectar", 2, 13 108 70 25 button "Cancelar", 3, 93 108 70 25, cancel edit "", 4, 55 17 150 20 text "Servidor:", 5, 8 19 46 15 text "Puerto:", 7, 9 41 39 15 edit "", 8, 55 39 50 20 text "Default: 6667", 9, 110 41 90 15 edit "", 10, 55 62 100 21 text "Canal:", 1, 9 64 39 15 edit "", 6, 55 86 100 21 text "Nick:", 11, 10 89 39 15 } on *:DIALOG:Conex:init:0: { did -a Conex 10 %channel did -a Conex 4 %server did -a Conex 8 %port did -a Conex 6 %nickname } on *:DIALOG:Conex:sclick:2: { if (!$did(Conex,4)) { did -a Conex 4 Necesitas ingresar un Servidor! } else { if ($did(Conex,8)) { if ($did(Conex,10).state == 1) { /server -mp $did(Conex,4) $did(Conex,8) } else { /server -p $did(Conex,4) $did(Conex,8) } else { /server -p $did(Conex,4) 6667 } } } %nickname = $did(Conex,6) %server = $did(Conex,4) %port = $did(Conex,8) %channel = $did(Conex,10) dialog -x Conex } on *:connect: { /nick %nickname | /join %channel } Link to comment Share on other sites More sharing options...
err0r Posted January 19, 2020 Report Share Posted January 19, 2020 Yes that covers the very basics but you may want to consider adding a way to Identify if you nickname is registered. Link to comment Share on other sites More sharing options...
ElMataReyes Posted January 20, 2020 Author Report Share Posted January 20, 2020 Is everything ok then? That good !. Thank you. = D. It has given me a good idea, I thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now