Damn still stuck, the index of light 2, i cant get it to set lighteffect of 023 index,
NPC Code:
if (playertouchsme) {
toweapons bob;
}
if (weaponfired) {
if (!client.on) {
set client.on;
replaceani idle,lamp_idle;
replaceani walk,lamp_walk;
timeout=.05;
}
else
{
unset client.on;
replaceani idle,idle;
replaceani walk,walk;
hideimg 023;
}
}
if (timeout) {
if (client.on) {
showimg 023,light2.png,playerx-1,playery-1.5;
changecoloreffects 023,1,0,0,0; //Unknown Command?
drawaslight;
dontblock;
timeout=.05;
}
}
Also t does not reconise this command, what other ways can you do it:
NPC Code:
changecoloreffects 023,1,0,0,0; //Unknown Command?