Graal Forums

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

Geovanie Legend 06-12-2001 11:13 AM

Lighting Effects
 
Ok my NPC scripter has a slight problem, he can't do lighting effects cause the game don't like his voodoo 2 card for some reason so could someone either post the script on here or send me a pm of how to make a lighting effect that makes it look like the light is coming in through the doorway?

KJS 06-12-2001 11:20 AM

ok for the npc
 
put the gif of the npc to

frolic_doorway.png

or it might be called

frolic_door_up.png

and tell me what color you want it to be (then I will tell you the code)

toad1413 06-12-2001 02:11 PM

Can you just post it here KJS? I would like to know too please.

Falcor 06-12-2001 08:50 PM

I made a cool one...
 
For my pet shop on TOT I made one. Im willing to give the code away. no big secret or nutting. its just common sence really..

NPC Code:

if (created) {
this.x = 32 //X position of the light
this.y = 35 // Y position of the light
showimg 0,light2.png,this.x,this.y;
changeimgcolors 0,1,.89,.38,.99;
changeimgvis 0,1;
changeimgpart 0,48,0,32,64;
}



The only reason I didnt putt he #s directly on the showimg is so you could see where the X and y should go... That basicially it. not much work.

KJS 06-12-2001 09:36 PM

Quote:

Originally posted by toad1413
Can you just post it here KJS? I would like to know too please.
he pmed me...

and I sent him my way of making it...

I also knew how to make falados way... it is not that hard either way...

but it wasn't what he was looking for...

he wants something like this

|
|||
||||||
||||||||
||||||||||
||||||||||||
|||||||||||||||
|||||||||||||||||
|||||||||||||||||||

I told him he would have to make a gif for that...
humm I am going to test something mabie I can get it to work with light2.png...

I will post it if I get it to work...

KJS 06-12-2001 09:41 PM

here
 
here I beleve this will work for what he is talking about

//#CLIENTSIDE
if (created) {
drawaslight;
setimgpart light2.png,60,30,32,32;
setcoloreffect .9,.8,0,.9;
dontblock;
}


All times are GMT +2. The time now is 10:40 AM.

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