Bitch Mode Dialog

By Anti on Jul 09, 2008

Here is my Bitchmode Dialog i redid it all! Okay it all works enjoy, just tell me if i missed anything thanks.

Teh Screenie! Image

alias BM2 { dialog -nmrv BM2 BM2 }
dialog BM2 {
  title "Bitch Mode"
  size -1 -1 77 58
  option dbu
  Box "Status:", 1, 1 1 32 30
  Text "Enable:", 2, 5 11 20 20
  Radio "", 3, 25 11 11 10
  Text "Disable:", 4, 5 22 20 20
  Radio "", 5, 25 21 11 10
  Box "Options:", 6, 35 1 40 55
  Check "OP", 7, 37 10 20 10
  Check "HOP", 8, 37 20 21 10
  Check "VOICE", 9, 37 30 24 10
  Button "OK", 10, 3 34 28 10, OK flat
  Button "Cancel", 11, 37 43 35 10, CANCEL flat
}
on *:DIALOG:BM:sclick:3: if ($did(3).state) { .set %Enable ON | halt }
else {
  .set %Enable OFF
}
on *:DIALOG:BM:sclick:5: if ($did(5).state) { .set %Disable ON | halt }
else {.set %Disable OFF
}
on *:DIALOG:BM:sclick:7: if ($did(7).state) { .set %OP ON | halt }
else {
.set %OP OFF
}
on *:DIALOG:BM:sclick:7: if ($did(7).state) { .set %HALFOP ON | halt }
else {
.set %HALFOP OFF
}
on *:DIALOG:BM:sclick:7: if ($did(7).state) { .set %VOICE ON | halt }
else {
.set %VOICE OFF
}
on *:OP:#: { 
if (%Enable == on) && (%OP == on) && ($me isop $chan) if ($opnick == $me) || (%Enable == off) { halt }
elseif ($opnick != $me) .mode $chan -o $opnick
.msg $chan [4Bitchmode] Halfop Protection (Lifes a bitch)
}
}
on *:HELP:#: { 
if (%Enable == on) && (%HALFOP == on) && ($me isop $chan) if ($hnick == $me) || (%Enable == off) { halt }
elseif ($hnick != $me) .mode $chan -h $hnick
.msg $chan [4Bitchmode] Halfop Protection (Lifes a bitch)
}
}
on *:VOICE:#: { 
if (%Enable == on) && (%VOICE == on) && ($me isop $chan) if ($vnick == $me) || (%Enable == off) { halt }
elseif ($vnick != $me) .mode $chan -v $vnick
.msg $chan [4Bitchmode] Voice Protection (Lifes a bitch? Lol...)
}
}
on *:LOAD:echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
Sign in to comment.
Anti   -  Nov 04, 2008

Well i see what you're getting at. I'll redo this whole thing later im just working on other script's :)

Thanks for the comment :)

 Respond  
zonirc   -  Nov 04, 2008

The dialog seem ok for me but it would be more catchy if you put OK button a little bit down(like the cancel button) and maybe the frame can be resize to match the second frame.

The code can be shorten and have a little 'makeup': on @*:OP:#: { if (%Enable == on) && (%OP == on) && ($opnick != $me) { .mode $chan -o $opnick .msg $chan [4Bitchmode] Halfop Protection (Lifes a bitch) } }

However IMO this is not so useful but perhaps someone would think otherwise :)

 Respond  
Anti   -  Aug 14, 2008

Lol not a person looked at this yet XD

 Respond  
Anti   -  Aug 14, 2008

I redid the whole thing so you guys can stop complaning. thanks :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.