Author Topic: Server Commands  (Read 1829 times)

You know when you do commandtoserver('whatever');? I am wondering what some of those "whatever's" are. I know about ClearSpamBricks and ClearBricks. Any other ones you guys know of? Im sure there are a ton.

If you type serverCmd in console and keep pressing tab, it will cycle through all of the possible server commands.

If you type serverCmd in console and keep pressing tab, it will cycle through all of the possible server commands.
thanks!

Wait, there was only 1 I found useful for my ChatBot and when I put it in it didn't work. Here's the code.

Code: [Select]
case "LogBot PL":
if(%name $= "MrLoganator111")
CommandToServer('OpenPlayerList'); break;

those "whatever's" are called booleans, i beleive. Correct me if im wrong.

those "whatever's" are called booleans, i beleive. Correct me if im wrong.
Interesting.

those "whatever's" are called booleans, i beleive. Correct me if im wrong.
A boolean is a variable that is either true or false

A boolean is a variable that is either true or false
So then the "whatever's" aren't booleans then?


Those are tagged strings. (some usage info)
Cool, thanks! I just need to know some more of them...

Those are tagged strings. (some usage info)
Some clarification on this though.
The datatype (not really a datatype because TorqueScript doesn't have hard defined datatypes) of 'whatever' in commandtoserver('whatever'); is a tagged string.
But if your looking for more things that you can replace whatever with, you're looking for function names that start with serverCmd, which you can find more by following a previous post or searching (ctrl f) for serverCmd in a list such as this (it may be outdated though, I don't know)


You could also use dumpconsolefunctions(); when hosting a server
Then close blockland and open console.log
Then search for servercmd with a text editor


Wait, there was only 1 I found useful for my ChatBot and when I put it in it didn't work. Here's the code.

Code: [Select]
case "LogBot PL":
if(%name $= "MrLoganator111")
CommandToServer('OpenPlayerList'); break;

serverCmdOpenPlayerList doesn't open the player list, it lets the server know that you opened the player list.