mIRC Homepage
Posted By: davy007 mirc with trivia bot problem - 02/08/10 06:03 AM
I have a large question.txt file. When using mirc with a trivia bot installed and when adding new questions to the question.txt file, the trivia bot always reports 2669 questions using the !state command. So the 2670th question and beyond are not being recognized?

Help
Posted By: 5618 Re: mirc with trivia bot problem - 02/08/10 06:10 AM
You would have to show us the script part that handles the !state command.
Posted By: davy007 Re: mirc with trivia bot problem - 02/08/10 07:39 AM
OK. And how would I go about doing that?
Posted By: 5618 Re: mirc with trivia bot problem - 02/08/10 08:01 AM
Open the scripts editor (Alt+R) and make sure you have the trivia script in front of you (if not, go to it via the View menu).
Then search for !state and see what you find.
Posted By: davy007 Re: mirc with trivia bot problem - 02/08/10 12:18 PM
Hope this is it:

alias -l msg.trivia.state { return $msg.trivia.version $e2(is currently) $e1($trivon) $+ $e2(.) $iif($getset(status,champ),$e2(Champ Mode Set to) $e1($triv(reset)) $e2(Wins.)) $e2(Question file contains) $e1($numq) $e2(lines.) $e1($numl) $e2(questions. Trivia is:) $e1($trivia.onoff) $+ $e2(.) $iif($trivia.on, $iif($question.on,$e2(Time left:) $e1($calc($thget(lagtimedout) - $question.time))) $e2(Question:) $e1($thget(Current)) $+ $e2(/) $+ $e1($thget(Max)) $e2(Team Game:) $e1($team.onoff) $+ $e2(. Trivia Round started by) $e1($thget(SUser)) $e2(on) $e1($thget(STime))) $e2(Bot time is:) $e1($time) }
Posted By: 5618 Re: mirc with trivia bot problem - 02/08/10 12:55 PM
Haha, that is one messed up alias.
I think you need to look for the alias called numq to be able to answer your question.
Then again, that alias may point to another alias again. :P
Posted By: chainz Re: mirc with trivia bot problem - 02/08/10 03:29 PM
Would be much easier to tell us what triva script your using!
Posted By: Riamus2 Re: mirc with trivia bot problem - 02/08/10 03:38 PM
I just Googled the script and it's Tat's Trivbot. Here's the script:

http://pastebin.com/uv0YGWDB

That's one really messed up script. You almost need a translator to see what's going on because almost everything seems to use a custom identifier. Rather than a very simple $lines(), it has a really convoluted method to find the number of lines in the file, which is probably why it is failing. I don't have time to test it out and find the problem, but maybe someone else can.
Posted By: davy007 Re: mirc with trivia bot problem - 03/08/10 07:20 AM
I've located the creator of Tat's Trivia Bot on myspace. His myspace name is Tatarize and gives his real name as David O.

I sent him an email today explaining the problem but haven't received a response back as of yet.

Thanks much for your help.

David wink
© mIRC Discussion Forums