PowerPuffGold.2000 — File Browser

PowerPuffGold.2000v2.0 / PowerPuffGold.2000v2.0 / PowerPuffGold2000 / remotes / setupgui.mrc

setupgui.mrc — 24.02 KB — Download this file

;°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
;°°°°°°°°°°°°°°°° <<PowerPuffGold.2000>> °°°°°°°°°°°°°°°°°°
;°°°°°°°°°°°°°°° written by sunny` and kara`°°°°°°°°°°°°°°°°°
;°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
;.........................Feel free to make any............................
;..................changes/add-ons/etc u wish........................
;...........but be warned, this is a mutli-level script,...........
;.......what u may think is a minor change may affect......
;.............. many other aspects of the script, so.............. 
:..............dont blame us when ya mess it all up!!..............
;°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
; Message setup GUI

dialog ppgmessage { 
  title "Messages Setup" 
  size -1 -1 320 170 

  icon 1, -1 1 40 20, ppg2klogo.bmp, 0

  radio "Active Window With Address", 2, 70 50 185 16, group
  radio "Active Window Without Address", 3, 70 67 185 16 
  radio "@Window", 4, 70 84 183 16
  radio "Reset to Query Window", 5, 70 102 185 16

  box "Check Box to Select Where Your Messages Show Up", 100, 13 28 295 95
  button "Done!", 200, 115 138 80 25, OK default 

}

on *:DIALOG:ppgmessage:sclick:2:{ 
  set %msg1 $did(2).state
  set %msg2 $did(3).state
  set %msg3 $did(4).state
  set %msg4 $did(5).state
  set  %msgactivead ON 
  set %msgactive OFF
  set %msg@ OFF
}
on *:DIALOG:ppgmessage:sclick:3:{ 
  set %msg1 $did(2).state
  set %msg2 $did(3).state
  set %msg3 $did(4).state
  set %msg4 $did(5).state
  set  %msgactivead OFF 
  set %msgactive ON
  set %msg@ OFF
}
on *:DIALOG:ppgmessage:sclick:4:{ 
  set %msg1 $did(2).state
  set %msg2 $did(3).state
  set %msg3 $did(4).state
  set %msg4 $did(5).state
  set  %msgactivead OFF 
  set %msgactive OFF
  set %msg@ ON 
}
on *:DIALOG:ppgmessage:sclick:5:{
  set %msg1 $did(2).state
  set %msg2 $did(3).state
  set %msg3 $did(4).state
  set %msg4 $did(5).state
  set  %msgactivead = OFF
  set  %msgactive = OFF
  set  %msg@ = OFF
}
on *:DIALOG:ppgmessage:init:*:{ 
  if (%msg1) { did -c $dname 2 }
  if (%msg2) { did -c $dname 3 }
  if (%msg3) { did -c $dname 4 }
  if (%msg4) { did -c $dname 5 }
} 

; gui for who/whois setup

dialog ppgwho { 
  title "Who/Whois Setup" 
  size -1 -1 320 280 

  icon 1, -1 1 40 20, ppg2klogo.bmp, 0

  radio "Active Window", 2, 50 50 100 16, group
  radio "Status Window", 3, 180 50 100 16 
  box "Select where you want your whois to display", 100, 35 30 245 45

  radio "On Join/No Perv Scan", 4, 90 100 130 16, group
  radio "On Join/Perv Scan", 5, 90 120 130 16
  radio "No On Join Whois", 6, 90 140 130 16
  box "Select you preferred type of Whois", 101, 60 85 200 73

  radio "On", 7, 110 200 50 16, group
  radio "Off", 8, 170 200 50 16
  box "Turn Channel Who On/Off", 102, 80 180 150 40

  button "Done!", 200, 115 240 80 25, OK default 
}
on *:DIALOG:ppgwho:sclick:2:{
  set %whoisactive $did(2).state
  if ($did(2).state) {
    set %whoisstatus 0
    set %s -a
  }
}
on *:DIALOG:ppgwho:sclick:3:{
  set %whoisstatus $did(3).state
  if ($did(3).state) {
    set %whoisactive 0
    set %s -s
  }
}
on *:DIALOG:ppgwho:sclick:4:{
  set %who1 $did(4).state
  set %who2 $did(5).state
  set %who3 $did(6).state
  if ($did(4).state) {
    set %plainwhois ON
    set %pscc OFF
    set %psurc OFF
    set %pn OFF
  }
}
on *:DIALOG:ppgwho:sclick:5:{
  set %who1 $did(4).state
  set %who2 $did(5).state
  set %who3 $did(6).state
  if ($did(5).state) {
    set %plainwhois OFF
    set %pscc on
    set %psurc on
    set %pn on
  }
}
on *:DIALOG:ppgwho:sclick:6:{
  set %who1 $did(4).state
  set %who2 $did(5).state
  set %who3 $did(6).state
  if ($did(6).state) {
    set %plainwhois OFF
    set %pscc OFF
    set %psurc OFF
    set %pn OFF
  }
}
on *:DIALOG:ppgwho:sclick:7:{
  set %whoon $did(7).state
  if ($did(7).state) { 
    set %whooff 0
    set %who ON 
  }
  else set %who OFF
}
on *:DIALOG:ppgwho:sclick:8:{
  set %whooff $did(8).state
  if ($did(8).state) { 
    set %whoon 0
    set %who OFF 
  }
  else set %who ON
}

on *:DIALOG:ppgwho:init:*:{ 
  if (%whoisactive) { did -c $dname 2 }
  if (%whoisstatus) { did -c $dname 3 }
  if (%who1) { did -c $dname 4 }
  if (%who2) { did -c $dname 5 }
  if (%who3) { did -c $dname 6 }
  if (%whoon) { did -c $dname 7 }
  if (%whooff) { did -c $dname 8 }
} 

; nick list/password gui interface

dialog ppgnick {
  title "Nickname Interface"
  size -1 -1 390 320

  icon 1, -1 1 40 20, ppg2klogo.bmp, 0

  text "Select or add a Nick", 201, 25 115 150 20, group
  text "Password", 202, 216 115 200 20, group
  text "...Maximum Nick set to 10 nicks.", 203, 10 240 180 20, group

  box "Enter Nickname for Nicks not in list or select Random", 230, 5 25 380 55
  box "Set Nicks", 225, 5 90 380 190

  edit "" 8, 10 50 180 20 result
  edit "" 9, 200 130 80 20, pass result
  combo 10, 10 130 180 100, sort edit group

  button "Add", 11, 290 130 80 25, group
  button "Remove", 12, 200 160 80 25 group
  button "Change  to", 13, 290 160 80 25 group
  button "Identify to", 14, 200 190 80 25 group
  button "Echo Nick List", 15, 290 250 80 25
  button "Id all nicks", 16, 290 190 80 25
  button "Ghost Nick", 17, 200 220 80 25 group
  button "Recover Nick", 18, 290 220 80 25 group
  button "Release Nick", 21, 200 250 80 25 group

  button "Change", 19, 200 45 80 25 
  button "Random Nick", 20, 290 45 80 25

  button "Done", 104, 150 290 80 25, OK default group

}
on *:DIALOG:ppgnick:init:*:{
  if (%anick1 != $null) did -a ppgnick 10 %anick1
  if (%anick2 != $null) did -a ppgnick 10 %anick2
  if (%anick3 != $null) did -a ppgnick 10 %anick3
  if (%anick4 != $null) did -a ppgnick 10 %anick4
  if (%anick5 != $null) did -a ppgnick 10 %anick5
  if (%anick6 != $null) did -a ppgnick 10 %anick6
  if (%anick7 != $null) did -a ppgnick 10 %anick7
  if (%anick8 != $null) did -a ppgnick 10 %anick8
  if (%anick9 != $null) did -a ppgnick 10 %anick9
  if (%anick10 != $null) did -a ppgnick 10 %anick10
}
on *:DIALOG:ppgnick:edit:10:did -t ppgnick 11

on *:DIALOG:ppgnick:sclick:11:{
  if ($did(9) == $null) {
    echo -s You must enter a password with your nick addition!
    halt
  }
  if ( %anick1 == $null) {
    set %anick1 $did(10) 
    set %apass1 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick2 == $null) {
    set %anick2 $did(10) 
    set %apass2 $did(9)
    did -ca ppgnick 10 $did(10)
    $did(10) did -t ppgnick 104
    halt
  }
  if ( %anick3 == $null) { 
    set %anick3 $did(10) 
    set %apass3 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick4 == $null) {
    set %anick4 $did(10) 
    set %apass4 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick5 == $null) {
    set %anick5 $did(10) 
    set %apass5 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick6 == $null) {
    set %anick6 $did(10) 
    set %apass6 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick7 == $null) {
    set %anick7 $did(10) 
    set %apass7 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick8 == $null) {
    set %anick8 $did(10) 
    set %apass8 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick9 == $null) {
    set %anick9 $did(10) 
    set %apass9 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  if ( %anick10 == $null) {
    set %anick10 $did(10) 
    set %apass10 $did(9)
    did -ca ppgnick 10 $did(10) 
    did -t ppgnick 104
    halt
  }
  else echo -s 12 All nick varibles are taken please remove one before attempting to add another!
}
on *:DIALOG:ppgnick:sclick:12:{
  if ($did(10) == %anick1) {
    did -d ppgnick 10 $did(10).sel
    unset %anick1
    unset %apass1
    halt
  }
  if ($did(10) == %anick2) {
    did -d ppgnick 10 $did(10).sel
    unset %anick2
    unset %apass2
    halt
  }
  if ($did(10) == %anick3) {
    did -d ppgnick 10 $did(10).sel
    unset %anick3
    unset %apass3
    halt
  }
  if ($did(10) == %anick4) {
    did -d ppgnick 10 $did(10).sel
    unset %anick4
    unset %apass4
    halt
  }
  if ($did(10) == %anick5) {
    did -d ppgnick 10 $did(10).sel
    unset %anick5
    unset %apass5
    halt
  }
  if ($did(10) == %anick6) {
    did -d ppgnick 10 $did(10).sel
    unset %anick6
    unset %apass6
    halt
  }
  if ($did(10) == %anick7) {
    did -d ppgnick 10 $did(10).sel
    unset %anick7
    unset %apass7
    halt
  }
  if ($did(10) == %anick8) {
    did -d ppgnick 10 $did(10).sel
    unset %anick8
    unset %apass8
    halt
  }
  if ($did(10) == %anick9) {
    did -d ppgnick 10 $did(10).sel
    unset %anick9
    unset %apass9
    halt
  }
  if ($did(10) == %anick10) {
    did -d ppgnick 10 $did(10).sel
    unset %anick10
    unset %apass10
    halt
  }
  else echo -s 12The Nickname is not in your nickname database!
}
on *:DIALOG:ppgnick:sclick:13:/nick $did(10)
on *:DIALOG:ppgnick:sclick:14:{
  if ($did(10) == %anick1) {
    /identify $did(10) %apass1
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick2) {
    /identify $did(10) %apass2
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick3) {
    /identify $did(10) %apass3
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick4) {
    /identify $did(10) %apass4
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick5) {
    /identify $did(10) %apass5
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick6) {
    /identify $did(10) %apass6
    echo -s 12 password ID sent to NickServ 
    halt
  }
  if ($did(10) == %anick7) {
    /identify $did(10) %apass7
    echo -s 12 password ID sent to NickServ 
    halt
  }
  if ($did(10) == %anick8) {
    /identify $did(10) %apass8
    echo -s 12 password ID sent to NickServ 
    halt
  }
  if ($did(10) == %anick9) {
    /identify $did(10) %apass9
    echo -s 12 password ID sent to NickServ
    halt
  }
  if ($did(10) == %anick10) {
    /identify %apass10
    echo -s 12 password ID sent to NickServ
    halt
  }
  else echo -s 12 Nick is not in database!!!
}
on *:DIALOG:ppgnick:sclick:15:echo -s 2Nicknames already in the script: | echo -s 2=============================== | echo -s 12 $+ (1)   %anick1 | echo -s 12 $+ (2)   %anick2 | echo -s 12 $+ (3)   %anick3 | echo -s 12 $+ (4)   %anick4  | echo -s 12 $+ (5)   %anick5 | echo -s 12 $+ (6)   %anick6 | echo -s 12 $+ (7)    %anick7 | echo -s 12 $+ (8)   %anick8  | echo -s 12 $+ (9)   %anick9 | echo -s 12 $+ (10) %anick10
on *:DIALOG:ppgnick:sclick:16:/special
on *:DIALOG:ppgnick:sclick:17:{
  if ($did(10) == %anick1) {
    /NickServ Ghost $did(10) %apass1
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick2) {
    /NickServ Ghost $did(10) %apass2
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick3) {
    /NickServ Ghost $did(10) %apass3
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick4) {
    /NickServ Ghost $did(10) %apass4
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick5) {
    /NickServ Ghost $did(10) %apass5
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick6) {
    /NickServ Ghost $did(10) %apass6
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick7) {
    /NickServ Ghost $did(10) %apass7
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick8) {
    /NickServ Ghost $did(10) %apass8
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick9) {
    /NickServ Ghost $did(10) %apass9
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  if ($did(10) == %anick10) {
    /NickServ Ghost  $did(10) %apass10
    echo -s 12 Ghost command issued to to NickServ
    halt
  }
  else echo -s 12 Nick is not in database!!!
}
on *:DIALOG:ppgnick:sclick:18:{
  if ($did(10) == %anick1) {
    /NickServ Recover $did(10) %apass1
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick2) {
    /NickServ Recover $did(10) %apass2
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick3) {
    /NickServ Recover $did(10) %apass3
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick4) {
    /NickServ Recover $did(10) %apass4
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick5) {
    /NickServ Recover $did(10) %apass5
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick6) {
    /NickServ Recover $did(10) %apass6
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick7) {
    /NickServ Recover $did(10) %apass7
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick8) {
    /NickServ Recover $did(10) %apass8
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick9) {
    /NickServ Recover $did(10) %apass9
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  if ($did(10) == %anick10) {
    /NickServ Recover  $did(10) %apass10
    echo -s 12 Recover command issued to to NickServ
    halt
  }
  else echo -s 12 Nick is not in database!!!
}
on *:DIALOG:ppgnick:sclick:19:{
  /nick $did(8)
  did -r ppgnick 8
}
on *:DIALOG:ppgnick:sclick:20:/nick $rand(a,z) $+ $rand(a,z) $+ `PPG` $+ $rand(a,z) $+ $rand(a,z)
on *:DIALOG:ppgnick:sclick:21:{
  if ($did(10) == %anick1) {
    /NickServ Release $did(10) %apass1
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick2) {
    /NickServ Release $did(10) %apass2
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick3) {
    /NickServ Release $did(10) %apass3
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick4) {
    /NickServ Release $did(10) %apass4
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick5) {
    /NickServ Release $did(10) %apass5
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick6) {
    /NickServ Release $did(10) %apass6
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick7) {
    /NickServ Release $did(10) %apass7
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick8) {
    /NickServ Release $did(10) %apass8
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick9) {
    /NickServ Release $did(10) %apass9
    echo -s 12 Release command issued to to NickServ
    halt
  }
  if ($did(10) == %anick10) {
    /NickServ Release  $did(10) %apass10
    echo -s 12 Release command issued to to NickServ
    halt
  }
  else echo -s 12 Nick is not in database!!!
}

alias ppgnick { dialog -md ppgnick ppgnick -4 }

; auto/join and manual channel join gui stuff

dialog ppgjoin {
  title "Channel Join Interface"
  size -1 -1 310 420

  icon 1, -1 1 40 20, ppg2klogo.bmp, 0

  text "Select or add a Channel", 201, 25 115 150 20, group
  text "...Maximum Channels set to 15", 202, 10 210 180 20, group
  text "Current Status", 203, 20 335 50 40
  text "...Maximum Auto-Joins set to 10", 204, 105 335 150 20

  box "Enter Channel name for Channels not in list", 225, 5 25 300 55
  box "Join Channel", 226, 5 90 300 140
  box " Auto Join", 227, 5 235 70 150
  box "Add, Edit, Del for Auto Join Channels", 228, 75 235 225 150

  edit "" 10, 25 315 30 20, read
  edit "" 9, 10 50 180 20, result
  combo 8, 10 130 180 80, edit group
  combo 7, 90 255 180 80, edit

  button "Add", 11, 200 130 80 25, group
  button "Remove", 12, 200 160 80 25
  button "Join Channel", 13, 200 190 80 25

  button "Join Channel", 14, 200 45 80 25 
  button "ON", 15, 20 255 40 25
  button "OFF", 16, 20 285 40 25
  button "Add", 17, 140 350 40 25
  button "Del", 18, 190 350 40 25

  button "Exit", 104, 120 390 80 25, OK default group

}
on *:DIALOG:ppgjoin:init:*:{
  did -a ppgjoin 10 %ajoin
  if (%chan1 != $null) did -a ppgjoin 8 %chan1
  if (%chan2 != $null)   did -a ppgjoin 8 %chan2
  if (%chan3 != $null)   did -a ppgjoin 8 %chan3
  if (%chan4 != $null)   did -a ppgjoin 8 %chan4
  if (%chan5 != $null)   did -a ppgjoin 8 %chan5
  if (%chan6 != $null)   did -a ppgjoin 8 %chan6
  if (%chan7 != $null)   did -a ppgjoin 8 %chan7
  if (%chan8 != $null)   did -a ppgjoin 8 %chan8
  if (%chan9 != $null)   did -a ppgjoin 8 %chan9
  if (%chan10 != $null)   did -a ppgjoin 8 %chan10
  if (%chan11 != $null)   did -a ppgjoin 8 %chan11
  if (%chan12 != $null)   did -a ppgjoin 8 %chan12
  if (%chan13 != $null)   did -a ppgjoin 8 %chan13
  if (%chan14 != $null)   did -a ppgjoin 8 %chan14
  if (%chan15 != $null)   did -a ppgjoin 8 %chan15
  if (%achan1 != $null)   did -a ppgjoin 7 %achan1
  if (%achan2 != $null)   did -a ppgjoin 7 %achan2
  if (%achan3 != $null)   did -a ppgjoin 7 %achan3
  if (%achan4 != $null)   did -a ppgjoin 7 %achan4
  if (%achan5 != $null)   did -a ppgjoin 7 %achan5
  if (%achan6 != $null)   did -a ppgjoin 7 %achan6
  if (%achan7 != $null)   did -a ppgjoin 7 %achan7
  if (%achan8 != $null)   did -a ppgjoin 7 %achan8
  if (%achan9 != $null)   did -a ppgjoin 7 %achan9
  if (%achan10 != $null)   did -a ppgjoin 7 %achan10
}
on *:DIALOG:ppgjoin:sclick:11:{
  if ( %chan1 == $null) {
    set %chan1 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan2 == $null) {
    set %chan2 $did(8) 
    did -ca ppgjoin 8 
    $did(8) did -t ppgjoin 104
    halt
  }
  if ( %chan3 == $null) { 
    set %chan3 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan4 == $null) {
    set %chan4 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan5 == $null) {
    set %chan5 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan6 == $null) {
    set %chan6 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan7 == $null) {
    set %chan7 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan8 == $null) {
    set %chan8 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan9 == $null) {
    set %chan9 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan10 == $null) {
    set %chan10 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan11 == $null) {
    set %chan11 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan12 == $null) {
    set %chan12 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan13 == $null) {
    set %chan13 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan14 == $null) {
    set %chan14 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  if ( %chan15 == $null) {
    set %chan15 $did(8) 
    did -ca ppgjoin 8 $did(8) 
    did -t ppgjoin 104
    halt
  }
  else echo -s 12 All auto-join varibles are taken please remove one before attempting to add another!
}
on *:DIALOG:ppgjoin:sclick:12:{
  if ($did(8) == %chan1) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan1
    halt
  }
  if ($did(8) == %chan2) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan2
    halt
  }
  if ($did(8) == %chan3) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan3
    halt
  }
  if ($did(8) == %chan4) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan4
    halt
  }
  if ($did(8) == %chan5) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan5
    halt
  }
  if ($did(8) == %chan6) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan6
    halt
  }
  if ($did(8) == %chan7) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan7
    halt
  }
  if ($did(8) == %chan8) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan8
    halt
  }
  if ($did(8) == %chan9) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan9
    halt
  }
  if ($did(8) == %chan10) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan10
    halt
  }
  if ($did(8) == %chan11) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan11
    halt
  }
  if ($did(8) == %chan12) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan12
    halt
  }
  if ($did(8) == %chan13) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan13
    halt
  }
  if ($did(8) == %chan14) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan14
    halt
  }
  if ($did(8) == %chan15) {
    did -d ppgjoin 8 $did(8).sel
    unset %chan15
    halt
  }
  else echo -s 12The Channel is not in your channel database!
}
on *:DIALOG:ppgjoin:sclick:13:/join $did(8)
on *:DIALOG:ppgjoin:sclick:14:{
  /join $did(9)
  did -r ppgjoin 9
}
on *:DIALOG:ppgjoin:sclick:15:{
  set %ajoin ON
  did -o ppgjoin 10 1 %ajoin
}
on *:DIALOG:ppgjoin:sclick:16:{
  set %ajoin OFF
  did -o ppgjoin 10 1 %ajoin
}
on *:DIALOG:ppgjoin:sclick:17:{
  if ( %achan1 == $null) {
    set %achan1 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %aachan2 == $null) {
    set %achan2 $did(7) 
    did -ca ppgjoin 7 $did(7)
    $did(7) did -t ppgjoin 104
    halt
  }
  if ( %achan3 == $null) { 
    set %achan3 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan4 == $null) {
    set %achan4 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan5 == $null) {
    set %achan5 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan6 == $null) {
    set %achan6 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan7 == $null) {
    set %achan7 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan8 == $null) {
    set %achan8 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan9 == $null) {
    set %achan9 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  if ( %achan10 == $null) {
    set %achan10 $did(7) 
    did -ca ppgjoin 7 $did(7) 
    did -t ppgjoin 104
    halt
  }
  else echo -s 12 All join varibles are taken please remove one before attempting to add another!
}
on *:DIALOG:ppgjoin:sclick:18:{
  if ($did(7) == %achan1) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan1
    halt
  }
  if ($did(7) == %achan2) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan2
    halt
  }
  if ($did(7) == %achan3) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan3
    halt
  }
  if ($did(7) == %achan4) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan4
    halt
  }
  if ($did(7) == %achan5) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan5
    halt
  }
  if ($did(7) == %achan6) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan6
    halt
  }
  if ($did(7) == %achan7) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan7
    halt
  }
  if ($did(7) == %achan8) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan8
    halt
  }
  if ($did(7) == %achan9) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan9
    halt
  }
  if ($did(7) == %achan10) {
    did -d ppgjoin 7 $did(7).sel
    unset %achan10
    halt
  }
  else echo -s 12The achannel is not in your achannel database!
}
alias ppgjoin { dialog -mdo ppgjoin ppgjoin -4 }