Thread: Moving lights
View Single Post
  #4  
Old 11-29-2001, 04:08 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
fun to play with...

NPC Code:

timereverywhere;
if (created) {
setarray lights,300;
for(this.i=0;this.i<301;this.i+=3 {
lights[this.i] = random(0,64);
lights[this.i+1] = random(0,64);
}
}
while (zero==0) {
for(this.i=0;this.i<300;this.i+=3 {
showimg this.i+200,light2.png,lights[this.i],lights[this.i+1];
changeimgcolors this.i+200,int(random(0,1.5)),int(random(0,1.5)),i nt(random(0,1.5)),random(.5,.99);
changeimgzoom this.i+200,random(.5,1.25);
this.random=random(0,2);
if (this.random>1) {
lights[this.i]+=random(0,.5);
lights[this.i+1]--;
}
if (this.random<=1) {
lights[this.i]-=random(0,.5);
lights[this.i+1]++;
}
if (lights[this.i+1]>=62) lights[this.i+1] = 2;
if (lights[this.i]>=62) lights[this.i] = 2;
if (lights[this.i+1]<=2) lights[this.i+1] = 62;
if (lights[this.i]<=2) lights[this.i] = 62;
}
this.i = 0;
sleep .05;
}

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote