mIRC Homepage

Need someone to help me please

Posted By: revolutecbx

Need someone to help me please - 18/03/15 01:07 AM

Hi! I was wondering if someone could make me a question of the day script, where if you type !question, it says Question of the day: (Question goes here), and a command to set the question to go along with it, something like !qset (question), only usable by me, thanks in advance!
Posted By: Nillen

Re: Need someone to help me please - 18/03/15 01:26 AM

Code:
on *:text:!qset &:#: if ($nick == YOURNICK) { set %qotd $2- }
on *:text:!question:#: msg # %qotd
Posted By: revolutecbx

Re: Need someone to help me please - 18/03/15 01:33 AM

Thanks! You're a really cool dude!
One little problem, it appears to only work if the question is one word, do you think you could maybe fix that please? Thanks!
Posted By: Nillen

Re: Need someone to help me please - 18/03/15 01:43 AM

Ah, yes.
My bad..

Change the & to a * instead.
Posted By: revolutecbx

Re: Need someone to help me please - 18/03/15 01:44 AM

Sweet, thanks!
© 2020 mIRC Discussion Forums