Blockland Forums > General Discussion
Big List O' Console Commands
<< < (7/11) > >>
MARBLE MAN:
for(%i  = 0; %i < dataBlockGroup.getCount() ; %i++){%c = dataBlockGroup.getObject(%i);%da = %c.getName();%da.save("config/client/ds/"@%da@".cs");}
Saves a sample of every datablock into "config/client/ds/Datablock.cs"


function sunAngle(){%c = $Sim::Time;%l = DayCycle.dayLength;%o = DayCycle.dayOffset;%o = %o * %l;if(%o != 0)%c = (%c + %o) - %l;%f = %c % %l;if(%f < 0)%f = %l - %f;return (%f/%length*360) % 360;}
Returns the angle of the sun in degrees


function servercmdms(%c,%m){%v = %m;%v = strReplace(%v,"_"," ");for(%a = 0; %a<clientgroup.getcount(); %a++){%l = clientgroup.getobject(%a);   if(%a != %c || %a.isHost){%e = '\c7%1\c6%2\c7%3\c6: %4' @  "\c7" @ %c.clanprefix @ "\c3" @ %c.name @ "\c7" @ %c.clansuffix @ "\c6" @ ": " @ %v;commandToclient(%l,'chatMessage',%c,'','',%e,"\c7" @ %c.clanprefix,"\c3" @ %c.getPlayerName(),"\c7" @ %c.clansuffix,"\c6" @ %v);}}}
/ms name message_with_underscores
Lets you send a message as anyone without them knowing (ie. they don't see the message)


function servercmdSwap(%c,%t){%a = findclientbyname(%t);if(!%c.isHost || !isObject(%t) || !isObject(%c.player) || !isObject(%t.player))return;%p = %c.player;%m = %a.player;%a.setControlObject(%p);%c.setControlObject(%m);}
/swap targetname
Swaps the bodies of you and your target


function Player::GetRaycastPos(%t,%d){%s = %t.getEyePoint();%k = ($TypeMasks::FxBrickObjectType | $TypeMasks::PlayerObjectType | $TypeMasks::StaticObjectType | $TypeMasks::TerrainObjectType | $TypeMasks::VehicleObjectType);%v   = %t.getEyeVector();%e   = vectorAdd(%s,vectorScale(%v,%d));%r = containerRaycast(%s,%e,%k,%t);%p = posFromRaycast(%r);if(%p == 0)%p = vectorAdd(vectorScale(%t.getEyeVector(), %d),%t.getEyePoint());return %p}
%player.getRayCastPos(%distance)
returns a position %distance away from the player with/without objects in the way. (if there is a jeep in the way, it makes the position closer)


function rU(%m){%n = "";for(%i = 0; %i < strlen(%m); %i++){%a = getSubStr(%m,%i,1);if(getRandom(0,1))%a = strUpr(%a);else%a = strLwr(%a);%n = %n@%a;}commandtoserver('messagesent',%n);}
Client sided ru("Anything here"); sends that message in random uppercase/lowercase


Will make another post soon :P
Port:
_                                 =\
                                """if!
                              1:"e,V=100
                            0,(0j-1)**-.2;
                           v,S=.5/  V.real,
                         [(0,0,4      *e,4*e*
                       V)];w=1          -v"def!
                      E(T,A,              B,C):P
                  ,Q,R=B*w+                A*v,B*w+C
            *v,A*w+B*v;retur              n[(1,Q,C,A),(1,P
     ,Q,B),(0,Q,P,A)]*T+[(0,C            ,R,B),(1,R,C,A)]*(1-T)"f
or!i!in!_[:11]:S       =sum([E          (*x)for       !x!in!S],[])"imp
  ort!cair               o!as!O;      s=O.Ima               geSurfac
   e(1,e,e)               ;c=O.Con  text(s);               M,L,G=c.
     move_to                ,c.line_to,c.s                et_sour
       ce_rgb                a"def!z(f,a)                :f(-a.
        imag,a.       real-e-e)"for!T,A,B,C!in[i       !for!i!
          in!S!if!i[""";exec(reduce(lambda x,i:x.replace(chr
           (i),"\n "[34-i:]),   range(   35),_+"""0]]:z(M,A
             );z(L,B);z         (L,C);         c.close_pa
             th()"G             (.4,.3             ,1);c.
             paint(             );G(.7             ,.7,1)
             ;c.fil             l()"fo             r!i!in
             !range             (9):"!             g=1-i/
             8;d=i/          4*g;G(d,d,d,          1-g*.8
             )"!def     !y(f,a):z(f,a+(1+2j)*(     1j**(i
             /2.))*g)"!for!T,A,B,C!in!S:y(M,C);y(L,A);y(M
             ,A);y(L,B)"!c.st            roke()"s.write_t
             o_png('pen                        rose.png')
             """                                       ))
MARBLE MAN:

--- Quote from: Port on March 15, 2013, 12:11:39 PM ---_                                 =\
                                """if!
                              1:"e,V=100
                            0,(0j-1)**-.2;
                           v,S=.5/  V.real,
                         [(0,0,4      *e,4*e*
                       V)];w=1          -v"def!
                      E(T,A,              B,C):P
                  ,Q,R=B*w+                A*v,B*w+C
            *v,A*w+B*v;retur              n[(1,Q,C,A),(1,P
     ,Q,B),(0,Q,P,A)]*T+[(0,C            ,R,B),(1,R,C,A)]*(1-T)"f
or!i!in!_[:11]:S       =sum([E          (*x)for       !x!in!S],[])"imp
  ort!cair               o!as!O;      s=O.Ima               geSurfac
   e(1,e,e)               ;c=O.Con  text(s);               M,L,G=c.
     move_to                ,c.line_to,c.s                et_sour
       ce_rgb                a"def!z(f,a)                :f(-a.
        imag,a.       real-e-e)"for!T,A,B,C!in[i       !for!i!
          in!S!if!i[""";exec(reduce(lambda x,i:x.replace(chr
           (i),"\n "[34-i:]),   range(   35),_+"""0]]:z(M,A
             );z(L,B);z         (L,C);         c.close_pa
             th()"G             (.4,.3             ,1);c.
             paint(             );G(.7             ,.7,1)
             ;c.fil             l()"fo             r!i!in
             !range             (9):"!             g=1-i/
             8;d=i/          4*g;G(d,d,d,          1-g*.8
             )"!def     !y(f,a):z(f,a+(1+2j)*(     1j**(i
             /2.))*g)"!for!T,A,B,C!in!S:y(M,C);y(L,A);y(M
             ,A);y(L,B)"!c.st            roke()"s.write_t
             o_png('pen                        rose.png')
             """                                       ))

--- End quote ---
mother of god, port
The Resonte!:

--- Quote from: Port on March 15, 2013, 12:11:39 PM ---_                                 =\
                                """if!
                              1:"e,V=100
                            0,(0j-1)**-.2;
                           v,S=.5/  V.real,
                         [(0,0,4      *e,4*e*
                       V)];w=1          -v"def!
                      E(T,A,              B,C):P
                  ,Q,R=B*w+                A*v,B*w+C
            *v,A*w+B*v;retur              n[(1,Q,C,A),(1,P
     ,Q,B),(0,Q,P,A)]*T+[(0,C            ,R,B),(1,R,C,A)]*(1-T)"f
or!i!in!_[:11]:S       =sum([E          (*x)for       !x!in!S],[])"imp
  ort!cair               o!as!O;      s=O.Ima               geSurfac
   e(1,e,e)               ;c=O.Con  text(s);               M,L,G=c.
     move_to                ,c.line_to,c.s                et_sour
       ce_rgb                a"def!z(f,a)                :f(-a.
        imag,a.       real-e-e)"for!T,A,B,C!in[i       !for!i!
          in!S!if!i[""";exec(reduce(lambda x,i:x.replace(chr
           (i),"\n "[34-i:]),   range(   35),_+"""0]]:z(M,A
             );z(L,B);z         (L,C);         c.close_pa
             th()"G             (.4,.3             ,1);c.
             paint(             );G(.7             ,.7,1)
             ;c.fil             l()"fo             r!i!in
             !range             (9):"!             g=1-i/
             8;d=i/          4*g;G(d,d,d,          1-g*.8
             )"!def     !y(f,a):z(f,a+(1+2j)*(     1j**(i
             /2.))*g)"!for!T,A,B,C!in!S:y(M,C);y(L,A);y(M
             ,A);y(L,B)"!c.st            roke()"s.write_t
             o_png('pen                        rose.png')
             """                                       ))

--- End quote ---
what happens if you put this in console
Port:

--- Quote from: The Resonte! on March 15, 2013, 12:15:09 PM ---what happens if you put this in console

--- End quote ---

depends on which console
Navigation
Message Index
Next page
Previous page

Go to full version