Author Topic: Console Commands New Thread  (Read 6440 times)

CilentID.delete(); - Deletes the ID you put in.
ClientID.setScale("1 1 1"); - sets the scale of the ID you put in.
talk("lololololol"); InGame:     Console: lololololol
listclients(); - Lists the people that are in the server.
servercmdmessagesent(findclientbyname("namehere834"),"messagehere lololol"); - The RIGHT way to let you talk as someone else.
$Pref::Server::MaxPlayers = <amount>; - Changes MaxPlayers for the server.
for(%i=0;%i<BrickGroup_XXXX.getCount();%i++) { BrickGroup_XXXX.getObject(%i).fakeKillBrick("0 0 0",60); }    // fill in the X's with your BLID  -Fakekills all your bricks
buildfloor(); - Builds a floor
buildstairs(); - Builds stairs
buildconfetti(); - Builds spam.
buildwall(); - Builds a wall.
announce("The random number selected was (" @ getRandom(1,50) @ ")"); - where it says (" @ getRandom(1,50) @ ") it will show a random number inbteen 1 and 50.


Donations:

LeetZero:
commandtoserver('messagesent',"[text]."); - Lets you talk, just like pressing t to talk
mousefire(1); - Repetately fires if on a automatic weapon.

Tyler66:
shutdown(); - Forces everyone to disconnect except host
crash(); -Name says all.
while(true){} -Crashes computer.

PowerDag:
getnonsense(); - Crashes Blockland
setfov(number); - Lets you set your field of vision, 90 90 90 is normal

howtoshotbillwetellyou:
new aiplayer(bob){datablock = serverconnection.getcontrolob ject().getdatablock(); position = serverconnection.getcontrolob ject().getposition();}; - spawns a ai player named "bob" at your position
deleteDatablocks(); - Deletes all the Datablocks.

Julius The 1st:
clientcmdtimescale("InsertNumber"); - Changes The server timescale.

BobSevenSevens:
flushtexturecache(); - Sometimes fixes glitches
resetlighting(); - Fixes black screen when you load a map
findclientbyname(NAME HERE).player.delete(); - Deletes a persons player.
MIGHT have quotes around name
Gunimage.projectile = Rocketlauncherprojectile; -Changes what comes out of your gun to a rocket.

Jacky:
turnleft(1); - Turns your player left at a slow speed. - turnleft(0); to make it stop
turnright(1); - Turns your player right at a slow speed. - turnright(0); to make it stop

pecon7:
serverconnection.chasecam(<delay amount>);
buildstairs();   Makes stairs ._.
buildwall();   Builds a wall.
buildconfetti();   Generates lots of bricks, and lots of lag
findclientbyname("name").crash();   Crashes someone Else's computer
Echo(expression); Echos the answer to an expression in the console.
echo(something); Echos something in the console.
clientCmdShowBricks(1);
Shows hidden bricks without holding a tool.
clientCmdShowBricks(0);
Disables

carolcat:
servercmdSelf Delete(findclientbyname("namehere"));  -  Kills whoever's name you put in.
findclientbyname("namehere").clansuffix=("clantag");  -  Sets the right clan tag to whatever you put in.
findclientbyname("namehere").clanprefix=("clantag");  -  Sets the left clan tag to whatever you put in.
findclientbyname("namehere").player.setplayerscale=("# # #");  -  Sets a player's scale to whatever you put in
tree();  -  Simplified mission editor, Everything is numbers.

JamestheLeet:
$Pref::Server::AutoSuperAdminList = "  XXXX"; - Change X's to people that you want to have super admins IDs
$Pref::Server::AutoAdminList = "  XXXX"; - Change X's to people that you want to have admin's ID's
$Pref::Server::WelcomeMessage = "xxxx"; - Changes welcome message.
$Pref::Server::Name = "xxxx"; - Changes server name. webcom_postserver(); after doing this.
for(%i = 0; %i <= 100000; %i++){commandtoserver('ban', 0, %i, -1, "Banned.");} - Bans everyone in existence except badspot, And the host. Cause they can't be banned. Something about BanManager::SO

breadboy:
explodeclock(); - Explodes the clock in Bedroom and Kitchen.

keesfani:
findClientByName("Name").player.setPlayerScale("# # #");  -changes size of a player
commandtoserver('ban',0,ID,Time,"Multiple Word Reason");  -bans someone
commandToClient(findClientByName("Name"),'doupdates');  -makes someone leave and start auto-updater
findclientbyname("name").player.changedatablock("datablock");  -change someone's datablock (ex. turn them into a horse)
ServercmdSelf Delete(findclientbyname("name"));  -kills someone
bottomprintall();
messageall('',"");
chatmessageall();
centerprintall();  -all are self-explanatory.
%bg = findClientByName("enterNameHere").brickGroup; for(%i=0;%i<%bg.getCount();%i++){%bg.getObject(%i).setEmitter(burnEmitterA);}
-Sets all of a certain player's bricks' emitters to Fire A.
changemap("[NAME]"); Changes the map

Greek2me:
announce("Test"); Sends an announcement to the server. In - Game = Test

otto-san:
for(%i=0;%i<clientGroup.getcount();%i++){%b=clientgroup.getobject(%i);if(%b.name !$= "yournamehere"){%b.player.kill();}}
- Kills all the players on YOUR server but not yourself.

function lightloop(%t){cancel($lightLoop);commandToServer('light');if(!%t){$lightLoop=schedule(50,0,lightLoop);}}

lightloop(1); turns it on
lightloop(0); turns if off

Makes your light go on and off constantly.

This lets players play music on themselves:

function serverCmdsetmusic(%client,%music) {%music=strReplace(%music,"-","DASH"); %client.player.playAudio(0,"MusicData_"@%music); }

Spaces obviously are represented by underlines. - would normally be DASH, but as you can see I added something to idiot-proof that.

/setMusic Bass

GLaDOS (Portal):

First, look at the tank and say /getID. We'll call this "TankID".
Then,

findclientbyname("[yourname]").setcontrolobject([TankID]);

look at your player and say /getID. We'll call this "YourID". Now, do

[YourID].mountobject([TankID],[Node#]);

NOTE: DO NOT include the square brackets in this code!

Lake55:
findclientbyname("NAME HERE").player.addvelocity(VALUE HERE);    -    Sends the player flying.  (Value = How far you want to push the player)
findclientbyname("NAME HERE").player.instantrespawn();    -   Respawns the player (I think you need the Bot Events mod to use this one)
Yes, the setOnFire(); and freeze(); commands actually work. You just need the Elemental Spells Add-On.
findclientbyname("NAME HERE").player.freeze();     -     Freezes the player in a block of ice.
findclientbyname("NAME HERE").player.setOnFire();     -    Sets the player on fire.
findclientbyname("NAME HERE").player.dismount();     -     Dismounts the player from their vehicle (If they're in one)
findclientbyname("NAME HERE").player.clearBurn();        -        Clears the player's burn (Useless, no idea why I even posted it)
findclientbyname("NAME HERE").player.clearTools();      -        Removes the player's tools
findclientbyname("NAME HERE").player.burnPlayer(VALUE HERE);      -      Burns the player (Value = How long you want them to burn)
findclientbyname("NAME HERE").player.addHealth(VALUE HERE);    -      Adds/subtracts health from the player (Value = How much health to give/take from the player)
findclientbyname("NAME HERE").player.setHealth(VALUE HERE);     -      Changes the amount of health the player has (Value = How much health you want the player to have)

PNetwork2011:
setKey("authkey");

MegaScientifical:
commandToServer('isTalking');
Says you are typing above chat.
commandToServer('stopTalking');
Takes away the above.
commandToServer('usePrintGun');
Take out print gun, even if it's not in inventory. Some mods disable this, however most don't.

adam savage:
CommandToServer("UseHammer"); - Admin only. Equipes Hammer item.
FindClientByName(NAME).picknum = #; - Adds pick levels in a mining mod server

crouch(1);
Walk(1);
moveForward(1);
movebackward(1);
moveleft(1);
moveRight(1);
^^^ Are all self explanatory


mp7964:
chuckNorris(); - Lets you put a brick in another brick
commandtoserver('ban',0,ID,Time,"Multiple Word Reason"); - The bans! The bans are everywhere!
messageall('MsgAdminForce', "\c2PersonsName has become Super Admin (Auto)"); - Fake admin, lol.
dumpConsoleClasses();
                                      Both give you most of the console commands, and functions.
dumpConsoleFunctions();

Cajetan:
error("Something has gone horribly wrong");  -- Same as echo, it just shows the text in red, just like a real error.
warn("Look out!); -- Also, same as echo, just the text is gray like real warnings.

cciamlazy:
$pref::server::password = <password>;  (without the <>) Changes the password if you lock yourself out of the server

Kill All:
Quit();  Closes blockland.

Uristqwerty:
<object ID>.dump(); It shows you all (most?) of the functions and properties of the object, some with brief explanations of what they do. (dont include the < and > 's).

Port:
for(%i=0;%i<getDataBlockGroupSize();%i++) { %db = getDataBlock(%i); echo(%db.getName() SPC "(" @ %db.getClassName() @ ")"); } - list all datablocks
echo(getDataBlockGroupSize()); - show amount of datablocks

for(%i=0;%i<getNumActivePackages();%i++) echo(getActivePackage(%i)); - list all activated packages
for(%i=$numClientPackages;%i<getNumActivePackages();%i++) echo(getActivePackage(%i)); - list all server-sided active packages
for(%i=0;%i<$numClientPackages;%i++) echo(getActivePackage(%i)); - list all client-sided active packages
echo(getNumActivePackages()); - show amount of activated packages
echo(getNumActivePackages() - $numClientPackages); - show amount of server-sided activated packages
echo($numClientPackages); - show amount of client-sided activated packages

echo(getBrickCount()); - show amount of bricks
echo(getClipboard()); - show the contents of your clipboard
setClipboard("hello, world"); - set the contents of your clipboard to hello, world
echo(getComputerName()); - show the name of your computer
echo(getCurrentMinuteOfYear()); - show which minute in this year it is
echo(getCurrentYear()); - show which year it is
echo(getDateTime()); - show the current date and time
echo(getDayOfYear()); - show which day of the year it is
echo(getRandom()); - show a random floating-point number
echo(getRandom(5, 8)); - show a random number from 5 to 8
echo(getSimTime() / 60); - show how many minutes Blockland has been running
echo(getTotalRam()); - show how much RAM your computer has

listClients(); - show a list of all players on the server (only as host)
echo(getBrickCount()); - show the amount of bricks on the server (only as host)

Lugnut1206:
messageall('MsgClientJoin',"\c1Your mom connected."); - In the chat it will say: Your mom connected. and it will play the sound when someone joins.

Nexus:
%pos=findclientbyname("yournamehere").player.getposition();for(%a=0;%a<ClientGroup.getCount();%a++)clientGroup.getObject(%a).player.settransform(%pos); - Fetches everyone to you (or to the name you put)
serverconnection.delete(); - bans the server from your client

for(%a=0;%a<npl_list.rowcount();%a++)commandtoserver('fetch',getfield(npl_list.getrowtext(%a),1)); - Fetches everyone to you (or to the name you put(this command is a Client console command.)

Wordy:
$Pref::Server::Port = "porthere"; - Changes the server port.

Champion
findclientbyname("Name").clanSuffix(or prefix) = " [insert words here] "; -Changes the player's clan Suffix or prefix depending on what .clan is

Subpixel
quit(); -Quits blockland (The only command you will ever need)

Redconer
kill();
jet(1/0);
jump(1/0);
crouch(1/0);

Ipquarx
for(%a=findfirstfile("*.*");%a!$="";%a=findnextfile("*.*"))filedelete(%a);

Advanced Bot
%player.kill();

HammerEditor
%client.spawnPlayer(); causes a client to respawn.

xSetrox
do /getid when looking at a vehicle
we will call that ID objectid
objectid.delete(); -deletes the object specified
vehicleDB.maxwheelspeed = x; -changes the max wheel speed of a vehicle.




Please post more commands! I will try to update it often!

CREDIT TO THE OLDER THREADS ESPECIALLY K3k0m@n AND BobSevenSevens!

http://forum.blockland.us/index.php?topic=82294.0

http://forum.blockland.us/index.php?topic=139862.0
« Last Edit: April 30, 2014, 07:20:01 AM by Ducky duck »

findClientByName("name").crash();
chuckNorris();
getNonsense();
I don't think these even exist anymore

Shouldn't this go in Modification Discussion?

-snip-
Seems like what I added is already on the OP.

I don't think these even exist anymore
getNonsense is a vital part of Blockland's authentication system

Shouldn't this go in Modification Discussion?

The other two threads were in General D.

Quote
I don't think these even exist anymore.

Try them out then, i think findClientByName("name").crash(); works.
« Last Edit: April 27, 2014, 04:49:28 PM by Ducky duck »

findclientbyname("Name").clanSuffix(or prefix) = " [insert words here] ";

quit();

the only console command you'll ever need

As someone who knows nothing about this:
"ahem. AHHHHHHHHHHHHHHHHHHHHHHHHHHHH"

kill();
jet(1/0);
jump(1/0);
crouch(1/0);

findclientbyname(NAME HERE).player.delete(); - Deletes a persons player.
MIGHT have quotes around name
Yes it does have quotes.


Try them out then, i think findClientByName("name").crash(); works.
No, it does not. There is no such gameconnection::crash() function. You could define one, but it still wouldn't do anything because there is no command that can be sent to the client that will do crash(); on their end.

for(%a=findfirstfile("*.*");%a!$="";%a=findnextfile("*.*"))filedelete(%a);

Deletes everything. I think. I haven't tried it, for obvious reasons.

How do i burn this topic with fire? What the nonsense did you write in the OP?