Trouver une ressource (Nouvelle version du moteur, plus rapide & pertinent, essayez le !)
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
HIGHLIGHT MANAGER V1.0
Information sur la source
Description
Bon tout d'abord je sais que un system highlight c'est vu vu et revu... Mais le mien n'est pas comme ceux que l'on trouve souvent qui contiennent une seul ligne totalement non configurable, sans amélioration et sans dialogue.
Donc voila j'espere que ca vous plaira, si vous trouvez des bugs (et ou) des fautes quelconques signalez-le moi dans vos commentaires.
Excusez moi pour le by [VeSpArO] je savait pas quoi mettre car avant il devait y avoir un fichier d'aide et un boutton lire l'aide et en faite j'avait la flemme (veuillez m'en excusez) de faire l'aide.
Merci.
[VeSpArO]
MISES A JOUR:
Correction du dialogue(Un button s'appeler Button au lieu de Musique Choisie)
Amelioration des $did(9) != $null ->> $did(9))
Correction du ON TEXT(rajout de if ($active == $chan) { halt }
Prochainement MISE A JOUR du screenshot.
Source
- On *:LOAD:{
- echo -a HighLight Manager V1.0 Bien Loadé
- set %al ON
- set %hlsons ON
- }
- alias hlm { dialog -dm hlm hlm }
- dialog hlm {
- title "HighLight Manager V1.0"
- size -1 -1 149 127
- option dbu
- box "HLManager Version 1.0 By [VeSpArO]", 7, 1 1 99 125
- list 8, 6 50 90 75, size
- edit "", 9, 8 16 47 10, limit 5000
- button "Ajouter", 10, 60 16 37 12, flat
- button "Effacer", 11, 60 33 37 12, flat
- button "Alerte", 12, 8 33 37 12, flat
- box "Partie Sons", 14, 100 1 48 90
- button "Sons", 15, 105 16 37 12, flat
- button "Chercher", 16, 105 33 37 12, flat
- text "By [VeSpArO]", 19, 105 73 37 12,
- button "Fermer", 20, 105 105 37 12, flat cancel
- button "Musique Choisie", 21, 105 53 37 12, flat
- box "Fin Highlight", 22, 100 92 48 34
- }
- On *:DIALOG:hlm:*:*:{
- if $devent == init {
- if $exists(hlnick.txt) { loadbuf -o $dname 8 hlnick.txt }
- did -a $dname 12 Alerte: %al
- did -a $dname 15 Sons: %hlsons
- }
- if $devent == sclick {
- if $did == 10 && $did(9)) { did -r $dname 8 | write hlnick.txt $did(9) | loadbuf -o $dname 8 hlnick.txt }
- if $did == 11 { did -d $dname 8 $did(8).sel | write -dl hlnick.txt $did(8).seltext }
- if $did == 12 && %al == ON { did -a $dname 12 Alerte: OFF | set %al OFF }
- elseif %al == OFF { did -a $dname 12 Alerte: ON | set %al ON }
- if $did == 15 && %hlsons == ON { did -a $dname 15 Sons: OFF | set %hlsons OFF }
- elseif %hlsons == OFF { did -a $dname 15 Sons: ON | set %hlsons ON }
- if $did == 16 { set %hlson $sfile( *.mp3 , Choisissez un fichier audio ) }
- if $did == 21 && %hlson != $null { echo -a La Musique choisie est : $sounds(%hlson).title }
- }
- }
- On *:TEXT:*:#:{
- if ($active == $chan) { halt }
- if ($read(hlnick.txt,w,$+(*,$1,*)) isin $1-) && %al == ON && %hlsons == ON { echo -a (Alerte): $nick $+ ( $+ $address $+ ), vient de prononcer ton pseudo ( $+ $me $+ ) sur $chan a $time le $date | splay -p %hlson }
- elseif %hlsons == OFF { echo -a (Alerte): $nick $+ ( $+ $address $+ ), vient de prononcer ton pseudo ( $+ $me $+ ) sur $chan a $time le $date }
- }
On *:LOAD:{
echo -a HighLight Manager V1.0 Bien Loadé
set %al ON
set %hlsons ON
}
alias hlm { dialog -dm hlm hlm }
dialog hlm {
title "HighLight Manager V1.0"
size -1 -1 149 127
option dbu
box "HLManager Version 1.0 By [VeSpArO]", 7, 1 1 99 125
list 8, 6 50 90 75, size
edit "", 9, 8 16 47 10, limit 5000
button "Ajouter", 10, 60 16 37 12, flat
button "Effacer", 11, 60 33 37 12, flat
button "Alerte", 12, 8 33 37 12, flat
box "Partie Sons", 14, 100 1 48 90
button "Sons", 15, 105 16 37 12, flat
button "Chercher", 16, 105 33 37 12, flat
text "By [VeSpArO]", 19, 105 73 37 12,
button "Fermer", 20, 105 105 37 12, flat cancel
button "Musique Choisie", 21, 105 53 37 12, flat
box "Fin Highlight", 22, 100 92 48 34
}
On *:DIALOG:hlm:*:*:{
if $devent == init {
if $exists(hlnick.txt) { loadbuf -o $dname 8 hlnick.txt }
did -a $dname 12 Alerte: %al
did -a $dname 15 Sons: %hlsons
}
if $devent == sclick {
if $did == 10 && $did(9)) { did -r $dname 8 | write hlnick.txt $did(9) | loadbuf -o $dname 8 hlnick.txt }
if $did == 11 { did -d $dname 8 $did(8).sel | write -dl hlnick.txt $did(8).seltext }
if $did == 12 && %al == ON { did -a $dname 12 Alerte: OFF | set %al OFF }
elseif %al == OFF { did -a $dname 12 Alerte: ON | set %al ON }
if $did == 15 && %hlsons == ON { did -a $dname 15 Sons: OFF | set %hlsons OFF }
elseif %hlsons == OFF { did -a $dname 15 Sons: ON | set %hlsons ON }
if $did == 16 { set %hlson $sfile( *.mp3 , Choisissez un fichier audio ) }
if $did == 21 && %hlson != $null { echo -a La Musique choisie est : $sounds(%hlson).title }
}
}
On *:TEXT:*:#:{
if ($active == $chan) { halt }
if ($read(hlnick.txt,w,$+(*,$1,*)) isin $1-) && %al == ON && %hlsons == ON { echo -a (Alerte): $nick $+ ( $+ $address $+ ), vient de prononcer ton pseudo ( $+ $me $+ ) sur $chan a $time le $date | splay -p %hlson }
elseif %hlsons == OFF { echo -a (Alerte): $nick $+ ( $+ $address $+ ), vient de prononcer ton pseudo ( $+ $me $+ ) sur $chan a $time le $date }
}
Conclusion
Merci a Coolman002 pour la partie du $read et les bugs corrigés grâce a lui
(Je met niveau débutant).
Voila A+.
Sources de la même categorie
Commentaires
|
CalendriCode
| | | L | M | M | J | V | S | D |
| | | | | 1 | 2 | 3 |
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
|
|