mIRC Home    About    Download    Register    News    Help

Print Thread
#23743 11/05/03 08:27 PM
Joined: May 2003
Posts: 25
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
ok Iam just wondering how i can and some one to my access to my bot, insteed of useing the a aliases like if I type -adduser #chan Nick Level pw


Hmm.....IRC! www.warriorsouls.com
#23744 11/05/03 10:46 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:TEXT:-adduser *:#: {
if ($chr(35) isin $2) && ($4 isnum) && $5 != $null) {
/set %pw. [ $+ [ $2 ] $+ ] . [ $+ [ $3 ] ] $5
/set %lvl. [ $+ [ $2 ] $+ ] . [ $+ [ $3 ] ] $4
.notice $nick User $3 added to $2 $+ 's access list at level $4
}
else {
.notice $nick Invalid Parameters. Syntax: -adduser <#chan> <nick> <level> <password>
}
}

on 1:TEXT:-login *:?: {
if ($chr(35) isin $2) $$ ($3 != $null) {
if ($3 == %pw. [ $+ [ $2 ] $+ ] . [ $+ [ $nick ] ]) {
.auser %lvl. [ $+ [ $2 ] $+ ] . [ $+ [ $nick ] ] $nick
.notice $nick You have now been logged in.
}
else {
.notice $nick Password Incorrect
}
}
else {
.notice $nick Invalid Parameter. Syntax: -login <#chan> <password>
}
}

Change the 1 to the level that allows a user to add another user. Also, the way this works is if you type -adduser #king-tomato KingTomato 10 mypassword then the following values are set:

%pw.#king-tomato.KingTomato mypass
%lvl.#king-tomato.KingTomato 10

Then, just reference with a login script. To give you an idea, I provided a login script for you.


-KingTomato
#23745 12/05/03 02:18 AM
Joined: May 2003
Posts: 25
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
Thank You , now I have and idea what it looks like and stuff


Hmm.....IRC! www.warriorsouls.com
#23746 12/05/03 05:52 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
np, glad to help out >:D


-KingTomato

Link Copied to Clipboard