Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   More, uhm lights :D (https://forums.graalonline.com/forums/showthread.php?t=40295)

Ningnong 11-14-2002 02:42 AM

More, uhm lights :D
 
1 Attachment(s)
ningnong + bordem =

NPC Code:

// NPC made by Ningnong

if (created) this.Ok = 1;

//#CLIENTSIDE

if (timeout || playerenters){
if (this.time=>300) this.Ok = 0;
this.time++;
setarray this.x,this.max;
setarray this.y,this.max;
setarray this.speed,this.max;
setarray this.angle,this.max;
setarray this.var,this.max;
setarray this.zoom,this.max;
for (i=0;i<this.max*2-random(.1,1);i++){
this.speed[i] = .66;
this.speed[i] ++;
this.angle[i] = this.angle[i] + this.speed[i] * 0.01;
this.var[i] = .2;
this.x[i] = random(x-this.xm,x+this.xp) + cos(this.speed[i]) * this.var[i] - random(2,4);
this.y[i] = random(y-this.ym,y+this.yp) + sin(this.speed[i]) * this.var[i] - random(2,4);
this.zoom[i] = .4;
showimg i,light2.png,this.x[i],this.y[i];
changeimgcolors i,random(.1,1),random(.1,1),random(.1,1),.999;
changeimgzoom i,this.zoom[i];
}
if (this.Ok == 1){
this.max +=.1;
this.xm += .01;
this.xp += .01;
this.ym += .01;
this.yp += .01;
}
elseif (this.Ok == 0){
this.max-=.1;
this.xm -= .01;
this.xp -= .01;
this.ym -= .01;
this.yp -= .01;
}
timeout = .05;
}




Just made this, I didn't see any point in uploading the level, just a copy and paste job, and since I hadn't posted in a while I thought i'd snap something quick up :P

*EDIT*

It doesn't paste so well so heres teh lebel =)

lebel:

osrs 11-14-2002 02:44 AM

Nice lights..

Ningnong 11-14-2002 02:45 AM

ty :P

Goboom 11-14-2002 02:54 AM

You know what the boomy wants :D

Ningnong 11-14-2002 02:56 AM

o.O!
 
O yea, but, if i took a screenie it just looks like a series of lights, standing there (i dont know what lights do, maybe sit...) well anyway, I think i should make something other than lights, just for you :D

*thinks*

what should i make that loOks funkeh?

Goboom 11-14-2002 03:02 AM

Re: o.O!
 
Quote:

Originally posted by Ningnong
O yea, but, if i took a screenie it just looks like a series of lights, standing there (i dont know what lights do, maybe sit...) well anyway, I think i should make something other than lights, just for you :D

*thinks*

what should i make that loOks funkeh?

You could send me your graphics card :D

Ningnong 11-14-2002 03:08 AM

o.O
 
*notices gobooms sig*

nice sig, how come u have a new sig every, uhm, thread lol?

well, i gtg, bai anyone who's chillin on this forum XD

adam 11-14-2002 03:25 AM

You remind me of me. ;-)

Goboom 11-14-2002 03:43 AM

Re: o.O
 
Quote:

Originally posted by Ningnong
*notices gobooms sig*

nice sig, how come u have a new sig every, uhm, thread lol?

well, i gtg, bai anyone who's chillin on this forum XD

I dont..just every week...lol do you want one? Well here lookie at this one http://goboom.fatcake.com/Sigs/NingNongSig.png

Ningnong 11-14-2002 04:07 AM

O_O
 
sweet :D

CheeToS2 11-14-2002 04:56 AM

screenie? :X


All times are GMT +2. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.