Un dualog de configuration que quand quelqu'un Join un canal Ben vous lui dite le message choissi soit : en notice de inck , en notice du chan , en msg du nick ( pv ) , ou en msg sur le chan !
Voila !
Source / Exemple :
~~~~~~~~~~~~~~
Source venant de Cameleon'Script by jujuquatre : irc.jeuxvideo.com : #quizzz
~~~~~~~~~~~~~~
dialog config22 {
title " Configuration du AutoMsgJoin"
size -1 -1 200 65
option dbu
box "",150,1 0 199 65
; icon 1,30 45 32 32, images/icones/ok3.ico
button "Sauvegarder" ,1, 20 48 50 10,ok, flat
button "Aperçu" ,100, 70 48 50 10,flat
button "Annuler",27, 120 48 50 10,flat
;icon 27, 140 45 32 32, images/icones/ok.ico
text "Etat :",22,117 10 40 10
combo 23,140 8 50 50, result drop
combo 25, 10 25 180 150,result drop edit
text " Messages :",26,10 10 60 10
}
on *:dialog:config22:init:*:{
did -a config22 23 Désactivé
did -a config22 23 Activer MSG CHAN
did -a config22 23 Activer MSG PV
did -a config22 23 Activer NOTICE CHAN
did -a config22 23 Activer NOTICE NICK
did -c config22 23 %nivo.amj
did -a config22 25 %amj
did -a config22 25 Salut $nick !!! Sa gaz ??
did -a config22 25 Slt $nick !!!! Bienvenue sur $chan et amuse toi bien !!
did -a config22 25 12 Yop $nick ! 4 Bievenue sur $chan
did -a config22 25 Yop un de plus sur $chan grace a $nick !!
did -c config22 25 1
if ( %nivo.amj == 1) { did -b config22 25 }
}
on *:dialog:config22:sclick:*:{
if $did(config22,23).sel == 1 { set %nivo.amj 1 | did -b config22 25 }
if $did(config22,23).sel == 2 { set %nivo.amj 2 | did -e config22 25 }
if $did(config22,23).sel == 3 { set %nivo.amj 3 | did -e config22 25 }
if $did(config22,23).sel == 4 { set %nivo.amj 4 | did -e config22 25 }
if $did(config22,23).sel == 5 { set %nivo.amj 5 | did -e config22 25 }
if ($did == 25) { set %amj.tps $did(25) }
if ( $did == 1 ) {
If ($did($dname,25) == $null) && ( %nivo.amj != 1) { /set %alert2 L'auto msg Join est activer mais vous n'avez pas preciser de message ! | dialog -m alert2 alert2 }
else { /set %amj $did($dname,25).text | /dialog -x config22 config22 }
}
if ($did == 100 ) { /appercu_amj }
if ($did == 27) { dialog -x config22 config22 }
}
on *:dialog:config22:edit:*:{
if ($did == 25) { set %amj.tps $did(25) }
}
dialog alert2 {
Title "Attention!!!..."
Size -1 -1 350 150
button "OK", 1, 150 120 50 20,cancel,flat
Text "" 2, 50 30 290 80 , center
icon 3 , 10 20 40 40 , images\inconnu.ico
}
on 1:dialog:alert2:init:*: {
/did -a alert2 %alert2
}
;Réponse des Absences
on 1:JOIN:#: {
if ( $nick == $me ) { halt }
if ( %nivo.amj == 1 ) { }
if ( %nivo.amj == 2 ) { /msg $chan $+ %codecouleur $+ %gras $+ %under $+ $+ [ [ %amj ] ] $+ %codecouleur $+ %gras $+ %under $+ $+ ---- %version }
if ( %nivo.amj == 4 ) { /notice $chan $+ %codecouleur $+ %gras $+ %under $+ $+ [ [ %amj ] ] $+ %codecouleur $+ %gras $+ %under $+ $+ ---- %version }
if ( %nivo.amj == 3 ) { /msg $nick $+ %codecouleur $+ %gras $+ %under $+ $+ [ [ %amj ] ] $+ %codecouleur $+ %gras $+ %under $+ $+ ---- %version }
if ( %nivo.amj == 5 ) { /notice $nick $+ %codecouleur $+ %gras $+ %under $+ $+ [ [ %amj ] ] $+ %codecouleur $+ %gras $+ %under $+ $+ ---- %version }
}
else { goto end }
:end
}
alias appercu_amj {
window -ofbakd +e @AutoMessageJoin 85 70 332 270 tahoma 11
/aline -p @AutoMessageJoin %gras $+ %under $+ %codecouleur %amj.tps
}
Conclusion :
Bon voila :)
Dite un commentaire si il y a un prob dans la source :)
Allez @+++
http://membres.lycos.fr/ut2004/juju_bot.php " Bot mIRC Juju_Bot "
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.