Author Topic: Post Useful Console Commands Here! (v.idk)  (Read 2012 times)

Post all of your helpful console commands here. ~ is always going to be our God.

So yeah... I got nothin' so start posting!

Arent there so many "big list o' console commands" already?

OP::setIsfriend( OP op, bool isfriend )

Example:
ChrisOP.setIsfriend(1);

quit();
-Quits Blockland

crash();
-Gives you an error message saying Blockland has encountered a problem and needs to close

dumpConsoleClasses(); dumpConsoleFunctions();
-Shows what the console does, causes massive console spam

vehicleDB.maxWheelSpeed = VELOCITY;
-Changes max wheel speed of vehicles

findClientByName(TARGET NAME).isAdmin = 1;
-Makes someone admin silently.

crouch();
-Fixes crouch

jump();
-Fixes jump

findClientByName(PLAYER TO MOUNT).player.mountobject(ID OF OBJECT TO MOUNT TO,NODE NUMBER TO MOUNT TO);
-Mounts object to player

findClientByName(TARGET NAME).player.setPlayerScale("# # #");
-Changes size of a player
 
commandtoserver('ban',0,TARGET BL_ID,DURATION,"REASON FOR BANNING");
-Bans someone

serverConnection.chaseCam(DELAY);
-Makes camera lag behind you

ServerCmdMessageSent(FindClientByName(PERSON YOU WISH TO IMPERSONATE),"MESSAGE CONTENT");
-Talk as someone else

localClientConnection.setControlObject(VEHICLE NAME.vehicle);
-Lets you control a vehicle

findclientbyname("TARGET NAME").player.changedatablock("DATABLOCK");
-Change someone's datablock (ex. turn them into a horse)

findclientbyname(TARGET NAME).player.delete();
-Deletes a player, all he can do is talk.

findClientbyName(TARGET NAME).spawnPlayer();
-Un-deletes a player

ServercmdSelf Delete(findclientbyname("TARGET NAME"));
-Kills someone

OBJECT ID.dismount();
-Unmounts something

OBJECT ID.mountobject(ObjectD,0);
-Mounts something to something else
 
OBJECT ID.setPlayerScale.("# # #");
-Changes object's size
Note: to get an object's ID, look at it and type /getID

announce();
-Makes some chat that everyone sees

getNonsense();
-Crashes game

WEAPON NAMEimage.projectile = PROJECTILE NAMEprojectile;
-Makes a gun shoot something different (ex. Minigun shooting speed + Rocket launcher projectile = lag!)

echo(WHAT YOU WANT TO ECHO);
-When you press enter, it will say it in the console

turnright();
-Makes you spin right

turnleft();
-Makes you spin left

commandtoserver('messagesent',"MESSAGE CONTENT");
-Congrats, you sent a chat message

echo(mPow(7,9));
-Echos 7 to the power of nine

echo(mSqrt(4));
-Echos the square root of 4

echo(1+1);
-Echos what 1+1 equals

echo(1-1);
-Echos what 1-1 equals

buildwall();
-Makes you build a wall

buildfloor2();
-Makes you build a floor

buildconfetti();
-Makes you build confetti

bottomprintall();

messageall(,);

chatmessageall();

centerprintall();
-All are self-explanatory

function f(){schedule(100,0,F);scrolltools(-1);scrolltools(1);}
-Lets you fire weapons really fast

function f(){}
-To turn it off

%bg = findClientByName("TARGET NAME").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

%bot = new aiPlayer(%name){datablock=playerStandardArmor; position=findClientByName("TARGET NAME").player.getPosition();};
-Spawns a bot at a players position

clientcmdtimescale("TIMESCALE FACTOR");
-Changes speed of your timescale

OBJECT ID.setscale("# # #");
-Changes size of whatever the ID is

findclientbyname(TARGET NAME).player.hidenode("NODE");
-Makes a player's body part disappear
 
for(%i=0;%i<BrickGroup_TARGET BL_ID.getCount();%i++) { BrickGroup_XXXX.getObject(%i).fakeKillBrick("0 0 0",60); }
-Fill in the X's with your BLID, fakekills target's bricks

flushnamespacecache();
-Flushes your namespace if you mess up a parent

setDefaultFOV("# # #");
-Sets your default Field of  Vision

setDefaultFOV("100 100 100");
-To change it back to default

messageall('MsgAdminForce', "\c2TARGET NAME has become Super Admin (Auto)");
-Fake Admins someone

OBJECT ID.delete();
-Deletes the brick with that ID

buildstairs();
-Builds stairs

canvas.pushDialog(GUI NAME);
-Opens a GUI

Jump(1);
-Endless jumping

findclientbyname(TARGET NAME).setcontrolobject(OBJECT ID);
-Makes you control whatever ID you put in

vehiclenamevehicle.forwardthrust=99999;
-Makes a vehicle go fast foward

ObjectID.setShapeName("DESIRED NAME");
-Sets a vehicle's name

Messageall('',"<bitmap:base/client/ui/lagIcon.png><color:FFFFFF>: MESSAGE CONTENT");
-Lets you talk as the lag icon

findclientbyname(TARGET CONTROLLER NAME).setcontrolobject(findclientbyname(TARGET VICTIM NAME));
-Makes the first person control the second person, makes the second person's screen mess up

localClientConnection.setControlObject(findclientbyname(TARGET VICTIM NAME));
-Makes you control someone, same screen problems



Everything in italics is a variable and needs to be changed by the player executing the commands.

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

I tidied it up a bit and removed malicious and outdated (map related) commands.
« Last Edit: July 25, 2014, 10:26:09 PM by TheArmyGuy »

-snip-
Some of these don't even work, as they are incorrect or just plain don't exist, just to let you know.

Some of these don't even work, as they are incorrect or just plain don't exist, just to let you know.

Like what?

flushTextureCache();
 - For fixing them texture issues

metrics(fps);
 - Gives you that fps

tree();
 - If only it were octagonal

getachievement();

unlocks a steam achievement

%a="aa";while(1)%a=strreplace(%a,"a",%a);

Crashes blockland by making a string of 222222 length
« Last Edit: July 25, 2014, 10:10:27 PM by Ipquarx »

Like what?
The default fov is 90, not 100.
You can't change the text of a bitmap, so you can't "talk as the lag icon"

Also, if you delete a player  (which you shouldn't even be doing in the first place) you can use
findClientbyName(name).spawnPlayer(); to respawn them.


for(%i = 0; %i = 10; %i++)
echo(%i);

Crashes blockland by making %i go from 0 to 10 and repeat itself being 10, by never finishing the loop.

You can't change the text of a bitmap, so you can't "talk as the lag icon"
The intention of this is instead of saying like TheArmyGuy: Blablabla mr. Freeman it says LAG: Blablabla mr. Freeman

I've already tried the lag icon thing, unless there's something I'm missing it doesn't work

I've already tried the lag icon thing, unless there's something I'm missing it doesn't work

Command should be:
Messageall('',"<bitmap:base/client/ui/lagIcon.png><color:FFFFFF>: The command is outdated, but it still works if you adapt it a little.");
Note that you cannot copy things inside of <>'s into Blockland.

The intention of this is instead of saying like TheArmyGuy: Blablabla mr. Freeman it says LAG: Blablabla mr. Freeman
I know. The description says "lets you talk as the lag icon", which is why I said
You can't change the text of a bitmap, so you can't "talk as the lag icon"

I know. The description says "lets you talk as the lag icon", which is why I said
Talking as the lag icon can be easily interpreted as talking as if you were to be the lag icon. Actually that makes more sense than talking the way the lag icon looks style-wise.

Anyways,
metrics(fps);
 - Gives you that fps
metrics(); turns the fps display off again.