Graal Forums

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

ownerofbabylon 07-28-2001 11:17 PM

Light Effects
 
For anyone who doesnt know how to do light effects I learned so I hope any of you who need it read this.

if(playerenters){
setimg light2.png;
setcoloreffect 1,1,1,.5;
}

It is really simple but I did not know. Just put that inside of a NPC and put it somwhere and it does a light effect. Play around with the numbers and it gives it a different look.

omni-m00gle 07-29-2001 12:24 AM

if (playerenters) {
setcoloreffect 0,0,0,0;
setzoomeffect 0;
}

put that inside the script of an NPC with the image as light2.png.

ownerofbabylon 07-29-2001 04:23 AM

whats the difference?

LiquidIce00 07-29-2001 04:38 AM

you might want drawaslight also

ownerofbabylon 07-29-2001 04:41 AM

I have never even heard of that command =\

07-29-2001 04:52 AM

. . . .

Brady2 07-29-2001 06:36 AM

Jadis:

wtf man wtf

NPC Code:

//#CLIENTSIDE
if (created) {
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}


ownerofbabylon 07-29-2001 06:49 AM

Why you getting so angry?? On one post you say dont flame you for somthing and then you come on here and start freaking out. I was just trying to show anyone who didnt know how to do light effects how to do it cuz someome taught me.

Brady2 07-29-2001 07:10 AM

Jadis:

..? I was not angry..

LiquidIce00 07-29-2001 09:06 AM

Quote:

Originally posted by Brady2
Jadis:

wtf man wtf

NPC Code:

//#CLIENTSIDE
if (created) {
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}


no thats wrong..
you need if (playerenters) else after a bit you see the black circles. common mistake =\

ownerofbabylon 07-30-2001 02:06 AM

Quote:

Originally posted by Brady2
Jadis:

..? I was not angry..

oh ok, its just usually when someone says wtf i jump to the conclusion they might be mad or somthing ;)

Poogle 07-30-2001 02:50 AM

I OWN JO THERE! THIS IS 1000000000% CORRECT!
------SCRIPT------
Red
if (playerenters) {
setcoloreffect 1,0,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Blue
if (playerenters) {
setcoloreffect 0,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Green
if (playerenters) {
setcoloreffect 0,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Cyan
if (playerenters) {
setcoloreffect 0,1,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Goldif (playerenters) {
setcoloreffect 1,1,0,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

Violet
if (playerenters) {
setcoloreffect 1,0,1,0.99;
setzoomeffect 2;
dontblock;
drawaslight;
}

General 07-30-2001 03:07 AM

Cant see Lighting Effects
 
:( :( :( :( :( :(

Falcor 07-30-2001 08:04 AM

No one could see any of it onine w/o the //#CLIENTSIDE comment =\

Poogle 07-31-2001 05:36 AM

Quote:

Originally posted by Falcor
No one could see any of it onine w/o the //#CLIENTSIDE comment =\
No CLIENTSIDE needed! TeSt iT!


All times are GMT +2. The time now is 05:30 PM.

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