Aide pour un dial d'autodeop qui marche pas

cs_wims Messages postés 2466 Date d'inscription vendredi 23 juillet 2004 Statut Membre Dernière intervention 1 août 2010 - 5 sept. 2004 à 21:03
Hades53 Messages postés 231 Date d'inscription mercredi 12 février 2003 Statut Membre Dernière intervention 7 juillet 2009 - 6 sept. 2004 à 12:07
bon ben voila cette source n'est aps de moi mais elle ne marche pas et je ne compren aps pk si qqun pouvé me dire ce qui va pas et/ou corriger les ereur

3 réponses

cs_wims Messages postés 2466 Date d'inscription vendredi 23 juillet 2004 Statut Membre Dernière intervention 1 août 2010 1
5 sept. 2004 à 21:04
erf g oublier la source chui con:

title "Anti-voice,halfop,op"
box "Ajout d'anti-voice", 1, 10 10 120 200
box "Ajout d'anti-halfop", 2, 130 10 120 200
box " Ajout d'anti-op", 3,250 10 120 200
button "OK", 4,50 215 50 30,ok
button "Annulé", 5,279 215 50 30,cancel
list 6, 20 25 100 170
list 7, 140 25 100 170
list 8, 260 25 100 170
edit "", 9, 20 185 100 20, autohs
edit "", 10, 140 185 100 20, autohs
edit "", 11, 260 185 100 20, autohs
button "Ajouter", 12,165 215 45 20
}
on *:dialog:Ennemi:*:*:{ if ($devent sclick) && ($did 12) { %anti-voice = %anti-voice $did(9) | did -a $dname 6 $did(9) | did -r $dname 9 | did -b $dname 12 } if ($devent sclick) && ($did 12) { %anti-halfop = %anti-halfop $did(10) | did -a $dname 7 $did(10) | did -r $dname 10 | did -b $dname 12 } if ($devent sclick) && ($did 12) { %anti-op = %anti-op $did(11) | did -a $dname 8 $did(11) | did -r $dname 11 | did -b $dname 12 } if ($devent dclick) && ($did 6) { %anti-voice = $remtok(%badwords,$did(6).seltext,32) | if ($did(9) == $did(6).seltext) { did -e $dname 12 } | did -dk $dname 6 $did(6).sel } if ($devent dclick) && ($did 7) { %anti-halfop = $remtok(%badwords,$did(7).seltext,32) | if ($did(10) == $did(7).seltext) { did -e $dname 12 } | did -dk $dname 7 $did(7).sel } if ($devent dclick) && ($did 8) { %anti-op = $remtok(%badwords,$did(8).seltext,32) | if ($did(11) == $did(8).seltext) { did -e $dname 12 } | did -dk $dname 8 $did(8).sel } if ($devent init) { tokenize 32 %anti-voice | var %i 1 | while %i <= $0 { did -a $dname 6 $ [ $+ [ %i ] ] | inc %i } } if ($devent init) { tokenize 32 %anti-halfop | var %i 1 | while %i <= $0 { did -a $dname 7 $ [ $+ [ %i ] ] | inc %i } } if ($devent init) { tokenize 32 %anti-op | var %i 1 | while %i <= $0 { did -a $dname 8 $ [ $+ [ %i ] ] | inc %i } } if ($devent edit) && ($did 9) { did -ar $dname 9 $remove($did(9),$chr(32)) | if ($did(9)) && ($istok(%badwords,$did(9),32) == $false) { did -e $dname 12 } | else { did -b $dname 12 } } if ($devent edit) && ($did 10) { did -ar $dname 10 $remove($did(10),$chr(32)) | if ($did(10)) && ($istok(%badwords,$did(10),32) == $false) { did -e $dname 12 } | else { did -b $dname 12 } } if ($devent edit) && ($did 11) { did -ar $dname 11 $remove($did(11),$chr(32)) | if ($did(11)) && ($istok(%badwords,$did(11),32) == $false) { did -e $dname 12 } | else { did -b $dname 12 } }
}
on *:dialog:Magiques:sclick:*:{
if ($did == 4) {
if ($did(Magiques,9).edited == $true) { set %anti-voice $did($dname,9) }
if ($did(Magiques,10).edited == $true) { set %anti-halfop $did($dname,10) }
if ($did(Magiques,11).edited == $true) { set %anti-op $did($dname,11) }
dialog -x $dname
}
}
on *:OP:#: {
if ($opnick == %anti-op) { /mode # -o $opnick}
}
on *:help:#: {
if ($hnick == %anti-halfop) { /mode # -h $hnick}
}
on *:VOICE:#: {
if ($vnick == %anti-voice) { /mode # -v $vnick}
}
0
talking Messages postés 343 Date d'inscription dimanche 30 novembre 2003 Statut Membre Dernière intervention 19 août 2006 1
5 sept. 2004 à 21:45
déjà il manque le titre du dialog

dialog ennemi {
title "Anti-voice,halfop,op"
box "Ajout d'anti-voice", 1, 10 10 120 200
box "Ajout d'anti-halfop", 2, 130 10 120 200
box " Ajout d'anti-op", 3,250 10 120 200
button "OK", 4,50 215 50 30,ok
button "Annulé", 5,279 215 50 30,cancel
list 6, 20 25 100 170
list 7, 140 25 100 170
list 8, 260 25 100 170
edit "", 9, 20 185 100 20, autohs
edit "", 10, 140 185 100 20, autohs
edit "", 11, 260 185 100 20, autohs
button "Ajouter", 12,165 215 45 20
}

Et ça ça sort d'ou ??
on *:dialog:Magiques:sclick:*:{
if ($did == 4) {
if ($did(Magiques,9).edited == $true) { set %anti-voice $did($dname,9) }
if ($did(Magiques,10).edited == $true) { set %anti-halfop $did($dname,10) }
if ($did(Magiques,11).edited == $true) { set %anti-op $did($dname,11) }
dialog -x $dname
}
}

la dialog Magiques il y en a pas dans la remote est .edited c'est quoi ça
on *:dialog:Magiques:sclick:*:{
if ($did == 4) {
if ($did(9)) { set %anti-voice $ifmatch }
if ($did(10)) { set %anti-halfop $ifmatch }
if ($did(11)) { set %anti-op $ifmatch }
dialog -x $dname
}
}

mais il y a pas de dialog magiques
0
Hades53 Messages postés 231 Date d'inscription mercredi 12 février 2003 Statut Membre Dernière intervention 7 juillet 2009
6 sept. 2004 à 12:07
"est .edited c'est quoi ça"
Propriété qui retourne $true si le contenu d'une editbox a changé.
0
Rejoignez-nous