11 Jun 11, 11:17AM
(This post was last modified: 11 Jun 11, 11:18AM by Ronald_Reagan.)
[SELECT ALL] Code:
//-~-~-~-~AC Private Server Connects~-~-~-~-
//Original idea by Draul, modified by Castiel, then modified again (this script) by |BC|Wolf
//-~-~Config settings~-~-
//Set this to 1 if you want to spam connects when you use this menu. 0 if you dont. You can use a menu for this, however it will reset
//each time you boot up AC with this script installed. If you want the menu to stay through sessions, comment out this line once you have
//ran this script once.
spamconnectbool = 1
//Change this key to anything else. ie: bind "Q" [showmenu "Private Connects"]
bind "P" [showmenu "Private Connects"]
//-~-~Aliases~-~-
//How to use "spamconnect" ///IMPORTANT IF YOU ARE ADDING MORE SERVERS\\\
//spamconnect takes three arguments, the first is the domain (ip/url), the second the port, and the third the match password.
//Please note that I dont know what will happen if you dont include the password at all, so I decided to play it save and let ya'll
//use -1 as the third argument if they dont have a password. See PB and oNe connects for examples.
//Note that this script will have almost no effect if spamconnectbool is set off.
alias spamconnect [if (= $spamconnectbool "1") [tmp_domain = $arg1; tmp_port = $arg2; if (= $arg3 "-1") [tmp_pass = ""] [tmp_pass = $arg3]; sleep 500 [say "/connect" $tmp_domain $tmp_port $tmp_pass]; sleep 1000 [say "/connect" $tmp_domain $tmp_port $tmp_pass]; sleep 2000 [connect $tmp_domain $tmp_port $tmp_pass]] [connect $tmp_domain $tmp_port $tmp_pass]]
//-~-~Private connects menus~-~-
//Main
newmenu "Private Connects"
menuitemvar [concatword (c 9) "BC"] [showmenu "BC"]
menuitemvar [concatword (c 2) "BCFH"] [spamconnect helvete.bcfh.eu 3040 war]
menuitemvar [concatword (c 3) "legacy"] [spamconnect legacysrv.tk 9999 match]
menuitemvar [concatword (c 1) "Mewtwo"] [showmenu "Mewtwo"]
menuitemvar [concatword (c 7) "MyS"] [showmenu "MyS"]
menuitemvar [concatword (c 0) "oNe"] [spamconnect one.asrv.tk 8010 -1]
menuitemvar [concatword (c 2) "Server Of Justice"] [spamconnect ac-jamz.com 20000 match]
menuitemvar [concatword (c 3) "TyD"] [spamconnect tearyoudown.com 21000 match]
menuitemvar [concatword (c 1) "w00p"][showmenu "w00p"]
menuitemvar [concatword (c 3) "PB"][spamconnect bcubed.pbclan.tk 1927 -1]
menuitemslider "Spam connects? " 0 1 "$spamconnectbool" 1 [OFF ON] "spamconnectbool = $arg1"
//BC
newmenu "BC"
menuitemvar [concatword (c 3) BC (c 5) " Match Server #1 " (c 3) UK] [spamconnect bcuk.pwnz.org 10004 match]
menuitemvar [concatword (c 3) BC (c 5) " Match Server #2 " (c 3) UK] [spamconnect bcuk.pwnz.org 10006 match]
//Mewtwo
newmenu "Mewtwo"
menuitemvar [concatword (c 3) "Mewtwo " (c 5) 8888] [spamconnect mewtwo.tk 8888 match]
menuitemvar [concatword (c 3) "Mewtwo " (c 5) 7777] [spamconnect mewtwo.tk 7777 match]
//MyS
newmenu "MyS"
menuitemvar [concatword (c 3) MyS (c 5) " Match #1 " (c 3) GER] [spamconnect mys.aa.am 21111 match]
menuitemvar [concatword (c 3) MyS (c 5) " Match #2 " (c 3) GER] [spamconnect mys.aa.am 22222 match]
menuitemvar [concatword (c 3) MyS (c 5) " Match #3 " (c 3) GER] [spamconnect mys.aa.am 23333 match]
//menuitemvar [concatword (c 3) MyS (c 5) " 3333 |Match| " (c 3) GER] [spamconnect mys.aa.am 33333 match]
//menuitemvar [concatword (c 3) MyS (c 5) " 4444 |Match| " (c 3) GER] [spamconnect mys.aa.am 44444 match]
//menuitemvar [concatword (c 3) MyS (c 5) " 5555 |Match| " (c 3) GER] [spamconnect mys.aa.am 55555 match]
//w00p
newmenu "w00p"
menuitemvar [concatword (c 3) "hlin " (c 5) 9999] [spamconnect hlin.woop.us 9999 match]
menuitemvar [concatword (c 3) "hlin " (c 5) 8999] [spamconnect hlin.woop.us 8999 match]
menuitemvar [concatword (c 3) "hlin " (c 5) 7999] [spamconnect hlin.woop.us 7999 match]
menuitemvar [concatword (c 3) "dula " (c 5) 9999] [spamconnect dula.woop.us 9999 match]
So really I didn't do too much to this, although the differences may say otherwise.
Changelog:
- Added cute comments to seperate it out.
- Added alias to clean things up a bit.
- Added the ability to switch on and off the spam messages.
- Added A B} Connect (see what I did there?).
- Commented out MyS servers I couldn't connect to?
Most of it is something you wont really notice.
To turn off the spam messages, use the slider bar at the bottom. If you wish to change the default of this bar, change the variable in the script. Its called spamconnectbool, and it is a simple true/false switch. 1 = true, 0 = false. It defaults as true. If you wish to keep your settings through out AC sessions, comment (add // in front of it) out that line after you have ran the script once (booted up AC once).
All of this is in the comments.
As well as all of the next stuff.
spamconnect is the alias used to connect with the possibility of repeating the server name. If the switch (spamconnectbool) is turned on, it will repeat the message twice, and then connect. Otherwise it will be just like /connect. If you are adding connects to this menu, please use this alias. It is used just the same way as connect, except that it may act funky if you dont add a password. If your server doesn't have a pass, put -1 as a placeholder. It may not affect anything.
If you wish to spam connects of servers that aren't on this menu, feel free to use the alias. Again, use -1 if you dont have a password to the server. Look at the PB and oNe connects for examples of this.
Another example:
[SELECT ALL] Code:
/spamconnect bcubed.pbclan.tk 1492