Thread: lights..=p
View Single Post
  #24  
Old 04-11-2003, 07:27 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by Onijustin_P2P
to get to osrs again....
i defined the script a bit and i maked this thing that might extremely lag...
but its cool !

NPC Code:

// NPC made by Fîêrçê Ðãr/< Rãzõr Ãçãrî
// Original from *Osrs.

if (created) {
timeout=0.05;
this.l=50;
this.big=2;
}
if (timeout) {
for (a=this.l;a>=0;a--) {
this.a+=.0005;
this.x=sin(360+a)*a/log(3,1125)+x;
this.y=cos(this.a*10+a)*a/log(3,1125)+y;
showimg a,light4.png,this.x,this.y;
changeimgcolors a,random(0.5,1),random(0.4,1),random(0.3,1),0.99;
changeimgzoom a,this.big;
}
timeout=0.05;
}

I wasn't aware there was a logrithmic function... o_o

replace the changeimgcolors line with this one for a nifty effect

NPC Code:
    changeimgcolors a,random(0,0.3),random(0,0.5),random(0.5,1),0.99;

__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote