mIRC Homepage

mIRC lock password

Posted By: CrAsh0v3r

mIRC lock password - 19/04/03 08:53 PM

can somebody tell me how's the mirc lock password script ?
i want to set a password on something... confused
Posted By: c0ldfusi0n

Re: mIRC lock password - 19/04/03 11:15 PM

Hit ALT+O, scroll down to the "General" item, expand it to find "Lock". Select it, then play with those settings. Remember your password, though.
Posted By: CrAsh0v3r

Re: mIRC lock password - 19/04/03 11:27 PM

that's not what i was asking for. well, i will explain again. I need to know who is the mirc lock pass script. because i want to set a pass on a script that i made. the script was designed that when you open mirc to ask for you nickname and then after you type the nick in the box, the script draws something cool and some text in a window and after timer 1 4 -@ and change your nickname as you typed it in the box.
i want to remove that thing with the nickname and make it act like a password. so that means when i type the wrong pass to draw that text and say wrong password bye !! and then exit mirc.
Posted By: Jesper

Re: mIRC lock password - 19/04/03 11:54 PM

Ok first you have to set a password, either a %var or in an ini file.
this example uses an ini file, in $mircdir named password.ini.

on *:load: { writeini password.ini passsection password1 $$?="-=ENTER REAL PASS=-" }

on *:start: {
  if (%passfail == on) { unset %passfail }
  writeini password.ini passsection password2 $$?="-=ENTER PASS=-" 
  var %pass1 $readini(password.ini,passsection,password1)
  var %pass2 $readini(password.ini,passsection,password2)
  if (%pass1 === %pass2) { return }
  else { set %passfail on }

on *:CONNECT: {
  if (%passfail == on) { echo -a INTRUDER | quit }

3x === means its case sensitive
sure you can hide the passwords in any ini file
its rather useless as people will just look in the script to see where your password is stored
Oh and script is untested, so maybe it works, maybe it dont wink
Posted By: CrAsh0v3r

Re: mIRC lock password - 20/04/03 03:11 PM

okay that's working, but what's happening when he clicks on OK or CANCEL ? because you didnt write that there... and it's still connecting...
Posted By: gerdigos

Re: mIRC lock password - 20/04/03 08:22 PM

Store $$?="-=ENTER PASS=-" in a variable and use an if to determine if there is a value in it. If not, exit.

Oh, and i think you should use /exit instead of /quit there.
Hope i helped! smirk
Posted By: Jesper

Re: mIRC lock password - 21/04/03 09:18 PM

but it should connect, then it will check if the pass entered is wrong by comparing the var it sets with the one stored in the ini file., if they dont match up, then it "should" disconnect from the server youre trying to connect to... doesnt it do that?

OK/Cancel shouldnt matter unless the var isnt set when you press cancel, but thats quickly fixed:
on *:CONNECT: {  
   if (%passfail == on) || (%passfail == $null) { echo -a INTRUDER | quit }

Maybe that will do it smile
© 2020 mIRC Discussion Forums