mIRC Home    About    Download    Register    News    Help

Print Thread
#119348 04/05/05 03:17 PM
Joined: May 2005
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2005
Posts: 13
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

#119349 04/05/05 10:43 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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)
  }
}
 

Last edited by RusselB; 04/05/05 11:15 PM.
#119350 06/05/05 03:11 PM
Joined: May 2005
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2005
Posts: 13
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

#119351 06/05/05 03:28 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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)?


Invision Support
#Invision on irc.irchighway.net
#119352 06/05/05 04:26 PM
Joined: May 2005
Posts: 13
S
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2005
Posts: 13
They will be named levels yes .
The names will correspond numerical levels. Access to tools and features given based on the level assigned.


Link Copied to Clipboard