mIRC Homepage
Posted By: StewRedman registration script - 04/05/05 03:17 PM
I want to register users to my channel
I need a script that would basically stop users at the door and ask them to choose from a list of designations and when the choose one they are made a user of that level
I could edit and add the distinctions and levels and supporting text
it would give them that level allow access based on that level
amd greet based on the greeting for that level
Posted By: RusselB Re: registration script - 04/05/05 10:43 PM
Do you want them to be asked each time they enter the channel/room or only the first time, and then have them be recognized by you/the bot each time they enter from then on?

Here's a quick code that would work as a starter...if you want/need something more complex, then I'll need more information.
Code:
 on *:join:#:{
  if $level($nick) == 1 {
    .msg $nick Please choose one of the following designations
    set %desig = $addtok(%desig,$nick,32)
    ;list of designations
  }
  else $read(Welcome.txt,$level($nick))
}
on *:text:!desig &:*:{
  if $istok(%desig,$nick,32) {
    .auser $2 $nick
    set %desig $remtok(%desig,$nick,1,32)
  }
}
 
Posted By: StewRedman Re: registration script - 06/05/05 03:11 PM
Ok what I can do is sketch it out.

on 1 join
bot <notice> $nick welcome to the # please type !register in channel so I will recognize you when you return.
$nick !register
bot ? $nick please choose one of the following !1 !2 !3 ......
when the user chooses a message that fits that choice is sent and the user level is changed
and when they return they are greeted based on the level their choice assigned them
also there should be a piece of code that would work this way

if your status has changed and you wish to reregister type
!change

not sure the best way that should work but I guess it should make them a level 2 not 1 and a new message that says
please update me as to your current status and off the same options as before !1 !2 !3 !4.................
with one other diff
level twos are asked when ever they return to update
Thank you in advance
Posted By: Riamus2 Re: registration script - 06/05/05 03:28 PM
Out of curiosity, are these named levels or numerical levels? In other words, are people choosing level names like "elf" or "dwarf" or "ogre" (if the channel were a RP channel, for example)? Or are you just having people select level numbers (1, 2, 3, ...., 3542, etc)?
Posted By: StewRedman Re: registration script - 06/05/05 04:26 PM
They will be named levels yes .
The names will correspond numerical levels. Access to tools and features given based on the level assigned.
© mIRC Discussion Forums