alias nickservx { 
  if !$dialog(nickservx) { /dialog -m nickservx nickservx }
  else { return }
}
dialog nickservx {
  title " ..: SohbetSen Cafe - Nickserv :.."
  size -1 -1 300 381
  box "Basit Komutlar", 1, 7 5 284 46
  button "Sendpass", 2, 200 167 85 21,flat
  button "Identify", 3, 106 22 85 21,flat
  button "Drop", 4, 196 22 85 21,flat
  box "Recover nick", 5, 7 54 285 46
  button "Kill ghost", 6, 16 72 85 21,flat
  button "Kill nick", 7, 108 71 85 21,flat
  button "Recover", 8, 198 71 85 21,flat
  box "Ayarlar", 9, 7 103 287 46
  button "Email Degistir", 10, 16 120 85 21,flat
  button "URL Degistir", 11, 105 120 91 21,flat
  button "Sifreyi Degistir", 12, 201 120 85 21,flat
  box "Bilgileri", 13, 7 150 285 46
  button "Nick Info", 14, 16 168 85 21,flat
  button "List Nick", 15, 106 167 85 21,flat
  button "Ekle", 16, 108 324 85 21,flat
  box "Korumalar", 17, 7 197 286 107
  box "Kill", 18, 15 210 131 43
  button "Kapa", 21, 83 228 56 21,flat
  button "Aç", 19, 21 228 56 21,flat
  box "Secure", 20, 154 210 131 43
  button "Kapa", 22, 226 228 50 21,flat
  button "Aç", 23, 161 228 56 21,flat
  box "Private", 24, 16 255 131 43
  button "Aç", 28, 22 273 56 21,flat
  button "Kapa", 26, 85 273 56 21,flat
  box "Hide usermask", 25, 154 256 131 43
  button "Kapa", 27, 221 273 56 21,flat
  button "Aç", 29, 159 273 56 21,flat
  box "Hosts", 30, 7 307 283 41
  button "List hosts", 32, 16 324 85 21,flat
  button "Nick Kaydet", 33, 16 22 85 21,flat
  button "Kaldir", 34, 198 324 85 21,flat
  button "Tamam", 35, 55 354 85 22,ok flat default
  button "iptal", 36, 158 354 85 22,cancel flat
}

on *:dialog:nickservx:init:*:{
  { Splay $mircdirSohbetSen\sounds\Menu.wav }
  mdx.
  mdx SetColor $dname 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,32,33,34,35,36,37 text 200   
  mdx SetFont $dname 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,32,33,34,35,36 12 500 verdana
}

on 1:dialog:nickservx:sclick:*:{
  if $did == 36 { halt }
  if $did == 3 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick Tanıtma
      %nick.b = Tanımla
      %nick.c = identify
      %nick.e = Sifre:
      dialog -ma nick1 nick1 
  } }
  if $did == 4 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick Droplama
      %nick.b = Tamam
      %nick.c = drop
      %nick.e = Sifre:
  } }
  if $did == 33 { 
    if $dialog(nick1) == $null {
      %nick.t = Register nick 
      %nick.b = Kaydet
      %nick.e = Sifre:
      %nick.c = register       
      dialog -ma nick4 nick4
  } }
  if $did == 6 { 
    if $dialog(nick1) == $null {
      %nick.t = Asılı Nick 
      %nick.b = Kurtar
      %nick.c = ghost
      dialog -ma nick2 nick2
  } }
  if $did == 7 { 
    if $dialog(nick1) == $null {
      %nick.t = Kill nick 
      %nick.b = KiLL
      %nick.c = recover
      dialog -ma nick2 nick2
  } }
  if $did == 8 { 
    if $dialog(nick1) == $null {
      %nick.t = Recover nick 
      %nick.b = Recover
      %nick.c = release
      dialog -ma nick2 nick2
  } }
  if $did == 10 { 
    if $dialog(nick1) == $null {
      %nick.t = Email Değiştir
      %nick.b = Tamam
      %nick.c = set email
      %nick.e = Email:
      dialog -ma nick1 nick1
  } }
  if $did == 11 { 
    if $dialog(nick1) == $null {
      %nick.t = URL Değiştir
      %nick.b = Tamam
      %nick.c = set url
      %nick.e = URL:
      dialog -ma nick1 nick1
  } }
  if $did == 12 { 
    if $dialog(nick1) == $null {
      %nick.t = Şifreyi Değiştir...
      %nick.b = Tamam
      %nick.c = set password
      %nick.e = Yeni:
      dialog -ma nick1 nick1
  } }
  if $did == 14 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick info Bilgisi
      %nick.b = Tamam
      %nick.c = info
      %nick.e = Nick:
      dialog -ma nick1 nick1
  } }
  if $did == 15 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick List 
      %nick.b = Tamam
      %nick.c = list
      %nick.e = Nick/Host:
      dialog -ma nick1 nick1
  } }
  if $did == 2 { 
    if $dialog(nick1) == $null {
      %nick.t = Sendpass
      %nick.b = Tamam
      %nick.c = sendpass
      %nick.e = Gönd. Nick
      dialog -ma nick1 nick1
  } }
  if $did == 4 { .dialog -ma nick3 nick3 }
  if $did == 21 { %msg nickserv set kill off  }
  if $did == 19 { %msg nickserv set kill on  }
  if $did == 22 { %msg nickserv set secure off }
  if $did == 23 { %msg nickserv set secure on }
  if $did == 26 { %msg nickserv set private off }
  if $did == 28 { %msg nickserv set private on }
  if $did == 27 { %msg nickserv set hide usermask off }
  if $did == 29 { %msg nickserv set hide usermask on }
  if $did == 16 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick Status 
      %nick.b = Tamam
      %nick.c = access add
      %nick.e = Host/nick:
      dialog -ma nick1 nick1
  } }
  if $did == 32 { %msg nickserv access list }
  if $did == 34 { 
    if $dialog(nick1) == $null {
      %nick.t = Nick Status 
      %nick.b = Tamam
      %nick.c = access del
      %nick.e = Host/Nick:
      dialog -ma nick1 nick1
  } }
}
dialog nick1 {
  title ..: %nick.t :..
  size 290 181 228 75
  button %nick.b, 1, 34 48 75 20,ok flat
  text %nick.e, 2, 2 11 83 13, left
  edit "", 3, 65 7 148 19, autohs
  box "", 8, 5 29 217 11
  button "Vazgeç", 9, 124 48 75 20,cancel flat
}
on 1:dialog:nick1:sclick:1:{
  if $did(3) == $null { %erromsg = %nick.e Yanlış Deneme | dialog -ma erro erro | halt }
  %msg nickserv %nick.c $did(3) 
  unset %nick.*
}
dialog nick2 {
  title ..: %nick.t :..
  size 290 181 229 101
  button %nick.b, 1, 34 73 75 20,ok flat
  text "Nick:", 2, 33 11 31 13
  edit "", 3, 65 7 148 19, autohs
  text "Şifre:", 4, 28 31 34 14,left
  edit "", 5, 65 29 148 19, autohs
  box "", 8, 7 55 217 11
  button "Vazgeç", 9, 123 72 75 20,cancel flat
}
on 1:dialog:nick2:sclick:1:{
  if $did(3) == $null { %erromsg = Nick Yazılmamış | dialog -ma erro erro | halt }
  if $did(5) == $null { %erromsg = Şifre Yazılmamış | dialog -ma erro erro | halt }
  %msg nickserv %nick.c $did(3) $did(5)   
  unset %nick.*
}
dialog nick3 {
  title "..: Nick Drop :.."
  size 203 232 235 87
  text "Nick Kaydınızı Silmek Üzeresiniz!!", 1, 27 14 180 17
  button "Dewam Et", 2, 29 51 74 22, flat
  button "Vazgeç", 3, 121 51 72 22,cancel flat
}
on 1:dialog:nick3:sclick:*:{
  if ($did == 2 ) { dialog -x nick3 nick3 | dialog -ma nick1 nick1 }
}
on 1:dialog:chan5:init:0:{
  did -a chan5 3 %chana
}
