Camanche
Messages postés149Date d'inscriptionjeudi 23 octobre 2003StatutMembreDernière intervention17 novembre 2007
-
6 janv. 2006 à 21:18
fjxokt
Messages postés840Date d'inscriptionvendredi 28 janvier 2005StatutMembreDernière intervention25 février 2009
-
6 janv. 2006 à 21:50
Quelle est la condition "sauf si" sous mirc? svp
Voila je vous explique, ma remote sert à chager le fond du salon en fonction de si on est user, voice ou op. Voila le code:
ON *:JOIN:$chan: if ($nick == $me) { /background # scripts\salonuser.png }
ON *:voice:$chan: if ($vnick == $me) { /background # scripts\salonvoice.png }
ON *:devoice:$chan: if ($vnick == $me) { /background # scripts\salonuser.png }
ON *:OP:$chan: if ($opnick == $me) { /background # scripts\salonop.png }
ON *:DEOP:$chan:{
if $me isvoice # { background # scripts\salonvoice.png }
elseif $opnick == $me { background # scripts\salonuser.png }
}
En fait je voudrais que si je joins #salon, je puisse mettre une autre image de fond. Donc j'ai fait ça:
ON *:JOIN:#amour: if ($nick == $me) { /background # scripts\amouruser.png }
ON *:voice:#amour: if ($vnick == $me) { /background # scripts\amourvoice.png }
ON *:devoice:#amour: if ($vnick == $me) { /background # scripts\amouruser.png }
ON *:OP:#amour: if ($opnick == $me) { /background # scripts\amourop.png }
ON *:DEOP:#amour:{
if $me isvoice # { background # scripts\amourvoice.png }
elseif $opnick == $me { background # scripts\amouruser.png }
}
Ca me met bien amouruser.png sur le salon #amour à la connexion mais ça me remet tout de suite après salonuser.png.
fjxokt
Messages postés840Date d'inscriptionvendredi 28 janvier 2005StatutMembreDernière intervention25 février 20091 6 janv. 2006 à 21:50
normal ton event on *:join:$chan réagit pour tous les salons, #amour inclut
en gros tu dois rajouter dans touts tes events du premier code
if ($chan != #amour)
sinon les condition du style
if $vnick == $me peuvent être remplacées par un
on *me:event , dans ce cas l'event ne fonctionnera que pour moi , et l'inverse est on !*:event
un exemple pour resoudre ton pb
ON me*:JOIN:*: if ($chan != #amour) { /background # scripts\salonuser.png }