mIRC Homepage
Posted By: Xtibian Quick Help - 26/11/06 04:05 PM
I want to make a script so when someone sends a notice to my bot like [register] [name] [pass(whatever they want not the ns one lol)] it saves it then when they rejoin they send a notice to it like [id] [the nick they used]the bot will voice them for the channel. I just dont really know what to do. frown

Thank you.
Posted By: Zonk Re: Quick Help - 26/11/06 04:09 PM
have you made any attempt?
if not, asking for the whole script is the wrong way...

read the help file or learn from other scripts (there are various that do exactly what you want)

/help on notice
/help $readini
/help $ini
/help /writeini

is probably what you need for a start...
Posted By: Xtibian Re: Quick Help - 26/11/06 04:15 PM
:\ I wasnt asking for the whole script. Was just asking for a what Id do for a start.
Posted By: Riamus2 Re: Quick Help - 26/11/06 09:43 PM
Code:
on *:notice:register*:?: {
  if (!$2 || !$3) {
    .notice $nick Incorrect format. To register, type: register name pass
  }
  else writeini login.ini Logins $2 $3
}
on *:notice:id*:?:{
  if ($1 == id && (!$2 || !$3)) {
    .notice $nick Incorrect format.  To identify, type: id name pass
  }
  elseif ($readini(login.ini,Logins,$2) == $3) {
    if ($me !isop [color:red]#yourchannel[/color]) { .notice $nick I'm not currently opped, so I cannot voice you.  Try identifying later, when I am an op. | return }
    mode [color:red]#yourchannel[/color] +v $nick
  }
  else .notice $nick Incorrect identification.
}


Try this. Replace the red with the channel name you're doing this for. Feel free to change the error messages to whatever you like.
Posted By: Xtibian Re: Quick Help - 26/11/06 10:18 PM
Thank you very much for this Riamus. smile
© mIRC Discussion Forums