Systeme away help plz

ketamin Messages postés 10 Date d'inscription lundi 8 mars 2004 Statut Membre Dernière intervention 25 mai 2004 - 8 mars 2004 à 23:31
ketamin Messages postés 10 Date d'inscription lundi 8 mars 2004 Statut Membre Dernière intervention 25 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

ps l addon et pas de moi

ialog away {
title "System d'absence Canna-Script"
size -1 -1 250 200
button "Fermer", 1, 10 10 70 25, cancel
text " Pseudo :", 2, 10 45 68 15
edit "", 3, 83 43 157 22, autohs limit 30
text "Raison :", 4, 10 70 40 15
edit "", 5, 60 67 180 22, autohs
check "Afficher votre message d'absence", 6, 10 95 178 15
radio "Sur tous les canaux", 7, 10 120 110 15
radio "Sur la fenêtre active", 8, 10 145 120 15
button "S'Absenter", 9, 90 165 70 25, Ok
}

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 [ $+ [ * ] ]
}

voila merci

4 réponses

cs_SornDrixer Messages postés 2084 Date d'inscription jeudi 12 décembre 2002 Statut Membre Dernière intervention 30 janvier 2011 8
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.

Vous pouvez me retrouver sur koliserv.dyndns.org
0
vesparo Messages postés 230 Date d'inscription samedi 6 septembre 2003 Statut Membre Dernière intervention 13 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-)
0
cs_SornDrixer Messages postés 2084 Date d'inscription jeudi 12 décembre 2002 Statut Membre Dernière intervention 30 janvier 2011 8
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.

Vous pouvez me retrouver sur koliserv.dyndns.org
0
ketamin Messages postés 10 Date d'inscription lundi 8 mars 2004 Statut Membre Dernière intervention 25 mai 2004
9 mars 2004 à 19:30
ok c cool je vous remerci
0
Rejoignez-nous