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 }
}
}
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
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\"