Drop Sync Script

sync
commands

#1

Hello all!

I play Mech Warrior Online and stream it as well, and there is a thing some MWO players do, which is run a drop sync that viewers can use to try and get into the same match with them. What it is, is, that I would run the script and it would be like:

Drop Sync in…

One…

Two…

Three…

CLICK!

And when you see click then you knew to hit to enter the game queue. Can anyone help me out with a script? If I can set the intervals between One… Two… Three… Click, that be cool too. Just wondering if anyone has one, can make one, thought i’d throw it out there.

Thanks.


#2

Pahlease anyone?


#3

If you can code, just use some timers - the end of one timer would start the other timer.


#4

I do not know how to code unfortunately.


#5
countdown
[06-18-2018 @ 16:27:19.048 MDT] [MUTED] @IllusionaryBot, usage: countdown [seconds]
countdown 5
[06-18-2018 @ 16:27:21.078 MDT] [MUTED] Drop sync in...
[06-18-2018 @ 16:27:22.081 MDT] [MUTED] 5...
[06-18-2018 @ 16:27:23.081 MDT] [MUTED] 4...
[06-18-2018 @ 16:27:24.081 MDT] [MUTED] 3...
[06-18-2018 @ 16:27:25.082 MDT] [MUTED] 2...
[06-18-2018 @ 16:27:26.082 MDT] [MUTED] 1...
[06-18-2018 @ 16:27:27.083 MDT] [MUTED] CLICK!
countdown 10
[06-18-2018 @ 16:27:31.817 MDT] [MUTED] Drop sync in...
[06-18-2018 @ 16:27:32.820 MDT] [MUTED] 10...
[06-18-2018 @ 16:27:33.820 MDT] [MUTED] 9...
countdown 3
[06-18-2018 @ 16:27:33.939 MDT] [MUTED] @IllusionaryBot, Countdown is already running.
[06-18-2018 @ 16:27:34.819 MDT] [MUTED] 8...
[06-18-2018 @ 16:27:35.820 MDT] [MUTED] 7...
[06-18-2018 @ 16:27:36.819 MDT] [MUTED] 6...
[06-18-2018 @ 16:27:37.819 MDT] [MUTED] 5...
[06-18-2018 @ 16:27:38.819 MDT] [MUTED] 4...
[06-18-2018 @ 16:27:39.819 MDT] [MUTED] 3...
[06-18-2018 @ 16:27:40.819 MDT] [MUTED] 2...
[06-18-2018 @ 16:27:41.820 MDT] [MUTED] 1...
[06-18-2018 @ 16:27:42.819 MDT] [MUTED] CLICK!

Install the script into scripts/custom. Restart the bot.

If you want to change the interval, then at this line:

}, 1e3, 'scripts::custom::countdown');

Change 1e3. 1e3 represents one second (1000 milliseconds - e3 being 3 0’s, but shorthand). If you want 2 seconds, change to 2e3. I would change the usage that is printed out then that mentions seconds then so no one is confused but, that is just me.

This script is cheap and fast. Nothing fancy.

countdown.js (1.7 KB)


#6

Aaahhh thank you!!! Excuse my d dumbness. Just so i get that right. It would that be !countdown X (where x is the seconds?)

Thank you!!


#7

Not dumb. You are correct:

!countdown 10 --> 10 second countdown

It will not allow (well, shouldn’t allow) two countdown timers to run at the same time either. Just keeps things simpler.

Cheers!