alias snd { $opens(configson) }
dialog configson {
  title "Sons du Script"
  size -1 -1 173 105
  option dbu
  box "Toi", 5, 6 9 73 89
  check "", 12, 34 18 9 10
  check "", 13, 34 29 9 10
  check "", 14, 34 40 9 10
  check "", 15, 34 51 9 10
  check "", 16, 34 62 9 10
  check "", 17, 34 73 9 10
  check "", 18, 34 85 9 10
  check "", 19, 69 18 9 10
  check "", 20, 69 29 9 10
  check "", 21, 69 40 9 10
  box "Les autres", 22, 82 9 41 77
  check "", 29, 111 18 9 10
  check "", 30, 111 29 9 10
  check "", 31, 111 40 9 10
  check "", 32, 111 51 9 10
  check "", 33, 111 62 9 10
  check "", 34, 111 73 9 10
  button "Ok !!!", 35, 125 68 41 17, ok
  check "", 37, 69 51 9 10
  check "", 39, 69 62 9 10
  check "", 41, 69 73 9 10
  box "Divers", 42, 125 9 41 32
  check "", 45, 153 18 9 10
  check "", 46, 153 29 9 10
  edit "", 50, 81 88 86 10, read autohs
  button "Cliquez içi pour rétablir les sons par défaut...", 54, 125 43 41 24, multi
  list 1, 9 18 22 10, size
  list 2, 9 29 22 10, size
  list 3, 9 40 22 10, size
  list 4, 9 51 22 10, size
  list 6, 9 62 22 10, size
  list 7, 9 73 22 10, size
  list 8, 9 85 22 10, size
  list 9, 44 18 22 10, size
  list 10, 44 29 22 10, size
  list 11, 44 40 22 10, size
  list 36, 44 51 22 10, size
  list 38, 44 62 22 10, size
  list 40, 44 73 22 10, size
  list 43, 86 18 22 10, size
  list 44, 86 29 22 10, size
  list 56, 86 40 22 10, size
  list 57, 86 51 22 10, size
  list 58, 86 62 22 10, size
  list 59, 86 73 22 10, size
  list 60, 128 18 22 10, size
  list 61, 128 29 22 10, size
  box "Sons du script", 23, 2 1 169 100
  button "?aide?", 24, 44 85 32 10
}

on *:dialog:configson:dclick:1:{
  set %son-op-twa $dir="Choisi un fichier son quand on te OP" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-op-twa
}
on *:dialog:configson:sclick:1:{
  did -a configson 50 %son-op-twa | splay %son-op-twa
}
on *:dialog:configson:dclick:2:{
  set %son-deop-twa $dir="Choisi un fichier son quand on te DEOP" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-deop-twa
}
on *:dialog:configson:sclick:2:{
  did -a configson 50 %son-deop-twa | splay %son-deop-twa
}
on *:dialog:configson:dclick:3:{
  set %son-v-twa $dir="Choisi un fichier son quand on te VOICE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-v-twa
}
on *:dialog:configson:sclick:3:{
  did -a configson 50 %son-v-twa | splay %son-v-twa
}
on *:dialog:configson:dclick:4:{
  set %son-dv-twa $dir="Choisi un fichier son quand on te DEVOICE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-dv-twa
}
on *:dialog:configson:sclick:4:{
  did -a configson 50 %son-dv-twa | splay %son-dv-twa
}
on *:dialog:configson:dclick:36:{
  set %son-invite-twa $dir="Choisi un fichier son quand on t'INVITE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-invite-twa
}
on *:dialog:configson:sclick:36:{
  did -a configson 50 %son-invite-twa | splay %son-invite-twa
}
on *:dialog:configson:dclick:6:{
  set %son-kick-twa $dir="Choisi un fichier son quand on te KICK" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-kick-twa
}
on *:dialog:configson:sclick:6:{
  did -a configson 50 %son-kcik-twa | splay %son-kick-twa
}
on *:dialog:configson:dclick:7:{
  set %son-ban-twa $dir="Choisi un fichier son quand on te BAN" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-ban-twa
}
on *:dialog:configson:sclick:7:{
  did -a configson 50 %son-ban-twa | splay %son-ban-twa
}
on *:dialog:configson:dclick:8:{
  set %son-pv-twa $dir="Choisi un fichier son quand on t'a un PV" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-pv-twa
}
on *:dialog:configson:sclick:8:{
  did -a configson 50 %son-pv-twa | splay %son-pv-twa
}
on *:dialog:configson:dclick:9:{
  set %son-notice-twa $dir="Choisi un fichier son quand on t'a une NOTICE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-notice-twa
}
on *:dialog:configson:sclick:9:{
  did -a configson 50 %son-notice-twa | splay %son-notice-twa
}
on *:dialog:configson:dclick:10:{
  set %son-join-twa $dir="Choisi un fichier son quand on tu JOINT un salon" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-join-twa
}
on *:dialog:configson:sclick:10:{
  did -a configson 50 %son-join-twa | splay %son-join-twa
}
on *:dialog:configson:dclick:11:{
  set %son-hl-twa $dir="Choisi un fichier son quand on dit ton PSEUDO" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-hl-twa
}
on *:dialog:configson:sclick:11:{
  did -a configson 50 %son-hl-twa | splay %son-hl-twa
}
on *:dialog:configson:dclick:38:{
  set %son-con-twa $dir="Choisi un fichier son quand tu te CONNECTE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-con-twa
}
on *:dialog:configson:sclick:38:{
  did -a configson 50 %son-con-twa | splay %son-con-twa
}
on *:dialog:configson:dclick:40:{
  set %son-dcon-twa $dir="Choisi un fichier son quand tu te DECONNECTE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-dcon-twa
}
on *:dialog:configson:sclick:40:{
  did -a configson 50 %son-dcon-twa | splay %son-dcon-twa
}
on *:dialog:configson:dclick:43:{
  set %son-op-otre $dir="Choisi un fichier son quand quelqu'un est OP" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-op-otre
}
on *:dialog:configson:sclick:43:{
  did -a configson 50 %son-op-otre | splay %son-op-otre
}
on *:dialog:configson:dclick:44:{
  set %son-deop-otre $dir="Choisi un fichier son quand quelqu'un est DEOP" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-deop-otre
}
on *:dialog:configson:sclick:44:{
  did -a configson 50 %son-deop-otre | splay %son-deop-otre
}
on *:dialog:configson:dclick:56:{
  set %son-voice-otre $dir="Choisi un fichier son quand quelqu'un est VOICE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-voice-otre
}
on *:dialog:configson:sclick:56:{
  did -a configson 50 %son-voice-otre | splay %son-voice-otre
}
on *:dialog:configson:dclick:57:{
  set %son-devoice-otre $dir="Choisi un fichier son quand quelqu'un est DEVOICE" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-devoice-otre
}
on *:dialog:configson:sclick:57:{
  did -a configson 50 %son-devoice-otre | splay %son-devoice-otre
}
on *:dialog:configson:dclick:58:{
  set %son-kick-otre $dir="Choisi un fichier son quand quelqu'un est KICK" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-kick-otre
}
on *:dialog:configson:sclick:58:{
  did -a configson 50 %son-kick-otre | splay %son-kick-otre
}
on *:dialog:configson:dclick:59:{
  set %son-ban-otre $dir="Choisi un fichier son quand quelqu'un est BAN" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-ban-otre
}
on *:dialog:configson:sclick:59:{
  did -a configson 50 %son-ban-otre | splay %son-ban-otre
}
on *:dialog:configson:dclick:60:{
  set %son-mode $dir="Choisi un fichier son quand le MODE change" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-mode
}
on *:dialog:configson:sclick:60:{
  did -a configson 50 %son-mode | splay %son-mode
}
on *:dialog:configson:dclick:61:{
  set %son-topic $dir="Choisi un fichier son quand le TOPIC change" $mircdirsounds\sonscript\*.wav | did -a configson 50 %son-topic
}
on *:dialog:configson:sclick:61:{
  did -a configson 50 %son-topic | splay %son-topic
}
on *:dialog:configson:init:0:{

  if (%son.op == on) { did -c configson 12 }
  if (%son.deop == on) { did -c configson 13 }
  if (%son.v == on) { did -c configson 14 }
  if (%son.dv == on) { did -c configson 15 }
  if (%son.invite == on) { did -c configson 37 }
  if (%son.kick == on) { did -c configson 16 }
  if (%son.ban == on) { did -c configson 17 }
  if (%son.pv == on) { did -c configson 18 }
  if (%son.notice == on) { did -c configson 19 }
  if (%son.join == on) { did -c configson 20 }
  if (%son.high == on) { did -c configson 21 }
  if (%son.con == on) { did -c configson 39 }
  if (%son.decon == on) { did -c configson 41 }

  if (%au.op == on) { did -c configson 29 }
  if (%au.deop == on) { did -c configson 30 }
  if (%au.v == on) { did -c configson 31 }
  if (%au.dv == on) { did -c configson 32 }
  if (%au.kick == on) { did -c configson 33 }
  if (%au.ban == on) { did -c configson 34 }

  if (%dv.topic == on) { did -c configson 45 }
  if (%dv.modes == on) { did -c configson 46 }
  did -a configson 1 Op
  did -a configson 2 Deop
  did -a configson 3 Voice
  did -a configson 4 Devoice
  did -a configson 36 Invite
  did -a configson 6 Kick
  did -a configson 7 Ban
  did -a configson 8 Pv
  did -a configson 9 Notice
  did -a configson 10 Join
  did -a configson 11 H.L.
  did -a configson 38 Conect.
  did -a configson 40 Décon.
  did -a configson 43 Op
  did -a configson 44 Deop
  did -a configson 56 Voice
  did -a configson 57 Devoice
  did -a configson 58 Kick
  did -a configson 59 Ban
  did -a configson 60 Mode
  did -a configson 61 Topic
} 
on *:dialog:configson:sclick:12:{
  if ($did(12).state  == 0) { set %son.op off }
  if ($did(12).state  == 1) { set %son.op on }
}
on *:dialog:configson:sclick:13:{
  if ($did(13).state  == 0) { set %son.deop off }
  if ($did(13).state  == 1) { set %son.deop on }
}
on *:dialog:configson:sclick:14:{
  if ($did(14).state  == 0) { set %son.v off }
  if ($did(14).state  == 1) { set %son.v on }
}
on *:dialog:configson:sclick:15:{
  if ($did(15).state  == 0) { set %son.dv off }
  if ($did(15).state  == 1) { set %son.dv on }
}
on *:dialog:configson:sclick:16:{
  if ($did(16).state  == 0) { set %son.kick off }
  if ($did(16).state  == 1) { set %son.kick on }
}
on *:dialog:configson:sclick:17:{
  if ($did(17).state  == 0) { set %son.ban off }
  if ($did(17).state  == 1) { set %son.ban on }
}
on *:dialog:configson:sclick:18:{
  if ($did(18).state  == 0) { set %son.pv off }
  if ($did(18).state  == 1) { set %son.pv on }
}
on *:dialog:configson:sclick:19:{
  if ($did(19).state  == 0) { set %son.notice off }
  if ($did(19).state  == 1) { set %son.notice on }
}
on *:dialog:configson:sclick:20:{
  if ($did(20).state  == 0) { set %son.join off }
  if ($did(20).state  == 1) { set %son.join on }
}
on *:dialog:configson:sclick:21:{
  if ($did(21).state  == 0) { set %son.high off }
  if ($did(21).state  == 1) { set %son.high on }
}
on *:dialog:configson:sclick:37:{
  if ($did(37).state  == 0) { set %son.invite off }
  if ($did(37).state  == 1) { set %son.invite on }
}
on *:dialog:configson:sclick:39:{
  if ($did(39).state  == 0) { set %son.con off }
  if ($did(39).state  == 1) { set %son.con on }
}
on *:dialog:configson:sclick:41:{
  if ($did(41).state  == 0) { set %son.decon off }
  if ($did(41).state  == 1) { set %son.decon on }
}
on *:dialog:configson:sclick:29:{
  if ($did(29).state  == 0) { set %au.op off }
  if ($did(29).state  == 1) { set %au.op on }
}
on *:dialog:configson:sclick:30:{
  if ($did(30).state  == 0) { set %au.deop off }
  if ($did(30).state  == 1) { set %au.deop on }
}
on *:dialog:configson:sclick:31:{
  if ($did(31).state  == 0) { set %au.v off }
  if ($did(31).state  == 1) { set %au.v on }
}
on *:dialog:configson:sclick:32:{
  if ($did(32).state  == 0) { set %au.dv off }
  if ($did(32).state  == 1) { set %au.dv on }
}
on *:dialog:configson:sclick:33:{
  if ($did(33).state  == 0) { set %au.kick off }
  if ($did(33).state  == 1) { set %au.kick on }
}
on *:dialog:configson:sclick:34:{
  if ($did(34).state  == 0) { set %au.ban off }
  if ($did(34).state  == 1) { set %au.ban on }
}
on *:dialog:configson:sclick:45:{
  if ($did(45).state  == 0) { set %dv.topic off }
  if ($did(45).state  == 1) { set %dv.topic on }
}
on *:dialog:configson:sclick:46:{
  if ($did(46).state  == 0) { set %dv.modes off }
  if ($did(46).state  == 1) { set %dv.modes on }
}

on *:dialog:configson:sclick:54:{
  set %son-ban-otre sounds\KickBan.wav
  set %son-ban-twa sounds\KickBan.wav
  set %son-con-twa Sounds\intro\Highland.mp3
  set %son-dcon-twa sounds\LAVISTA.WAV
  set %son-deop-otre sounds\deop.wav
  set %son-deop-twa sounds\joinbabylon.wav
  set %son-devoice-otre sounds\Devoice.wav
  set %son-dv-twa sounds\Recover2.wav
  set %son-hl-twa sounds\attaque.wav
  set %son-invite-twa sounds\well.wav
  set %son-join-twa sounds\Go.wav
  set %son-kick-otre sounds\kick.wav
  set %son-kick-twa sounds\kick.wav
  set %son-mode Sounds\mode.wav
  set %son-notice-twa sounds\info.wav
  set %son-op-otre sounds\OP.WAV
  set %son-op-twa sounds\sabrelaser.wav
  set %son-pv-twa sounds\query.wav
  set %son-topic Sounds\topic.wav
  set %son-v-twa sounds\sigvoice.wav
  set %son-voice-otre sounds\Voice.wav
}
dialog aideson {
  title "Aide"
  size -1 -1 97 68
  option dbu
  edit "1-  Pour selectionnez un son de votre liste,double cliquez sur OP (par exemple) et valider votre nouvelle selection.                                                                               2-  Pour tester le son faites un click sur OP et le son sera jouer.", 1, 5 11 88 52, multi
  box "Aide son du script", 2, 3 3 92 63
}
on 1:dialog:configson:sclick:24 { dialog -m aideson aideson }
}
}
