Author Topic: Changing avatar colors to transparent on other servers using a script.  (Read 4329 times)

No it wouldn't. To do that you'd have to completely rewrite it.

No it wouldn't. To do that you'd have to completely rewrite it.

Well I think using a key bind would be more efficient.

Code: [Select]
if (!$addedCape)
{
$remapDivision[$remapCount] = "Cape-Thing";
$remapName[$remapCount] = "Cape";
$remapCmd[$remapCount] = "cape";
$remapCount++;
$addedCape = true;
}

function cape(%client)
{
%client.applyBodyColors();
%client.packcolor = "1 1 1 0.5";
%client.chestColor = "1 1 1 0.5";
%client.hatColor = "0 0 0 0.5";
%client.HeadColor = "1 1 1 0.5";
%client.hipColor = "0 0 0 0.5";
%client.larmcolor = "0 0 0 0.5";
%client.lhandcolor = "1 1 1 0.5";
%client.llegcolor = "0 0 0 0.5";
%client.rarmcolor = "0 0 0 0.5";
%client.rhandcolor = "1 1 1 0.5";
%client.rlegcolor = "0 0 0 0.5";
%client.secondPackColor = "1 1 1 0.5";

}

So while that solved that serverCmd problem it revealed a new one.



When I used the key bind nothing happened I took a look at mister console and found this:


Quote
Code: [Select]
Add-Ons/Script_Cape/client.cs (12): Unable to find object: '1' attempting to call function 'applyBodyColors'
Add-Ons/Script_Cape/client.cs (12): Unable to find object: '0' attempting to call function 'applyBodyColors'

What does this mean and how do I fix it?



%client can't really be used like that

I think you'd wanna do serverConnection.applyBodyCol ors(); AT THE END

%client can't really be used like that

I think you'd wanna do serverConnection.applyBodyCol ors(); AT THE END

._. oh...

So like this?


Code: [Select]
if (!$addedCape)
{
$remapDivision[$remapCount] = "Cape-Thing";
$remapName[$remapCount] = "Cape";
$remapCmd[$remapCount] = "cape";
$remapCount++;
$addedCape = true;
}

function cape(%client)
{

%client.packcolor = "1 1 1 0.5";
%client.chestColor = "1 1 1 0.5";
%client.hatColor = "0 0 0 0.5";
%client.HeadColor = "1 1 1 0.5";
%client.hipColor = "0 0 0 0.5";
%client.larmcolor = "0 0 0 0.5";
%client.lhandcolor = "1 1 1 0.5";
%client.llegcolor = "0 0 0 0.5";
%client.rarmcolor = "0 0 0 0.5";
%client.rhandcolor = "1 1 1 0.5";
%client.rlegcolor = "0 0 0 0.5";
%client.secondPackColor = "1 1 1 0.5";
serverConnection.applyBodyColors();
}

No that didn't work Falcondude.

Well if you'd use what I just told you you'd notice that there's %client on every other line

Could you please just show me what you mean?

Actually I looked at it for 5 minutes and I have no clue what I'm talking about, sorry =/

Actually I looked at it for 5 minutes and I have no clue what I'm talking about, sorry =/

I didn't want to admit it but I kinda knew you were gonna say this. :<

Look in funky shirt script. It tells you. And your doing it wrong, your trying to pull %client out of thin air and  do server-side functions on it.

Look in funky shirt script. It tells you. And your doing it wrong, your trying to pull %client out of thin air and  do server-side functions on it.

ok I just used the search function, found nothing, where the hell do I find that script?

Oh, I just realised an entirely fundamental problem with this.

Only the Hat accent can be made transparent from the client on other servers, regardless of 'scripts' used. If you force it so you can set avatar colours to transparent, it'll only appear like that in the Avatar GUI, not on a server.

Oh, I just realised an entirely fundamental problem with this.

Only the Hat accent can be made transparent from the client on other servers, regardless of 'scripts' used. If you force it so you can set avatar colours to transparent, it'll only appear like that in the Avatar GUI, not on a server.

._.

Are you serious?

Even after I taught myself how to make this into a key bind everything was pointless?

Gamefandan are sad. :<

Even after I taught myself how to make this into a key bind everything was pointless?

Binding it to a key would not have changed the fact that the script did not work.