mIRC Homepage
Posted By: ITC Helpchannel handling special - 17/10/04 12:23 AM
I want to get a code for handling the help-channel on my Server: It should support the following:(like a bot)
(The Channel is set to +m)
The User who joins first should get a notice like a greet, then he have to answer 3-5 Questions( like:Do you read the FAQ on our Webside ...) in a seperat privat window.
If the User answers the questions correctly the script should voice the user for a specified time (3 Minutes).
I would be grateful if somebody could post me a code for this.
Thanks alot!
Posted By: Davman Re: Helpchannel handling special - 17/10/04 01:33 AM
you could do this any number of ways really...

on *:JOIN:#HelpChannel:{
//msg $nick Questionone
//set %awaitresponse <awaiting this response>
}
on *:TEXT:*:?:{
if (%awaitresponse != $null) {
if ($1- == %awaitreponse) {
//msg $nick Questiontwo
}
}
}

or do it with aliases if you dont want to stack the if's.
Posted By: Adrenalin Re: Helpchannel handling special - 17/10/04 04:23 PM
Also in order to escape the "target flood limit" you can use the CPRIVMSG command, but not all networks support that, for seeing if your network support that or not, on connect look at the status messages if that command is there.. You must see somethink like WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE SILENCE=15 MODES=6 MAXCHANNELS=20 MAXBANS=45

For ussing that command you must have op on the channel where the user join, the syntax is:
CPRIVMSG <nick> <channel> <text>
You can use in mIRC /cprivmsg nick #ChannelwhereYouAre op the message
© mIRC Discussion Forums