PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: civil on 22 December, 2003, 11:42:03

Title: add mass message to trivia
Post by: civil on 22 December, 2003, 11:42:03
hi all,

i want the trivia bot to give specific mass messages (command of robocop) when it's started (+tbstart) and when it's stopped (+tbstop) how can this lines be?anyone help


as usual let me give example

when i +tbstart it the mass message to all hub :

TRIVIABOT IS STARTED
use +tbjoin to play
+tbhelp for help
HAVE FUN!

and when i +tbstop again a mass message comes

TRIVIABOT IS STOPPED FOR SOMETIME!!

use +tbhelp for the commands

can we add these lines?thanks from now  :))
Title:
Post by: plop on 22 December, 2003, 12:07:25
QuoteOriginally posted by civil
hi all,

i want the trivia bot to give specific mass messages (command of robocop) when it's started (+tbstart) and when it's stopped (+tbstop) how can this lines be?anyone help


as usual let me give example

when i +tbstart it the mass message to all hub :

TRIVIABOT IS STARTED
use +tbjoin to play
+tbhelp for help
HAVE FUN!

and when i +tbstop again a mass message comes

TRIVIABOT IS STOPPED FOR SOMETIME!!

use +tbhelp for the commands

can we add these lines?thanks from now  :))
insert this on the part of trivia where it starts.
  SendToAll(Bot, "\r\nTRIVIABOT IS STARTED\r\nuse +tbjoin to play\r\n+tbhelp for help\r\nHAVE FUN!|")
and this on the part where it stops.
  SendToAll(Bot, "\r\nTRIVIABOT IS STOPPED FOR SOMETIME!!\r\nuse +tbhelp for the commands|")
you might have 2 change "Bot" for botname or something, don't know what trivia bot uses.

plop
Title:
Post by: civil on 22 December, 2003, 12:48:59
thanks for the answer plop but icouldn't make it work!

the trivia gives its message in mainchat in the beginning
 but there's no change after i added the lines that you gave me.there's no message from Robocop as a mass message.

what did i do wrong? ?(
Title:
Post by: plop on 22 December, 2003, 13:14:08
QuoteOriginally posted by civil
thanks for the answer plop but icouldn't make it work!

the trivia gives its message in mainchat in the beginning
 but there's no change after i added the lines that you gave me.there's no message from Robocop as a mass message.

what did i do wrong? ?(
you can't make robocop say it because that is compiled, that line should be inserted there with some extra stuff 2 also use the same command.
but you can make trivia pretend 2 be robocop.
can you post an example of the robocop msg and the trivia bot.
then i'll insert it in trivia so it looks like it's robocop speaking.

plop