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