- alias rep { dialog -m rep rep }
- alias -l hcolor { if ($1 = e) { return $replace($2-,,~,,s,,§) } | if ($1 = d) { return $replace($2-,~,,s,,§,) } }
- on ^1:open:?:{ if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { msg $nick $hcolor(d,$replace($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg),<nick>,$nick)) } }
- dialog rep {
- title "Repondeur By [thomas95"
- size -1 -1 150 60
- option dbu
- text "Repondeur By Thomas",1,80 48 85 8,disable
- edit "",7,9 8 132 10
- box "Tapez Votre Msg ci-dessou",5,5 0 141 23
- edit "",3, 60 27 86 10,disable
- check "Activ/Desactiv",6,5 27 50 10
- button "Enregistrer",2,5 45 54 12,flat,ok
- }
- on *:dialog:rep:init:*:{
- if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { did -c rep 6 | did -a rep 3 Répondeur: ACTIVÉ }
- else { did -a rep 3 Répondeur: DESACTIVÉ }
- did -a rep 7 $hcolor(d,$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg))
- if (!$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg)) { did -a rep 7 12Salut 4<nick>12. Attend j'arrive. }
- }
- on *:dialog:rep:sclick:2:{
- if ($did(7)) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg $hcolor(e,$did(rep,7)) }
- else { remini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg }
- }
- on *:dialog:rep:sclick:6: {
- if ($did(6).state = 1) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep on | did -ra rep 3 Repondeur: ACTIVÉ }
- else { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep off | did -ra rep 3 Repondeur: DESACTIVÉ }
- }
- menu * {
- -
- Mon Répondeur:/rep
- -
- }
- on 1:load:{ echo -a 15Addon bien loadé | echo -a 15 Pour le lancer tape /rep | .timer 1 1 rep }
alias rep { dialog -m rep rep }
alias -l hcolor { if ($1 = e) { return $replace($2-,,~,,s,,§) } | if ($1 = d) { return $replace($2-,~,,s,,§,) } }
on ^1:open:?:{ if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { msg $nick $hcolor(d,$replace($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg),<nick>,$nick)) } }
dialog rep {
title "Repondeur By [thomas95"
size -1 -1 150 60
option dbu
text "Repondeur By Thomas",1,80 48 85 8,disable
edit "",7,9 8 132 10
box "Tapez Votre Msg ci-dessou",5,5 0 141 23
edit "",3, 60 27 86 10,disable
check "Activ/Desactiv",6,5 27 50 10
button "Enregistrer",2,5 45 54 12,flat,ok
}
on *:dialog:rep:init:*:{
if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { did -c rep 6 | did -a rep 3 Répondeur: ACTIVÉ }
else { did -a rep 3 Répondeur: DESACTIVÉ }
did -a rep 7 $hcolor(d,$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg))
if (!$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg)) { did -a rep 7 12Salut 4<nick>12. Attend j'arrive. }
}
on *:dialog:rep:sclick:2:{
if ($did(7)) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg $hcolor(e,$did(rep,7)) }
else { remini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg }
}
on *:dialog:rep:sclick:6: {
if ($did(6).state = 1) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep on | did -ra rep 3 Repondeur: ACTIVÉ }
else { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep off | did -ra rep 3 Repondeur: DESACTIVÉ }
}
menu * {
-
Mon Répondeur:/rep
-
}
on 1:load:{ echo -a 15Addon bien loadé | echo -a 15 Pour le lancer tape /rep | .timer 1 1 rep }