veaseomat
New Member
- Joined
- Jan 10, 2011
- Messages
- 10
I figured out how to give NPC's random lightsaber colors this morning.
in MMOCoreORB/src/server/zone/objects/creature/ai/AiAgentImplementation.cpp
on line 196 before
readyWeapon = weao;
add this
Locker locker(weao);
if (weao->isJediWeapon()) {
int color = System::random(30);
weao->setBladeColor(color);
weao->setCustomizationVariable("/private/index_color_blade", color, true);
}
in the future i might go a step further and give dark jedi only red and light jedi the rest BUT for now im super happy to see anything other than just red on npc jedi lol.
ENJOY
-Veaseomat
in MMOCoreORB/src/server/zone/objects/creature/ai/AiAgentImplementation.cpp
on line 196 before
readyWeapon = weao;
add this
Locker locker(weao);
if (weao->isJediWeapon()) {
int color = System::random(30);
weao->setBladeColor(color);
weao->setCustomizationVariable("/private/index_color_blade", color, true);
}
in the future i might go a step further and give dark jedi only red and light jedi the rest BUT for now im super happy to see anything other than just red on npc jedi lol.
ENJOY
-Veaseomat