Code:
 

  dialog popusn {
  title "Settings"
  size -1 -1 333 330
  icon graphics\cfg.ico
  TAB "OPS1",2, 0 0 330 425
  TAB "OPS2",3
  TAB "OPS3",4
  TAB "OPS4",5
  TAB "OPS5",6
  TAB "OPS6",7
  edit "", 90, 20 70 295 25,push,tab 7
  button "Userlist Settings", 70, 20 70 110 25,flat,tab 5
  button "Display Settings", 71, 20 100 110 25,flat,tab 5
  button "General Settings", 72, 20 130 110 25,flat,tab 5
  button "Network Settings", 73, 20 160 110 25,flat,tab 5
  button "Channel Protections", 74, 20 190 110 25,flat,tab 5
  button "Vhost Scaner", 75, 190 70 110 25,flat,tab 5
  button "Proxy Scaner", 76, 190 100 110 25,flat,tab 5
  button "Sound Settings", 77, 190 130 110 25,flat,tab 5
  button "Blacklist Trigger", 78, 190 160 110 25,flat,tab 5
  button "Blacklist Settings", 79, 190 190 110 25,flat,tab 5
  button "MP3 Player", 80, 20 70 110 25,flat,tab 6
  button "Ignore List", 81, 20 100 110 25,flat,tab 6
  button "Spy Settings", 82, 20 130 110 25,flat,tab 6
  button "Whois Channel", 83, 20 160 110 25,flat,tab 6
  button "Unwanted Text", 84, 20 190 110 25,flat,tab 6
  button "Banned Channel", 85, 190 70 110 25,flat,tab 6
  button "Screan Flood", 95, 190 100 110 25,flat,tab 6
  button "Punctuation Flood", 96, 190 130 110 25,flat,tab 6
  button "DNS", 86, 20 105 110 25,flat,tab 7
  button "WHOIS", 87, 20 140 110 25,flat,tab 7
  button "NICK INFO", 88, 190 105 110 25,flat,tab 7
  button "CHANNEL INFO", 89, 190 140 110 25,flat,tab 7
  button "CHANSERV", 92, 20 175 110 25,flat,tab 7
  button "MENU INFO", 93, 190 175 110 25,flat,tab 7
  button "Close", 12, 20 290 295 25,flat, cancel
  text "Protection from spam and flood....",13, 22 40 200 20,tab 2
  check "Relay-1",14, 20 70 80 20,tab 2
  check "Relay-2",15, 20 100 80 20,tab 2
  check "Relay-3",16, 20 130 80 20,tab 2
  check "Relay-4",17, 20 160 80 20,tab 2
  check "Nick Flood",18, 20 190 80 20,tab 2
  check "Quit Flood",19, 120 70 80 20,tab 2
  check "Chan Flood",20, 120 100 80 20,tab 2
  check "Dcc Flood",21, 120 130 80 20,tab 2
  check "Ctcp Flood",22, 120 160 80 20,tab 2
  check "Querie Flood",23, 120 190 80 20,tab 2
  check "Join FLood",24, 220 70 80 20,tab 2
  check "Mass FLood",25, 220 100 80 20,tab 2
  check "Letter Flood",26, 220 130 80 20,tab 2
  check "Word Flood",27, 220 160 80 20,tab 2
  check "Color Flood",28, 220 190 80 20,tab 2
  check "Rev Door",29, 20 70 80 20,tab 3
  check "Spam Bot",30, 20 100 80 20,tab 3
  check "Drone Bot",31, 20 130 80 20,tab 3
  check "Drone Nick",32, 20 160 80 20,tab 3
  check "Quit Bot",33, 20 190 80 20,tab 3
  check "Bad Away",34, 120 70 80 20,tab 3
  check "Bad Name",35, 120 100 80 20,tab 3
  check "Chan Notice",36, 120 130 80 20,tab 3
  check "Private Notice",37, 120 160 85 20,tab 3
  check "Notify BanList",38, 120 190 85 20,tab 3
  check "Trout Slap",39, 220 70 80 20,tab 3
  check "Nosense Nick",40, 220 100 85 20,tab 3
  check "Bad Script",41, 220 130 80 20,tab 3
  check "Auto Whois",42, 220 160 80 20,tab 3
  check "Ban Enforcer",57, 220 190 80 20,tab 3
  check "Spy Log",43, 20 70 80 20,tab 4
  check "Auto Op",44, 20 100 80 20,tab 4
  check "Mode Log",45, 20 130 80 20,tab 4
  check "Auto Unban",46, 20 160 80 20,tab 4
  check "Part Log",47, 20 190 80 20,tab 4
  check "Topic Log",48, 120 70 85 20,tab 4
  check "Kick Log",49, 120 100 80 20,tab 4
  check "Join Log",50, 120 130 80 20,tab 4
  check "Nick Log",51, 120 160 80 20,tab 4
  check "Quit Log",52, 120 190 80 20,tab 4
  check "Sticky Ban",53, 220 70 80 20,tab 4
  check "none",54, 220 100 80 20,tab 4
  text "Protection from notice and bot flood....",55, 22 40 200 20,tab 3
  text "Protection and logs....",56, 22 40 200 20,tab 4
  text "Channel Protection....",59, 22 40 200 20,tab 5
  text "Channel Protection....",60, 22 40 200 20,tab 6
  text "Enter nick or channel to get info....",91, 22 40 200 20,tab 7
  box "",200, 20 220 290 50
  text "This Dialog helps you choose the protection or settings you need.",201, 40 230 230 30
  box "",202, 5 25 320 300

}
on 1:dialog:popusn:sclick:14:{ 
  if $did(14).state == 1 { set %Relay2 on  }
  if $did(14).state == 0 { set %Relay2 off }
}
on 1:dialog:popusn:sclick:15:{ 
  if $did(15).state == 1 { set %Relay1 on  }
  if $did(15).state == 0 { set %Relay1 off }
}
on 1:dialog:popusn:sclick:16:{ 
  if $did(16).state == 1 { set %Relay on  }
  if $did(16).state == 0 { set %Relay off }
}
on 1:dialog:popusn:sclick:17:{ 
  if $did(17).state == 1 { set %Relay3 on  }
  if $did(17).state == 0 { set %Relay3 off }
}
on 1:dialog:popusn:sclick:18:{ 
  if $did(18).state == 1 { set %longnick on  }
  if $did(18).state == 0 { set %longnick off }
}
on 1:dialog:popusn:sclick:19:{ 
  if $did(19).state == 1 { set %quitpart on  }
  if $did(19).state == 0 { set %quitpart off }
}
on 1:dialog:popusn:sclick:20:{ 
  if $did(20).state == 1 { set %flood on  }
  if $did(20).state == 0 { set %flood off }
}
on 1:dialog:popusn:sclick:21:{ 
  if $did(21).state == 1 { set %Dcc. on  }
  if $did(21).state == 0 { set %Dcc. off }
}
on 1:dialog:popusn:sclick:22:{ 
  if $did(22).state == 1 { set %Ctcp. on  }
  if $did(22).state == 0 { set %Ctcp. off }
}
on 1:dialog:popusn:sclick:23:{ 
  if $did(23).state == 1 { set %Query. on  }
  if $did(23).state == 0 { set %Query. off }
}
on 1:dialog:popusn:sclick:24:{ 
  if $did(24).state == 1 { set %opsjoin. on  }
  if $did(24).state == 0 { set %opsjoin. off }
}
on 1:dialog:popusn:sclick:25:{ 
  if $did(25).state == 1 { set %join on  }
  if $did(25).state == 0 { set %join off }
}
on 1:dialog:popusn:sclick:26:{ 
  if $did(26).state == 1 { set %Letter on  }
  if $did(26).state == 0 { set %Letter off }
}
on 1:dialog:popusn:sclick:27:{ 
  if $did(27).state == 1 { set %word on  }
  if $did(27).state == 0 { set %word off }
}
on 1:dialog:popusn:sclick:28:{ 
  if $did(28).state == 1 { set %cnt on  }
  if $did(28).state == 0 { set %cnt off }
}

on 1:dialog:popusn:sclick:29:{ 
  if $did(29).state == 1 { set %door on  }
  if $did(29).state == 0 { set %door off }
}
on 1:dialog:popusn:sclick:30:{ 
  if $did(30).state == 1 { set %bot on  }
  if $did(30).state == 0 { set %bot off }
}
on 1:dialog:popusn:sclick:31:{ 
  if $did(31).state == 1 { set %drone on  }
  if $did(31).state == 0 { set %drone off }
}
on 1:dialog:popusn:sclick:32:{ 
  if $did(32).state == 1 { set %drones on  }
  if $did(32).state == 0 { set %drones off }
}
on 1:dialog:popusn:sclick:33:{ 
  if $did(33).state == 1 { set %quit on  }
  if $did(33).state == 0 { set %quit off }
}
on 1:dialog:popusn:sclick:34:{ 
  if $did(34).state == 1 { set %away on  }
  if $did(34).state == 0 { set %away off }
}
on 1:dialog:popusn:sclick:35:{ 
  if $did(35).state == 1 { set %name on  }
  if $did(35).state == 0 { set %name off }
}
on 1:dialog:popusn:sclick:36:{ 
  if $did(36).state == 1 { set %notice on  }
  if $did(36).state == 0 { set %notice off }
}
on 1:dialog:popusn:sclick:37:{ 
  if $did(37).state == 1 { set %notice. on  }
  if $did(37).state == 0 { set %notice. off }
}
on 1:dialog:popusn:sclick:38:{ 
  if $did(38).state == 1 { set %bnn on  }
  if $did(38).state == 0 { set %bnn off }
}
on 1:dialog:popusn:sclick:39:{ 
  if $did(39).state == 1 { set %slap on  }
  if $did(39).state == 0 { set %slap off }
}
on 1:dialog:popusn:sclick:40:{ 
  if $did(40).state == 1 { set %op.nopsenseSW on  }
  if $did(40).state == 0 { set %op.nopsenseSW off }
}
on 1:dialog:popusn:sclick:41:{ 
  if $did(41).state == 1 { set %CTCPREPLY on  }
  if $did(41).state == 0 { set %CTCPREPLY off }
}
on 1:dialog:popusn:sclick:42:{ 
  if $did(42).state == 1 { set %op.random On | timerrandomwhois 0 60 randomnick  }
  if $did(42).state == 0 { set %op.random Off | timerrandomwhois Off randomnick }
}
on 1:dialog:popusn:sclick:43:{ 
  if $did(43).state == 1 { set %spy.counter on  }
  if $did(43).state == 0 { set %spy.counter off }
}
on 1:dialog:popusn:sclick:44:{ 
  if $did(44).state == 1 { set %deop on  }
  if $did(44).state == 0 { set %deop off }
}
on 1:dialog:popusn:sclick:45:{ 
  if $did(45).state == 1 { set %rawmode on  }
  if $did(45).state == 0 { set %rawmode off }
}
on 1:dialog:popusn:sclick:46:{ 
  if $did(46).state == 1 { set %unban on  }
  if $did(46).state == 0 { set %unban off }
}
on 1:dialog:popusn:sclick:47:{ 
  if $did(47).state == 1 { set %part.counter on }
  if $did(47).state == 0 { set %part.counter off }
}
on 1:dialog:popusn:sclick:48:{ 
  if $did(48).state == 1 { set %topic.counter on  }
  if $did(48).state == 0 { set %topic.counter off }
}
on 1:dialog:popusn:sclick:49:{ 
  if $did(49).state == 1 { set %Kick.counter on  }
  if $did(49).state == 0 { set %Kick.counter off }
}
on 1:dialog:popusn:sclick:50:{ 
  if $did(50).state == 1 { set %join.counter on  }
  if $did(50).state == 0 { set %join.counter off }
}

on 1:dialog:popusn:sclick:51:{ 
  if $did(51).state == 1 { set %nick.counter on  }
  if $did(51).state == 0 { set %nick.counter off }
}
on 1:dialog:popusn:sclick:52:{ 
  if $did(52).state == 1 { set %quit.counter on  }
  if $did(52).state == 0 { set %quit.counter off }
}
on 1:dialog:popusn:sclick:53:{ 
  if $did(53).state == 1 { set %sticky.ban on  }
  if $did(53).state == 0 { set %sticky.ban off }
}
on 1:dialog:popusn:sclick:54:{ 
  if $did(54).state == 1 { set %topic.counter on  }
  if $did(54).state == 0 { set %topic.counter off }
}
on 1:dialog:popusn:sclick:57:{ 
  if $did(57).state == 1 { set %ban on }
  if $did(57).state == 0 { set %ban off }
}

on 1:dialog:popusn:init:*:{
  if (%Relay2 == on) { did -c $dname 14 }
  if (%Relay1 == on) { did -c $dname 15 }
  if (%Relay == on) { did -c $dname 16 }
  if (%Relay3 == on) { did -c $dname 17 }
  if (%longnick == on) { did -c $dname 18 }
  if (%quitpart == on) { did -c $dname 19 }
  if (%flood  == on) { did -c $dname 20 }
  if (%Dcc. == on) { did -c $dname 21 }
  if (%Ctcp. == on) { did -c $dname 22 }
  if (%Query. == on) { did -c $dname 23 }
  if (%opsjoin. == on) { did -c $dname 24 }
  if (%join == on) { did -c $dname 25 }
  if (%Letter  == on) { did -c $dname 26 }
  if (%word == on) { did -c $dname 27 }
  if (%cnt == on) { did -c $dname 28 }
  if (%door == on) { did -c $dname 29 }
  if (%bot == on) { did -c $dname 30 }
  if (%drone == on) { did -c $dname 31 }
  if (%drones == on) { did -c $dname 32 }
  if (%quit == on) { did -c $dname 33 }
  if (%away == on) { did -c $dname 34 }
  if (%name == on) { did -c $dname 35 }
  if (%notice == on) { did -c $dname 36 }
  if (%notice. == on) { did -c $dname 37 }
  if (%bnn == on) { did -c $dname 38 }
  if (%slap == on) { did -c $dname 39 }
  if (%op.nopsenseSW == on) { did -c $dname 40 }
  if (%CTCPREPLY  == on) { did -c $dname 41 }
  if (%op.random == on) { did -c $dname 42 }
  if (%spy.counter == on) { did -c $dname 43 }
  if (%deop == on) { did -c $dname 44 }
  if (%rawmode == on) { did -c $dname 45 }
  if (%unban == on) { did -c $dname 46 }
  if (%part.counter  == on) { did -c $dname 47 }
  if (%topic.counter == on) { did -c $dname 48 }
  if (%Kick.counter == on) { did -c $dname 49 }
  if (%join.counter == on) { did -c $dname 50 }
  if (%nick.counter == on) { did -c $dname 51 }
  if (%quit.counter == on) { did -c $dname 52 }
  if (%sticky.ban == on) { did -c $dname 53 }
  if (%topic.counter == on) { did -c $dname 54 }
  if (%ban == on) { did -c $dname 57 }
}