ketamin
Messages postés10Date d'inscriptionlundi 8 mars 2004StatutMembreDernière intervention25 mai 2004
-
8 mars 2004 à 23:31
ketamin
Messages postés10Date d'inscriptionlundi 8 mars 2004StatutMembreDernière intervention25 mai 2004
-
9 mars 2004 à 19:30
voila j ai toruver un systee away simple mais le message s affiche en /me en violer moi ej voudrais ki soit en/say come si j ecrivais un mess normale j ai bo cherhce ds la source j ai pas trouver je vou montre la source
On *:DIALOG:away:init:0:{
did -c away 6
did -c away 8
did -ra away 3 $me $+ |Oqp
did -ra away 5 Je ne suis pas là pour le moment
unset %OCS.away [ $+ [ * ] ]
set %OCS.away.affichemsg on
}
On *:DIALOG:away:sclick:6:{
if (%OCS.away.affichemsg == off) {
did -e away 7,8
did -c away 6,8
set %OCS.away.affichemsg on
halt
}
if (%OCS.away.affichemsg == on) {
did -bu away 7,8
did -u away 6
set %OCS.away.affichemsg off
}
}
On *:DIALOG:away:sclick:7:/set %OCS.away.amsg on
On *:DIALOG:away:edit:3:{
did -e away 9
if ($did(3) == $null) did -b away 9
}
On *:DIALOG:away:sclick:9:{
set %OCS.away on
set %OCS.away.nick $me
set %OCS.away.raison $did(5)
if ($did(5) == $null) set %OCS.away.raison (Aucune)
if (%OCS.away.affichemsg == on) {
if (%OCS.away.amsg == on) { ame Je m abscente car : %OCS.away.raison | goto fin } if ($active Status Window) && ($chan(1) $null) goto fin
if ($active == Status Window) { describe $chan(1) Je m abscente car : %OCS.away.raison | goto fin }
describe $active Je m abscente car : %OCS.away.raison
:fin
}
nick $did(3)
.away %OCS.away.raison
}
alias aways dialog -m away away
alias backs {
if (%OCS.away != on) halt
if (%OCS.away.affichemsg == on) {
if (%OCS.away.amsg == on) { ame est de retour ! j'etait pas la car : %OCS.away.raison | goto fin } if ($active Status Window) && ($chan(1) $null) goto fin
if ($active == Status Window) { describe $chan(1) est de retour ! j'etait pas la car : %OCS.away.raison | goto fin }
describe $active est de retour ! j'etait pas la car : %OCS.away.raison
:fin
}
nick %OCS.away.nick
.away
unset %OCS.away [ $+ [ * ] ]
}
cs_SornDrixer
Messages postés2084Date d'inscriptionjeudi 12 décembre 2002StatutMembreDernière intervention30 janvier 20118 9 mars 2004 à 07:03
Bonjour,
Remplace tout les "describe $active" que tu vois dans la source par des "msg $active", et le tour est joué.
-<gras>[ Sorn_Drixer ]-</gras>
-
Un problème ? une question ? N'hésitez pas, le forum est là pour ça.
vesparo
Messages postés230Date d'inscriptionsamedi 6 septembre 2003StatutMembreDernière intervention13 mai 2004 9 mars 2004 à 13:19
autre remarque au lieu de faire unset %lavariable et que tu souhaite enlever toutes les set tu fait unsetall c'est bien plus simple ce qui réduirait ton code !
[VeSpArO] 8-)
cs_SornDrixer
Messages postés2084Date d'inscriptionjeudi 12 décembre 2002StatutMembreDernière intervention30 janvier 20118 9 mars 2004 à 16:43
/unsetall a pour effet d'effacer toutes les variables de mIRC, y compris celle qui n'ont rien avoir avec son system d'away, donc cette commande est à déconseiller.
unset %OCS.away [ $+ [ * ] ] est tout à fait recommandé, il effacera toutes les variables ayant un nom commencant par OCS.away
(en fait, unset %OCS.away* aurait été plus court, les crochets ne servent à rien)
-<gras>[ Sorn_Drixer ]-</gras>
-
Un problème ? une question ? N'hésitez pas, le forum est là pour ça.