Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Light Effect Help (https://forums.graalonline.com/forums/showthread.php?t=14891)

JinZero 10-18-2001 09:03 AM

Light Effect Help
 
I want light effects to move around in different colors like in the bomy hangout. How do i do that?

Poogle 10-18-2001 07:06 PM

Ive never seen them in there but do you mean change colors or move x and ys?

Metal-Slug 10-18-2001 08:11 PM

Quote:

Originally posted by Poogle
Ive never seen them in there but do you mean change colors or move x and ys?
both, read closer

Shard_IceFire 10-18-2001 08:36 PM

You could just make it set random colors in a timeout loop. Not too hard.

joseyisleet 10-18-2001 09:41 PM

Can anyone tell me why I can't see light effects? It makes me mad because I used to be able to and was using them for my server, but now I can't see them. :mad:

KJS 10-18-2001 09:44 PM

Quote:

Originally posted by joseyisleet
Can anyone tell me why I can't see light effects? It makes me mad because I used to be able to and was using them for my server, but now I can't see them. :mad:
well me I can see light effects but I turn them off because they are dumb when there are to much light effects... It like freezes my computer when there are a lot of light effects...

you could have the option off that says enable dx..

look in your f1 and look for
disable dx and uncheck it if its checked

joseyisleet 10-18-2001 09:47 PM

Yea it's unchecked. :(

btedji 10-19-2001 03:37 AM

Quote:

Originally posted by joseyisleet
Yea it's unchecked. :(
checking that would enable your light effects

JinZero 10-19-2001 06:49 AM

I CANT THINK OF TEH SCRIPT:(

Shard_IceFire 10-19-2001 08:30 PM

NPC Code:

if (playerenters) {
setcoloreffect .99,.99,.99,.9;
dontblock;
drawaslight;
}


btedji 10-19-2001 11:56 PM

NPC Code:

if (playerenters||timeout) {
x=int(random(0,64));
y=int(random(0,64));
setcoloreffect int(random(0,255)),int(random(0,255)),int(random(0 ,255)),.99;
dontblock;
drawaslight;
timeout=.05
}


Python523 10-20-2001 06:24 AM

NPC Code:


if (created) {
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
drawaslight;
setzoomeffect 2;
while (true) {
setcoloreffect random(0,1),random(0,1),random(0,1),random(0.5,0.7 5);
sleep 0.05;
}
}
dontblock; dontblock;


Xaviar 10-20-2001 06:35 AM

Quote:

Originally posted by Python523
NPC Code:


if (created) {
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
drawaslight;
setzoomeffect 2;
while (true) {
setcoloreffect random(0,1),random(0,1),random(0,1),random(0.5,0.7 5);
sleep 0.05;
}
}
dontblock; dontblock;


Where'd ya yoink that from?? I would generally say you didn't make that yourself, as for the lack of explanation, the fun redundancies, and the weird indenting. Unless of course, that is exactly what you intended, in which case, you have my apologies.

btedji 10-20-2001 08:35 AM

Quote:

Originally posted by Xaviar


Where'd ya yoink that from?? I would generally say you didn't make that yourself, as for the lack of explanation, the fun redundancies, and the weird indenting. Unless of course, that is exactly what you intended, in which case, you have my apologies.

the random needs to be from 0-255 for all the colors

Python523 10-20-2001 09:11 AM

Quote:

Originally posted by btedji


the random needs to be from 0-255 for all the colors

I tried doing that, it gave me an actual color besides the bright white light every few seconds but most of the times it was white


All times are GMT +2. The time now is 07:03 AM.

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