Server Tech Questions

General discussion about Defcon

Moderator: Defcon moderators

User avatar
Siсiliаn Ноundd
level5
level5
Posts: 1440
Joined: Thu Oct 11, 2012 1:32 am

Server Tech Questions

Postby Siсiliаn Ноundd » Fri Sep 19, 2014 4:15 pm

Is it possible to make the bot repeat a message every so many Mins or seconds? My thought is for Public Chat, have the bot repeat a message every two Mins simply saying

Code: Select all

Say This server sole purposes is for Public Chat, no games can be started here.

But entering in that command on a Config only advertises the message once when the first player joins, not when another players joins or latter on. I know you can use the wait command for the bot to say things during each stage of Defcon but that isn't what I am looking for.

Please say its possible, and if so tell me please. (:
User avatar
Endless
level5
level5
Posts: 1343
Joined: Thu Nov 19, 2009 10:38 pm
Contact:

Re: Server Tech Questions

Postby Endless » Fri Sep 19, 2014 4:28 pm

Sicilian Hound wrote:Is it possible to make the bot repeat a message every so many Mins or seconds? My thought is for Public Chat, have the bot repeat a message every two Mins simply saying

Code: Select all

Say This server sole purposes is for Public Chat, no games can be started here.

But entering in that command on a Config only advertises the message once when the first player joins, not when another players joins or latter on. I know you can use the wait command for the bot to say things during each stage of Defcon but that isn't what I am looking for.

Please say its possible, and if so tell me please. (:


I dont think there is. You can have it Wait for the defcon's and for the percentage of nukes left, I believe., but not in an active server lobby.
User avatar
Siсiliаn Ноundd
level5
level5
Posts: 1440
Joined: Thu Oct 11, 2012 1:32 am

Re: Server Tech Questions

Postby Siсiliаn Ноundd » Fri Sep 19, 2014 4:36 pm

Thanks, I didn't think it was possible. Was worth a shot.(:
User avatar
Laika
Site Admin
Posts: 1514
Joined: Tue Feb 07, 2012 7:16 pm
Location: Moscow

Re: Server Tech Questions

Postby Laika » Fri Sep 19, 2014 6:03 pm

Actually I think it is, I'll try doing it a bit later.
User avatar
Siсiliаn Ноundd
level5
level5
Posts: 1440
Joined: Thu Oct 11, 2012 1:32 am

Re: Server Tech Questions

Postby Siсiliаn Ноundd » Fri Sep 19, 2014 6:39 pm

Laika_rus wrote:Actually I think it is, I'll try doing it a bit later.

SWEET!
User avatar
VSj
level2
level2
Posts: 171
Joined: Wed Jul 24, 2013 3:38 pm
Location: Finland

Re: Server Tech Questions

Postby VSj » Fri Sep 19, 2014 7:28 pm

The WaitSeconds directive should work just fine but you need to write the repetitions explicitly. No looping I'm afraid.

So ... for every ten minutes you have to write something like

Code: Select all

WaitSeconds 600
Say whateveryouwannasay
WaitSeconds 600
Say whateveryouwannasay
WaitSeconds 600
Say whateveryouwannasay
 ...


But it will be finite. Perhaps if the server resets hourly like the the SFCON chat did, that'll not be too long :)
User avatar
Siсiliаn Ноundd
level5
level5
Posts: 1440
Joined: Thu Oct 11, 2012 1:32 am

Re: Server Tech Questions

Postby Siсiliаn Ноundd » Fri Sep 19, 2014 7:32 pm

PM your ideas/thoughts on this Vsj, please thanks.

Return to “General”

Who is online

Users browsing this forum: No registered users and 50 guests