Blockland Forums > Modification Help
Rainbow Player Help
Baeshra:
Thanks phflack, I'm testing it now.
-Testing Complete
I modified what you suggested and modified the loop time so it cycled through the shades faster. Why hasn't anyone posted a fixed version of the Funky Shirt/Rainbow Player/ColoredAvi? Would it be a good idea to post it? Thanks for the help
The current modified code is as follows
{
if($RainbowAvatarCount > 63) $RainbowAvatarCount=0;
//Grejer
$R=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$G=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$B=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$pref::Avatar::PackColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HatColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LLegColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RLegColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::AccentColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HeadColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::TorsoColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HipColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LArmColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LHandColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RArmColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RHandColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::SecondPackColor=$R SPC $G SPC $B SPC "1";
clientcmdupdateprefs();
$RainbowAvatarCount++;
$RainbowAvatar=schedule(250,0,RainbowAvatarLoop);
}
It successfully cycles through the correct shades, of course if I was to post it I would give instructions on how to switch between the black/white and rgb shades as well as instructions on how to change the modified body parts.
phflack:
--- Quote from: Baeshra on January 03, 2011, 11:01:10 PM ---Why hasn't anyone posted a fixed version of the Funky Shirt/Rainbow Player/ColoredAvi?
--- End quote ---
what is there to fix?
and increasing the speed makes larger jumps between colors
Amade:
There was a reason that the 1 second restriction on avatar changes was added. These scripts make you look stupid, stop using them.
Baeshra:
Yes I know phflack, when I first found the script I had to change a couple of things to get it working. They were small things like I had to change the word Player to Avatar and change the word Chest to Torso.
And Amade, I haven't been using this script, I've just been learning about how to script in general and I thought that it would be good to start here.
SpreadsPlague:
Jesus christ how many versions of this script is it going to take for somebody to point out that it's spelled ACTIVATE not loving ACTICATE fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu-
look at the keybind name.