|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
CONFIGURATION DES ACCESS+RACCOURCI (EN DIALOG)
Information sur la source
Description
Ben voila un ptit dialog qui vous permettra de configurer vos access sur les différents bots avec des raccourci de type !bot. Ainsi d'une simple commande vous serez authentifier (voir oper si vous rajouter la ligne de commande : me demander si vous ne savez pas faire.
Source
- -----------------------------------
- ;Dialog pour configuration de pass;
- ; By Leoden ;
- -----------------------------------
-
- on *:LOAD:{
- /echo -a 2Tu viens de Loader mon ptit addon!
- /echo -a 2Merci et j'espere qu'il te plaira!
- set %robot1 nom du robot
- set %robot2 nom du robot
- set %robot3 nom du robot
- set %robot4 nom du robot
- set %robot5 nom du robot
- set %robot6 nom du robot
- set %auth1 ton pass
- set %auth2 ton pass
- set %auth3 ton pass
- set %auth4 ton pass
- set %auth5 ton pass
- set %auth6 ton pass
- }
-
- menu channel,menubar,query {
- -
- Configuration pass:/dialog -m pass pass
- }
-
- dialog pass {
- title "Pass pour Eggdrop"
- size -1 -1 200 161
- option dbu
- text "!Bot1", 1, 7 22 25 8, center
- ;la aussi vous pouvez changer le nom du raccourci selon votre envie mais n'oubliez pas les ""
- text "!Bot2", 2, 7 42 25 8, center
- text "!Bot3", 3, 7 62 25 8, center
- text "!Bot4", 4, 7 82 25 8, center
- text "!Bot5", 5, 7 102 25 8, center
- text "!Bot6", 6, 7 122 25 8, center
- edit "", 7, 37 20 71 10, autohs
- edit "", 8, 37 40 71 10, autohs
- edit "", 9, 37 60 71 10, autohs
- edit "", 10, 37 80 71 10, autohs
- edit "", 11, 37 100 71 10, autohs
- edit "", 12, 37 120 71 10, autohs
- edit "", 13, 120 20 71 10, autohs
- edit "", 14, 120 40 71 10, autohs
- edit "", 15, 120 60 71 10, autohs
- edit "", 16, 120 80 71 10, autohs
- edit "", 17, 120 100 71 10, autohs
- edit "", 18, 120 120 71 10, autohs
- box "Nom du Robot", 19, 34 7 77 130
- box "Auth/pass", 20, 116 8 79 129
- button "OK", 21, 144 140 49 13, ok
- link "Création Leoden : Leoden@hotmail.com", 22, 34 143 98 10
- }
-
- on *:dialog:pass:init:0:{
- did -a pass 7 %robot1
- did -a pass 8 %robot2
- did -a pass 9 %robot3
- did -a pass 10 %robot4
- did -a pass 11 %robot5
- did -a pass 12 %robot6
- did -a pass 13 %auth1
- did -a pass 14 %auth2
- did -a pass 15 %auth3
- did -a pass 16 %auth4
- did -a pass 17 %auth5
- did -a pass 18 %auth6
- }
-
- on *:dialog:pass:sclick:21:{
- set %robot1 $did(7)
- set %robot2 $did(8)
- set %robot3 $did(9)
- set %robot4 $did(11)
- set %robot5 $did(12)
- set %robot6 $did(13)
- set %auth1 $did(14)
- set %auth2 $did(15)
- set %auth3 $did(16)
- set %auth4 $did(17)
- set %auth5 $did(18)
- set %auth6 $did(19)
- }
-
- on *:INPUT:*: {
- if ($1 == !bot1) { msg $chan $1- | /msg %robot1 auth %auth1 | halt }
- ;il vous est toutefois possible de changer le "auth" par "pass" si le bot le demande
- ;le racourci "!bot1" pareil en mettant ce que vous voulez ceci n'est qu'un exemple
- if ($1 == !bot2) { msg $chan $1- | /msg %robot2 auth %auth2 | halt }
- if ($1 == !bot3) { msg $chan $1- | /msg %robot3 auth %auth3 | halt }
- if ($1 == !bot4) { msg $chan $1- | /msg %robot4 auth %auth4 | halt }
- if ($1 == !bot5) { msg $chan $1- | /msg %robot5 auth %auth5 | halt }
- if ($1 == !bot6) { msg $chan $1- | /msg %robot6 auth %auth6 | halt }
- }
-
-----------------------------------
;Dialog pour configuration de pass;
; By Leoden ;
-----------------------------------
on *:LOAD:{
/echo -a 2Tu viens de Loader mon ptit addon!
/echo -a 2Merci et j'espere qu'il te plaira!
set %robot1 nom du robot
set %robot2 nom du robot
set %robot3 nom du robot
set %robot4 nom du robot
set %robot5 nom du robot
set %robot6 nom du robot
set %auth1 ton pass
set %auth2 ton pass
set %auth3 ton pass
set %auth4 ton pass
set %auth5 ton pass
set %auth6 ton pass
}
menu channel,menubar,query {
-
Configuration pass:/dialog -m pass pass
}
dialog pass {
title "Pass pour Eggdrop"
size -1 -1 200 161
option dbu
text "!Bot1", 1, 7 22 25 8, center
;la aussi vous pouvez changer le nom du raccourci selon votre envie mais n'oubliez pas les ""
text "!Bot2", 2, 7 42 25 8, center
text "!Bot3", 3, 7 62 25 8, center
text "!Bot4", 4, 7 82 25 8, center
text "!Bot5", 5, 7 102 25 8, center
text "!Bot6", 6, 7 122 25 8, center
edit "", 7, 37 20 71 10, autohs
edit "", 8, 37 40 71 10, autohs
edit "", 9, 37 60 71 10, autohs
edit "", 10, 37 80 71 10, autohs
edit "", 11, 37 100 71 10, autohs
edit "", 12, 37 120 71 10, autohs
edit "", 13, 120 20 71 10, autohs
edit "", 14, 120 40 71 10, autohs
edit "", 15, 120 60 71 10, autohs
edit "", 16, 120 80 71 10, autohs
edit "", 17, 120 100 71 10, autohs
edit "", 18, 120 120 71 10, autohs
box "Nom du Robot", 19, 34 7 77 130
box "Auth/pass", 20, 116 8 79 129
button "OK", 21, 144 140 49 13, ok
link "Création Leoden : Leoden@hotmail.com", 22, 34 143 98 10
}
on *:dialog:pass:init:0:{
did -a pass 7 %robot1
did -a pass 8 %robot2
did -a pass 9 %robot3
did -a pass 10 %robot4
did -a pass 11 %robot5
did -a pass 12 %robot6
did -a pass 13 %auth1
did -a pass 14 %auth2
did -a pass 15 %auth3
did -a pass 16 %auth4
did -a pass 17 %auth5
did -a pass 18 %auth6
}
on *:dialog:pass:sclick:21:{
set %robot1 $did(7)
set %robot2 $did(8)
set %robot3 $did(9)
set %robot4 $did(11)
set %robot5 $did(12)
set %robot6 $did(13)
set %auth1 $did(14)
set %auth2 $did(15)
set %auth3 $did(16)
set %auth4 $did(17)
set %auth5 $did(18)
set %auth6 $did(19)
}
on *:INPUT:*: {
if ($1 == !bot1) { msg $chan $1- | /msg %robot1 auth %auth1 | halt }
;il vous est toutefois possible de changer le "auth" par "pass" si le bot le demande
;le racourci "!bot1" pareil en mettant ce que vous voulez ceci n'est qu'un exemple
if ($1 == !bot2) { msg $chan $1- | /msg %robot2 auth %auth2 | halt }
if ($1 == !bot3) { msg $chan $1- | /msg %robot3 auth %auth3 | halt }
if ($1 == !bot4) { msg $chan $1- | /msg %robot4 auth %auth4 | halt }
if ($1 == !bot5) { msg $chan $1- | /msg %robot5 auth %auth5 | halt }
if ($1 == !bot6) { msg $chan $1- | /msg %robot6 auth %auth6 | halt }
}
Conclusion
rien a signaler ça marche normalement :o)
Sources de la même categorie
Commentaires et avis
|
Comparez les prix Nouvelle version
|