I have made a script, that if you join #irc it makes u take a test to see if the ? u have can be answered there. If you pass the test it voices you and you never have to take it again, thats the part i dont know how to do. here is what i have wrote. all i need it to do is if they pass the test it adds there address somewhere and when they join it voices them. The scripts are made in two files here is the first:
on *:JOIN:#IRC: {
.msg $nick In order for us to better help you, please take a short quiz. If you pass you will be voiced and never have to take it again. Type in !test to start | halt }
*Here is where if like they have not taken the test it sent them that msg and if they had than /mode #irc + v $nick
*Here is the 2nd part:
on *:TEXT:!test**:*: {
if ($2 == $null) && ($3 == $null) {
.msg $nick This test has 5 ?'s you must get all 5 ?'s right to pass lets begin.
/timer1 1 3 /msg $nick 7 1st Question
/timer2 1 5 /msg $nick Is your problem torncity relatead??? type in !test 1 yes/no. | halt }
if ($2 == 1) && ($3 == yes) { /ban -ku7200 #irc $address | /timer1 1 2 /kick #irc $nick WRONG ANSWER | /timer2 1 2 /msg $nick THIS CHANNEL IS FOR IRC QUESTION'S ONLY YOU CAN RETAKE THE QUIZ IN 2 HRS. | halt }
if ($2 == 1) && ($3 == no) { .msg $nick Corect answer next question
.timer1 1 2 /msg $nick 7 2nd question
.timer2 1 3 /msg $nick Is your question about your nickname??? Type in !test 2 yes/no }
if ($2 == 2) && ($3 == yes) { /ban -ku7200 #irc $address | /timer1 1 2 /kick #irc $nick WRONG ANSWER | /timer2 1 2 /msg $nick THIS CHANNEL IS FOR IRC QUESTION'S ONLY YOU CAN RETAKE THE QUIZ IN 2 HRS. | halt }
if ($2 == 2) && ($3 == no) { .msg $nick Corect answer next question
.timer1 1 2 /msg $nick 7 Final question
.timer2 1 3 /msg $nick Is your question about a channel like how to register it??? Type in !test 3 yes/no }
if ($2 == 3) && ($3 == yes) { /ban -ku7200 #irc $address | /timer1 1 2 /kick #irc $nick WRONG ANSWER | /timer2 1 2 /msg $nick THIS CHANNEL IS FOR IRC QUESTION'S ONLY YOU CAN RETAKE THE QUIZ IN 2 HRS. $+ | halt }
if ($2 == 3) && ($3 == no) { .msg $nick Corect answer you have passed the test, you will no longer have to take this test. | /timer4 1 2 /mode #irc +v $nick
.msg $nick This test has 5 ?'s you must get all 5 ?'s right to pass lets begin.
/timer1 1 3 /msg $nick 7 1st Question
/timer2 1 5 /msg $nick Is your problem torncity relatead??? type in !test 1 yes/no.
*If they made it all the way to the end than it adds their $address somewhere and at the first file voices them so they dont have to take the test again. You can change what ever u need to to make it work just give suggestion's even though i have no clue what to do