mIRC Homepage
Posted By: CRAZYGUY add users - 11/05/03 08:27 PM
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
Posted By: KingTomato Re: add users - 11/05/03 10:46 PM
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.
Posted By: CRAZYGUY Re: add users - 12/05/03 02:18 AM
Thank You , now I have and idea what it looks like and stuff
Posted By: KingTomato Re: add users - 12/05/03 05:52 AM
np, glad to help out >:D
© mIRC Discussion Forums