Post by Darth Maul on Oct 27, 2015 7:21:09 GMT
Fastest Finger
I created this script for Noxious, when they had a Fastest Finger Event. They since took that event out, however other servers might have a similar event.
There are a number of variations, but the most recent one nox was running had messages like this:
[ FASTEST FINGER ] Hurry up! The fastest player to type "!fastest EB/P=OX/LE=B/RHQB" without the slashes, including any equal signs wins a prize!
[ FASTEST FINGER ] Are you ready? The quickest person to type "!fastest IF;QS_Y;BFN;J_EN" without any semi-colons, including any underscores wins a prize!
[ FASTEST FINGER ] Get Ready! The first participant to type "!fastest DU=ECQ=M,AF=IUDJ" without any commas, including the equal signs wins a prize!
[ FASTEST FINGER ] The quickest player to type "!fastest EFP=K|JZX=GF|CZ=ZO" without any vertical bars, including the equal signs wins a prize!
[ FASTEST FINGER ] Fast! The fastest player to type "!fastest TEB*WW-PV*VFTV-XA" without any stars, including any dashes wins a prize!
[ FASTEST FINGER ] Hurry up! The quickest participant to type "!fastest OS,J=FR,YE=L,ZCX=KXDQ" without any commas, including any equal signs wins a prize!
[ FASTEST FINGER ] Fast! The fastest competitor to type "!fastest PQ/Z=JU/OG=L/WHK" without any slashes, including any equal signs wins a prize!
[ FASTEST FINGER ] Hurry up! The fastest person to type "!fastest WQ-V|YN-ZE|V-NEK-KJQ-YQ" without any vertical bars, including the dashes wins a prize!
[ FASTEST FINGER ] Are you ready? The first participant to type "!fastest CLA;T-TYW;EY-LU;YZX-YP" without the semi-colons, including the dashes wins a prize!
[ FASTEST FINGER ] Quick! The fastest character to type "!fastest OO_Y/LK_GE/J_SGV_BVIS" including the underscores, without any slashes wins a prize!
[ FASTEST FINGER ] Quick! The fastest player to type "!fastest KV=Z*KN=TJ*W=RJK" including the equal signs, without any stars wins a prize!
[ FASTEST FINGER ] Are you ready? The first participant to type "!fastest OA=Z;AG=WT;M=CFQ" without any semi-colons, including any equal signs wins a prize!
[ FASTEST FINGER ] Are you ready? The quickest participant to type "!fastest WQ-V|YN-ZE|V-NEK-KJQ-YQ------30" including the underscores, without any semi-colons wins a prize!
Simply put, you had to take out a certain symbol and include another. The order of these characters would be randomized, the length of text would be randomized, and the certain words within the message would be randomized.
Using exact positioning to work out which characters to keep, and which to throw away, would be impossible.
This script will consider the first symbol it sees to be the one to take out, and will include any other symbols. i.e. "!fastest EB/P=OX/LE=B/RHQB" will return "!fastest EBP=OXLE=BRHQB".
Download the file, and open it with Cavebot. The script is located in the Cavebot Scripting section. It's set to detect any message received, so you can test it easily.
Download here
-------------------------------------------------
-------------------------------------------------
------> Fastest Finger.elfc (3.76 KB) < ------
-------------------------------------------------
-------------------------------------------------
Here's the script in full, in-case you don't want to download the above file, or if you don't have an account on the forum.
If you have any questions about it, or need it edited, feel free to post below. You will need a forum account to download the file.
I created this script for Noxious, when they had a Fastest Finger Event. They since took that event out, however other servers might have a similar event.
There are a number of variations, but the most recent one nox was running had messages like this:
[ FASTEST FINGER ] Hurry up! The fastest player to type "!fastest EB/P=OX/LE=B/RHQB" without the slashes, including any equal signs wins a prize!
[ FASTEST FINGER ] Are you ready? The quickest person to type "!fastest IF;QS_Y;BFN;J_EN" without any semi-colons, including any underscores wins a prize!
[ FASTEST FINGER ] Get Ready! The first participant to type "!fastest DU=ECQ=M,AF=IUDJ" without any commas, including the equal signs wins a prize!
[ FASTEST FINGER ] The quickest player to type "!fastest EFP=K|JZX=GF|CZ=ZO" without any vertical bars, including the equal signs wins a prize!
[ FASTEST FINGER ] Fast! The fastest player to type "!fastest TEB*WW-PV*VFTV-XA" without any stars, including any dashes wins a prize!
[ FASTEST FINGER ] Hurry up! The quickest participant to type "!fastest OS,J=FR,YE=L,ZCX=KXDQ" without any commas, including any equal signs wins a prize!
[ FASTEST FINGER ] Fast! The fastest competitor to type "!fastest PQ/Z=JU/OG=L/WHK" without any slashes, including any equal signs wins a prize!
[ FASTEST FINGER ] Hurry up! The fastest person to type "!fastest WQ-V|YN-ZE|V-NEK-KJQ-YQ" without any vertical bars, including the dashes wins a prize!
[ FASTEST FINGER ] Are you ready? The first participant to type "!fastest CLA;T-TYW;EY-LU;YZX-YP" without the semi-colons, including the dashes wins a prize!
[ FASTEST FINGER ] Quick! The fastest character to type "!fastest OO_Y/LK_GE/J_SGV_BVIS" including the underscores, without any slashes wins a prize!
[ FASTEST FINGER ] Quick! The fastest player to type "!fastest KV=Z*KN=TJ*W=RJK" including the equal signs, without any stars wins a prize!
[ FASTEST FINGER ] Are you ready? The first participant to type "!fastest OA=Z;AG=WT;M=CFQ" without any semi-colons, including any equal signs wins a prize!
[ FASTEST FINGER ] Are you ready? The quickest participant to type "!fastest WQ-V|YN-ZE|V-NEK-KJQ-YQ------30" including the underscores, without any semi-colons wins a prize!
Simply put, you had to take out a certain symbol and include another. The order of these characters would be randomized, the length of text would be randomized, and the certain words within the message would be randomized.
Using exact positioning to work out which characters to keep, and which to throw away, would be impossible.
This script will consider the first symbol it sees to be the one to take out, and will include any other symbols. i.e. "!fastest EB/P=OX/LE=B/RHQB" will return "!fastest EBP=OXLE=BRHQB".
Download the file, and open it with Cavebot. The script is located in the Cavebot Scripting section. It's set to detect any message received, so you can test it easily.
Download here
-------------------------------------------------
-------------------------------------------------
------> Fastest Finger.elfc (3.76 KB) < ------
-------------------------------------------------
-------------------------------------------------
Here's the script in full, in-case you don't want to download the above file, or if you don't have an account on the forum.
(Incase you don't know how to test the script out, go to the Cavebot panel, then click the Edit button on the top-right of the Cavebot page. After that a new tab will open, enter the entire script, hit save on that tab then close it. You'll be brought back to the Cavebot tab, when you want to run the script just tick Follow Waypoints, in the center of the tab.)
auto 1 | dontlist | if [$curmsg.content ? 'fastest'] {set $space '$cutstr.'$curmsg.content'.2.1 | set $counter '0' | set $ex2 '0' | set $ex '0' | set $exon '0' | set $quote '-1' | set $quotenum '0' | set $cur '40' | set $curpos '0' | set $curon '0' | set $fall '' | set $qplaceholder '-1'}
auto 1 | dontlist | loop {1} {inc '$cur' | set $curpos '$cutstr.'$curmsg.content'.$cur.1' | inc $counter}
auto 1 dontlist | if [$curpos == '!'] {set $qplaceholder '$cur' | dec '$qplaceholder' | set $quote '$cutstr.'$curmsg.content'.$qplaceholder.1' | inc '$quotenum'}
auto 1 dontlist | if [$curpos == '/' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '\' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == ':' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == ',' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '=' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '*' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '-' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '_' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == ';' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == '$quote' && $exon == '0'] {set $ex '$curpos' | set $exon '1'}
auto 1 dontlist | if [$curpos == $ex] {clear $curpos | dec $counter}
auto 1 dontlist | if [$quotenum == '0'] {clear $curpos | dec $counter}
auto 1 dontlist | if [$quotenum == '2'] {clear $curpos | dec $counter}
auto 1 dontlist | if [$curpos == '$quote'] {inc '$quotenum' | dec $counter}
auto 1 dontlist | if [$curpos == '!'] {clear $curpos}
auto 1 dontlist | set $fall '$fall$$$$curpos'
auto 1 listas 'FF say' | if [$lastmsg.content ? 'prize' && $quotenum == '2'] {say '!$cutstr.'$fall'.1.'[$counter-1]' | inc '$quotenum'}
auto 1 | dontlist | if [$cur >= '180'] {set $ex '0' | set $exon '0' | set $quote '-1' | set $quotenum '0' | set $cur '40' | set $curpos '0' | set $curon '0' | set $fall '' | set $qplaceholder '-1'}
If you have any questions about it, or need it edited, feel free to post below. You will need a forum account to download the file.