Author Topic: post random lines of code here  (Read 4793 times)


function getRandomHex()){
   %string = "123456789ABCDEF";
   %Rrand = getRandom(0, strlen(%string));
   %r = getSubStr(%string, %Rrand, %Rrand + 2);
   %Brand = getRandom(0, strlen(%string));
   %b = getSubStr(%string, %Brand, %Brand + 2);
   %Grand = getRandom(0, strlen(%string));
   %g = getSubStr(%string, %Grand, %Grand + 2);

   echo("Your New Color:" NL %r @ %g @ %b);
   return %r @ %g @ %b;
}


i'm pretty sure this works it doesnt


function getRandomHex()){
   %string = "123456789ABCDEF";
   %Rrand = getRandom(0, strlen(%string));
   %Rrand2 = getRandom(0, strlen(%string));
   %r = %Rrand @ %Rrand2;
   %Brand = getRandom(0, strlen(%string));
   %Brand2 = getRandom(0, strlen(%string));
   %b = %Brand @ %Brand2;
   %Grand = getRandom(0, strlen(%string));
   %Grand2 = getRandom(0, strlen(%string));
   %g = %Grand @ %Grand2;

   echo("Your New Color:" NL %r @ %g @ %b)
   return %r @ %g @ %b;
}


^ this does


and it turns out i could actually use this
and it's in torquescript, how convenient :O

Code: [Select]
function AIPlayer::copyAppearance(%bot, %client)
{
        %bot.iscopy = 1;
        %old = %client.player;
        %client.player = %bot;
        %client.applyBodyParts();
        %client.applyBodyColors();
        %client.player = %old;
        %bot.accent = %client.accent;
        %bot.chest = %client.chest;
        %bot.hat = %client.hat;
        %bot.hip = %client.hip;
        %bot.lArm = %client.lArm;
        %bot.lHand = %client.lHand;
        %bot.lLeg = %client.lLeg;
        %bot.pack = %client.pack;
        %bot.rArm = %client.rArm;
        %bot.rHand = %client.rHand;
        %bot.rLeg = %client.rLeg;
        %bot.secondPack = %client.secondPack;
        %bot.accentColor = %client.accentColor;
        %bot.chestColor = %client.chestColor;
        %bot.hatColor = %client.hatColor;
        %bot.hipColor = %client.hipColor;
        %bot.lArmColor = %client.lArmColor;
        %bot.lHandColor = %client.lHandColor;
        %bot.lLegColor = %client.lLegColor;
        %bot.packColor = %client.packColor;
        %bot.rArmColor = %client.rArmColor;
        %bot.rHandColor = %client.rHandColor;
        %bot.rLegColor = %client.rLegColor;
        %bot.secondPackColor = %client.secondPackColor;
        %bot.decalName = %client.decalName;
        %bot.faceName = %client.faceName;
        %bot.headColor = %client.headColor;
}




on snap

look at dis

int count;

count == 3;

while (count >= 2)
{
count ++;
}

3l1t3 h4x0r
Wow that's almost valid code

<bitmap:base/client/ui/ci/skull>
am i doing it right

if (African = true)
{
     return ebola;
}

how'd i do



Wow that's almost valid code

ikr

reading C# textbooks rite now and trying to learn C#

(now I just need to realize that exceeding the INT count will break the computer)

x := func(y int) float64 { var z float64 = math.Pow(float64(y), math.Sqrt(float64(y))); return float64(int(z) ^ y); }

if (African = true)
{
     return ebola;
}

how'd i do
would say everyone is african in a lot of languages

and it turns out i could actually use this
and it's in torquescript, how convenient :O
oops i wat
turns out that random hex doesnt work
but this does, even if it is awfully bad-looking

function getRandomHex()){
   %string = "123456789ABCDEF";
   %Rrand = strChr(%string,getRandom(0, strlen(%string)));
   %Rrand2 = strChr(%string,getRandom(0, strlen(%string)));
   %r = %Rrand @ %Rrand2;
   %Brand = strChr(%string,getRandom(0, strlen(%string)));
   %Brand2 = strChr(%string,getRandom(0, strlen(%string)));
   %b = %Brand @ %Brand2;
   %Grand = strChr(%string,getRandom(0, strlen(%string)));
   %Grand2 = strChr(%string,getRandom(0, strlen(%string)));
   %g = %Grand @ %Grand2;

   echo("Your New Color:" NL %r @ %g @ %b)
   return %r @ %g @ %b;
}
« Last Edit: January 04, 2015, 02:58:08 PM by ZombieDude »

random lines of code here