Changement de fond

Résolu
Camanche Messages postés 149 Date d'inscription jeudi 23 octobre 2003 Statut Membre Dernière intervention 17 novembre 2007 - 9 janv. 2006 à 05:55
COOLMAN002 Messages postés 969 Date d'inscription lundi 16 juin 2003 Statut Membre Dernière intervention 1 juillet 2012 - 23 janv. 2006 à 23:34
Voilà mon problème:

1ere remote
ON me*:JOIN:#amour: { /background # scripts\amouruser.png }
ON me*:voice:#amour: { /background # scripts\amourvoice.png }
ON me*:devoice:#amour: { /background # scripts\amouruser.png }
ON me*:OP:#amour: { /background # scripts\amourop.png }
ON me*:DEOP:#amour:{
if $me isvoice # { background # scripts\amourvoice.png }
elseif $opnick = = $me { background # scripts\amouruser.png }
}

2eme remote
ON me*:JOIN:#: if ($chan ! = #amour) { /background # scripts\salonuser.png }
ON me*:voice:#: if ($chan != #amour) { /background # scripts\salonvoice.png }
ON me*:devoice:#: if ($chan != #amour) { /background # scripts\salonuser.png }
ON me*:OP:#: if ($chan != #amour) { /background # scripts\salonop.png }
ON me*:DEOP:#: if ($chan != #amour) {
if $me isvoice # { background # scripts\salonvoice.png }
elseif $opnick == $me { background # scripts\salonuser.png }
}
}

Je pense que vous avez compris, il s'git d'un changement de backround avec un salon différent.
Donc tout fonctionne sauf le deop de tous les salons (exceptés #amour), qu'on soit voice ou pas avant d'etre op.

Donc le probleme se situe ici:
ON me*:DEOP:#: if ($chan ! = #amour) {
if $me isvoice # { background # scripts\salonvoice.png }
elseif $opnick == $me { background # scripts\salonuser.png }
}
}

Avez-vous une idée?

Camanche

9 réponses

COOLMAN002 Messages postés 969 Date d'inscription lundi 16 juin 2003 Statut Membre Dernière intervention 1 juillet 2012 1
23 janv. 2006 à 23:34
Dans un evenement raw, $chan n'a aucunne valeur...

raw 366:*:{
;Si le salon est #amour
if ($2 = #amour) { background $2 ... }
;Sinon ...
else { background $2 }
}
3
cs_KiNdErMaXi Messages postés 1052 Date d'inscription samedi 10 juillet 2004 Statut Membre Dernière intervention 30 novembre 2009 2
9 janv. 2006 à 17:24
ON me*:DEOP:#: if ($chan != #amour) {
if $me isvoice # { background # scripts\salonvoice.png }
else { background # scripts\salonuser.png }
}
}

??
0
Zova Messages postés 150 Date d'inscription mardi 15 juin 2004 Statut Membre Dernière intervention 24 août 2010 2
9 janv. 2006 à 19:00
Dans ce cas Kinder_Maxi on utilise plutôt :

ON me*:DEOP:#:
if ($chan != #amour) {
background $chan scripts\ $+$iif($me isvoice $chan,salonvoice.png,salonuser.png)
}
}

.:]| z0va / Zova |[:.
0
cs_Huitre Messages postés 290 Date d'inscription mardi 21 janvier 2003 Statut Membre Dernière intervention 29 février 2008
10 janv. 2006 à 00:00
la derniere } est de trop.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Camanche Messages postés 149 Date d'inscription jeudi 23 octobre 2003 Statut Membre Dernière intervention 17 novembre 2007
10 janv. 2006 à 04:33
J'ai lachement abandonné cette idée car ça ne marche jamais comme je veux. Soit le script ne me met pas la background qu'il faut, soit il réagit aux actions des autres users aussi.

J'en suis revenu à la même chose pour tous les salons

ON *:JOIN:#: if ($nick == $me) { /background # scripts\salonuser.png }
ON *:voice:#: if ($vnick == $me) { /background # scripts\salonvoice.png }
ON *:devoice:#: if ($vnick == $me) { /background # scripts\salonuser.png }
ON *:OP:#: if ($opnick == $me) { /background # scripts\salonop.png }
ON *:DEOP:#:{
if $me isvoice # { background # scripts\salonvoice.png }
elseif $opnick == $me { background # scripts\salonuser.png }
}

Camanche
0
Mc_AbBeR Messages postés 301 Date d'inscription mercredi 15 juin 2005 Statut Membre Dernière intervention 19 février 2007
10 janv. 2006 à 19:20
on *:rawmode:#:{
if ($me isin $2) {
if (-o isin $1) background # $iif($me isvoice $chan,scripts\salonvoice.png,scripts\salonuser.png)
elseif (+o isin $1) background # scripts\salonop.png }
elseif (+v isin $1) background # $iif($me !isop $chan,scripts\salonvoice.png)
elseif (-v isin $1) background # $iif($me !isop $chan,scripts\salonuser.png)
}
}
0
RCA ArKanis Messages postés 1287 Date d'inscription mercredi 21 avril 2004 Statut Membre Dernière intervention 21 février 2009
13 janv. 2006 à 22:48
utilité du $me isin $2 ?
if ($me == $2) ça marcherait pas tout antant ?
si quelqu'un met +k "tonpseudo", l'action se réalisera

tes +o/+v/-v ne sont pas corrects (on en avait déjà parlé sur un autre topic)
=> ne marche pas si une personne met +mo (par exemple)
0
J4Gu4R Messages postés 385 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 3 juillet 2007
22 janv. 2006 à 18:06
ton idée est bien alors jme suis un peu penché dessus et je m'en suis fait un :

on *:DEOP:#:{
if ($opnick == $me) {
background # scripts\amourop.png }
else {
if ($me isvo #) {
background # scripts\salonvoice.png
}
}
else {
background # scripts\salonuser.png
}
}

je pense qu'avec un petit on join ou tu met la condition soit tu es op soit c'est l'image normal

voir même un on load pour évité d'avoir un message d'erreur vilain si ça load pas l'image

enfin peut etre que c'est pas le meilleur
0
Camanche Messages postés 149 Date d'inscription jeudi 23 octobre 2003 Statut Membre Dernière intervention 17 novembre 2007
23 janv. 2006 à 23:17
C'est bon j'ai trouvé:
ON *:JOIN:#: if ($chan !#amour) if ($nick $me) { /background # scripts\salonuser.png }ON *:voice:#: if ($chan !#amour) if ($vnick $me) { /background # scripts\salonvoice.png }ON *:devoice:#: if ($chan !#amour) if ($vnick $me) { /background # scripts\salonuser.png }ON *:OP:#: if ($chan !#amour) if ($opnick $me) { /background # scripts\salonop.png }
on *:DEOP:#: { if ($chan != #amour) if ($me isvoice #) { background # scripts\salonvoice.png }
elseif ($opnick == $me) { /background # scripts\salonuser.png } }


ON *:JOIN:#: if ($chan #amour) if ($nick $me) { /background # scripts\amouruser.png }ON *:voice:#: if ($chan #amour) if ($vnick $me) { /background # scripts\amourvoice.png }ON *:devoice:#: if ($chan #amour) if ($vnick $me) { /background # scripts\amouruser.png }ON *:OP:#: if ($chan #amour) if ($opnick $me) { /background # scripts\amourop.png }
on *:DEOP:#: { if ($chan == #amour) if ($me isvoice #) { background # scripts\amourvoice.png }
elseif ($opnick == $me) { /background # scripts\amouruser.png } }

Par con j'ai encore un problème pour la raw 366 (pour mettre le fond op sur un salon quand on y arrive tout seul), j'ai essayé ça:

raw 366:*: if ($chan == #amour) background $2 $iif($me isop $2,scripts\amourop.png,scripts\amouruser.png) if ($chan != #amour) background $2 $iif($me isop $2,scripts\salonop.png,scripts\salonuser.png)

Mais ça ne marche pas.

Avez vous une idée?

Camanche
0
Rejoignez-nous