Deop Dialog

By xredxthornsx on Jul 26, 2007

Have you ever been in a room and someone deoped you??? and you where just to lazy to type /cs op #channel . Well this script will probably be your companion especially if you are so lazy that you type /hop just to get your op back.... ok sorry .... ok how it works: When you get DEOPed in a room a dialog pops up on top of all windows and in the taskbar and tells you "You have been DEOPed in a room do you want to reop?" in has a yes button and a no button this part is obvious click the yes button to reop and the no button to cancel the dialog. It also sends a echo saying "You have been DEOPed in #channel" in your status and the active channel.

A downside of this script is that if you get deoped in multiple chanels it sends a message to your status "* /dialog: 'Deop' name in use (line 13, script8.ini)" ...(delete by user)

Please tell me what you think and also what i could do better. i'm new to mIRC i just got it about 2 months ago. i learn fast so give me some help with my learning

UPDATE1: i forgot to tell what to do with this. you copy the snippet and put it in your remotes. click file new if you have a script already in the remotes. then paste it and click file then save as then type deopdialog.ini

UPDATE2: Deleted by user

UPDATE3: i've deleted the newer script version because i believe the first version is better even though it ops in all rooms it works better. and i've added an alias to reop (it brings up the dialog too)

dialog Deop { 
  Title "Deop Dialog" 
  Size -1 -1 150 100 
  option dbu
  text "You have been deoped in a channel do you want to reop?"   1, 5 1 130 27
  Button "yes", 2, 40 85 30 15, ok
  Button "no", 3, 70 85 30 15, cancel
}

alias reop { dialog -mdo Deop Deop }

on *:deop:#:{
  if ($opnick != $me) { halt }
  if ($opnick == $me) { //echo -astbf You have been DEOPed in $chan }
  dialog -mdo Deop Deop 
}

on *:dialog:Deop:*:* {
  if ($devent == sclick) {
  if ($did == 2){ /cs op }
}
}

Comments

Sign in to comment.
guest598594   -  Nov 15, 2007

no need for variable, and if u do want it, it shuold be /var not /set

 Respond  
Korvin   -  Nov 15, 2007
on *:deop:#:{
  if ($opnick != $me) { halt }
  if ($opnick == $me) { set %deopchan $chan | echo -astbf You have been DEOPed in %deopchan }
  dialog -mdo Deop Deop 
}
 Respond  
xredxthornsx   -  Nov 15, 2007

ok thanks :)

as i said i don\'t use it anymore

 Respond  
guest598594   -  Nov 15, 2007

good job on ur first script, but heres a little advice

  if ($opnick != $me) { halt }

that lines not needed, and with the on deop, check if the dialogs already up b4 opening it using $dialog($dname) :)

 Respond  
xredxthornsx   -  Nov 15, 2007

yea i know it was my FIRST and i do mean FIRST dialog script i was just doing it for kicks and decided to post it here

i actually don't use this script anymore... it got in the way... but i thought it interesting enough to post... i am still new at scripting and some of the stuff i don't know how to do still.. anyways thank you for the comments

 Respond  
guest598594   -  Sep 24, 2007

i agree, right now, you would just be better off typing /cs op

 Respond  
Kyousoukyoku   -  Sep 24, 2007

Um, you should check if you are actually in a channel and add the parameters as to what channel you are in. ;) Add a join event, and what if you are banned? I would add a lot more coding that checks specifics so that it doesn\'t recieve an error.

 Respond  
guest598594   -  Sep 24, 2007

could use a lot of work...you should mention what channel, maybe do a on deop, if ($opnick == $me) then start up the dialog

also, you should check if you arent already opd

i find this really pointless, why make it a dialog where you type /reop and click yes, when you can do the same thing w/o clicking yes, just \"alias reop cs op\"

 Respond  
SnapeisntEvil   -  Sep 16, 2007

how do u make the script not op you in every channel?

 Respond  
xredxthornsx   -  Aug 06, 2007

yea that didn\'t work

but thanks any way

 Respond  
Callison1   -  Jul 28, 2007

I don\'t have time to test it, but I think the answer is this: Change

dialog -mdo Deop Deop

to

dialog $iif($dialog(Deop),-v,-mdo)
 Respond  
xredxthornsx   -  Jul 28, 2007

does anyone know how to stop the on deop part from trying to open the dialog when it\'s already in use?

 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.