This is a simple owner/deowner script, I know its not much but its just something that's easy to use and directly to the point. Just put this in your mIRC remotes, type /set %owner (yourname) that way only you can tell your bot to owner or deowner someone. This will only work if your bot is owner (which should be kinda obvious)
on 1:TEXT:'owner*:#: {
if ($nick == %owner) {
/mode $chan +q $2
}
if ($nick != %owner) {
/notice $nick 4Acess Denied Noob!! :|
}
}
on 1:TEXT:'deowner*:#: {
if ($nick == %owner) {
/mode $chan -q $2
}
if ($nick != %owner) {
/notice $nick 4Acess Denied Noob!! :|
}
}
on my dialog with dcx dll unless specific identifier $chan($active) does not work
It is redundant in case there are problems with the connection to the server (e.g. netsplit) ... Apart from this problem, do you think it applies the function owner\deowner? the problem and to rejoin (hop) recognize me again owner
How do I get an Owner/Deowner Script using variables in my autoid?
i use...
on *:JOIN:#: {
If (%autoid1 == On) && ($network == %net1) && ($nick == $me) {
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana1)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana1) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana2)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana2) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana3)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana3) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana4)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana4) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana5)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana5) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana6)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana6) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana7)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana7) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana8)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana8) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana9)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana9) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana10)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana10) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana11)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana11) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana12)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana12) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana13)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana13) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana14)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana14) | /msg chanserv owner
if ($chan($active) == $readini($mircdirscripts\autoid\autoid.ini,Chan,chana15)) /msg ChanServ IDENTIFY $chan $readini($mircdirscripts\autoid\autoid.ini,Password,chana15) | /msg chanserv owner
}
}
no mine was understood as a question, I wanted to know if i can add my nickname list (which should be authenticated) or a menu popups in which define the name of nick to identify
I would like to connect to the management of ID owner of my script
to the multi channel identification nickname.
I use variables of type %nick1 %nick2... to return the ID during the join in the channel, I'd like to add this function using my existing variables :)
Jethro a flawless routines :)
wanting to... nick1 nick2 nick3 nick4 nick5 could be replaced by a variable that contains the list of nick
----> var %a = %nick1 %nick2 %nick3 %nick4 %nick5
menu menubar {
Set Nick: .set %nick1 $$?="nick?"
Set Nick: .set %nick2 $$?="nick?"
Set Nick: .set %nick3 $$?="nick?"
Set Nick: .set %nick4 $$?="nick?"
Set Nick: .set %nick5 $$?="nick?"
}
I change it to use nickname instead:
on @$*:text:/^!(up|down)( |$)/iS:#:{
var %m = q a o, %? = $regml(1)
var %a = nick1 nick2 nick3 nick4 nick5
if ($istok(%a,$nick,32)) {
if ($$2 ison #) {
mode # $+($iif(%? = up,+,-),$&
$remove(%m,$chr(32))) $str($chr(32) $2,$&
$numtok(%m,32)) | halt
}
.notice $qt($2) is not here!
}
}
change nick1, nick2, nick3, etc..with their actual nicknames. The command is:
!up/down NickHere
to set +qao
Be warned though, people can impersonate.
No, it's not, Joker. If someone sets +Q mode (with uppercase q) your example will trigger. You need to use the case sensitive version of
isincs
Just use
if ($chan)
rather than ($active == #)
If you want to make a comparison between active channel and PM. You can do:
if (!$chan) {
with a ! to indicate that it is not a channel.
chachin, here you go:
on @$*:text:/^!(up|down)( |$)/iS:#:{
var %m = q a o, %? = $regml(1)
var %a = *!*@host1 *!*@host2 *!*@host3 *!*@host4
if ($istok(%a,$wildsite,32)) {
if ($$2 ison #) {
mode # $+($iif(%? = up,+,-),$&
$remove(%m,$chr(32))) $str($chr(32) $2,$&
$numtok(%m,32)) | halt
}
.notice $qt($2) is not here!
}
}
Replace !@host1, !@host2 etc...with the ones' actual hosts.