PtokaX forum

Development Section => Your Developing Problems => Topic started by: Zood on 06 September, 2004, 00:07:17

Title: How can i start trivia bot Version 2.2 written by Leon a.k.a. Don Leon
Post by: Zood on 06 September, 2004, 00:07:17
How can i start TriviaBot Version 2.2 written by Leon a.k.a. Don Leon Changes by Spud (Dream~Masters) every hour?
Can i use 2 or more functions OnTimer() ?
Title:
Post by: nErBoS on 06 September, 2004, 01:34:56
Hi,

It would help us if you show the script please.

Best regards, nErBoS
Title:
Post by: plop on 06 September, 2004, 06:51:00
QuoteOriginally posted by Zood
How can i start TriviaBot Version 2.2 written by Leon a.k.a. Don Leon Changes by Spud (Dream~Masters) every hour?
Can i use 2 or more functions OnTimer() ?
no idea how you start it as i never used it.

you can only use OnTimer 1x, but there are tricks 2 extend it.
phatty's multiminitimer is 1 way, and in my texter 4.x serie you can find another way.

@nErBoS: that script can be found on my site.

plop
Title:
Post by: nErBoS on 06 September, 2004, 14:08:36
Hi,

QuoteOriginally posted by plop
@nErBoS: that script can be found on my site.

Me too lazy  :P  :))

Zood...

I have take a look at the script and seens that it doesn't have a commands to stop or start the trivia, am i right ??

Best regards, nErBoS
Title:
Post by: Zood on 06 September, 2004, 15:19:17
To nErBoS: I can start & stop trivia.
To plop: What's the phatty's multiminitimer? Where i can find it?
Title:
Post by: Zood on 06 September, 2004, 16:09:33
Question #2. How a can use 2 SetTimer()/StartTimer() ? In one time?
Title:
Post by: nErBoS on 06 September, 2004, 16:26:31
Hi,

This is what you have in "doc\scripting.txt" on your ptokax folder...

Timers
======

By now every script has it's own timer. There are three global functions for timer control:

SetTimer(time)
  time = time in miliseconds

StartTimer()
  starts the timer

StopTimer()
  stops the timer

To respond on timer event write your response code into OnTimer function:

function OnTimer()
  //TODO: your code here
end

Best regards, nErBoS
Title:
Post by: plop on 07 September, 2004, 20:22:13
QuoteOriginally posted by Zood
To nErBoS: I can start & stop trivia.
To plop: What's the phatty's multiminitimer? Where i can find it?
it can be found in the howto section of the board.

plop