mIRC Home    About    Download    Register    News    Help

Print Thread
#21052 26/04/03 10:36 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Hi i`m making an Auto Op Script for my channel which my bot will use to Op users from a predefined list.

Yes i am aware that mIRC has a built in such option, but to be kind about it ... it doesnt work (Sorry Khaled)
Have looked at the Auto Op option in the mIRC help file, followed it`s instruction and stuff, i have the tick box checked

1st
I have used two different types of wildcard patteren

Nick1!nick1@*
&
Nick2!nick2@summadeupisp.com

Both goto my channel #channel and the server address whatnotirc (madeup).

So i decided to script my own.

So far i have
Code:
ON *:JOIN:%opchans {
  if ($istok(%opnicks,$nick,44)) {
    mode $active +ooo $1-3
  }
}


Ok i`m using variables for the channel and the nicks that join.
These are stored in my remotes.ini file in the variables section.

%opchans #channel
%opnicks Nick1, Nick2

I dont understand why it's not working for either methods, would somebody be able to help me or should i just give up on this mad project of mine.

I have disabled both types of Auto Ops incase there was conflicts but to no avail.

Thanks
ShadowDemon
mIRC V6.03


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#21053 26/04/03 11:15 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Take the spaces out of %opnicks Nick1, Nick2
%opnicks Nick1,Nick2,Nick3

#21054 26/04/03 11:33 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Hmm, thanks Nimue, but it`s not working

Have taken out the spaces as you said, joined a clone to my channel to test and i get nothing in the status screen.

Just done a /debug on and got this
Code:
<- :DeathKnight!LordSoth@21*.***.**.** JOIN :#UTCA
-> DemonsPortal MODE #UTCA +ooo
<- :DeathKnight!LordSoth@21*.***.**.** QUIT :


(I have used *'s to mask the IP address of the testing nick)

The thing is that DeathKnight, who is added to my Variables list is not getting Auto Opped, and mode is not getting changed

ShadowDemon


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#21055 26/04/03 11:41 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
I don't know why you have $1-3, That should be $nick, and only one o
Code:
ON *:JOIN:%opchans {
  if ($istok(%opnicks,$nick,44)) {
    mode # +o $nick
  }
}

#21056 26/04/03 11:50 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Lol, thanks Nimue, damn i could kick myself, something as easy as that i wasnt sure if that was the problem or not.

I had the $1-3 cos i must of been taking some of the commands from another one of my Scripts that i use, where i manually click on a nick and then op them, thats why i made the Auto Op script, cos sumtimes i`m not in my channel, but i leave the bot there.

Btw the server i am on doesnt have a Chanserv or some kind of bot like "G" or X" or "Q" so i cant add them to the services commands for example /msg g op blahblahblah.

ShadowDemon


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#21057 27/04/03 12:41 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Don't u need en end colon (:) after the %opchans variable too? confused


-KingTomato
#21058 28/04/03 11:27 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Errr, not sure i needed one. shocked

All my variables that i set dont use an end colon

Anyway besides Nimue got it right for me and it auto ops my friends

Thanks anyways, any help is better than no help at all grin
might try messing around with it by adding the colon at the end


Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Link Copied to Clipboard