mIRC Home    About    Download    Register    News    Help

Print Thread
#129691 08/09/05 01:01 PM
Joined: Jul 2005
Posts: 19
E
encom Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2005
Posts: 19
Hello all

I need 2 scripts:

1. A script that can op some-one if he join and have tag like //

2. A script that can voice some-one if he join and have tag like //

--

Help me out pls, thanks!

#129692 08/09/05 02:41 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It's dangerous to op someone based only on their nicks. Anyone could easily be opped that way and take over a channel.

Also, your request is for a +o and a +v for the same tag, which is kind of strange.

Anyhow, here's your script:
Code:
on *:join:#: {
  if (// isin $nick) {
    mode $chan +ov $nick $nick
  }
}


Invision Support
#Invision on irc.irchighway.net
#129693 08/09/05 03:28 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
or...

you can do this if the server you are on shows the hostmask and does not change periodically now first script you must tell the only people you trust with // the command in PM to add themselves has pre-authorized user. lets say for example someone no longer wants to be on your channel you can always change the command.

on 1:TEXT:*:?: {
if ($1 == !aduser.10) { auser 10 $address($nick,3) }
} < this script allows someone to msg the bot or you and add themselves has a user with level 10 youll see later why i mention this.
...................................................................
another script you can do is something like this

alias adduser {
auser 10 $address($1,3)
} <<<< this script actually lets you type in mirc /adduser nicknamehere and will automatically had that nick has a Authorized user access level 10 has long they are on channel of course.
--------------------------------------------------------
point is theres multi ways you can script an auser now what can can be done about this to make it safe for you and secure is that...

on 10:JOIN:#: {
if ($me isreg #) {
if (// isin $nick) { mode +ov $nick $nick }
}
} <<< so this means if the user is added has an authorized user access level 10 it will voice and op him/her.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#129694 08/09/05 04:40 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you could modify This Code to work with the on join and levels that Lpfix5 was talking about.


Link Copied to Clipboard