Graal Forums

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

wetferret1 08-30-2001 08:54 AM

Light Effect SHAPES!
 
How do people make them HUGE,Square, All sorts of shapes? If you know please post the script here

KJS 08-30-2001 10:26 AM

NPC Code:

//#CLIENTSIDE
if (created) {
dontblock;
drawaslight;
setimgpart light2.png,60,60,100,100;
setcoloreffect .9,0,0,.9;
setzoomeffect 2;
}



that gives an example on how to zoom it.. set the light and change the img part so you can make it like into a square or whatever

wetferret1 08-30-2001 11:01 AM

can you help out on my other thread also?

grim_squeaker_x 08-30-2001 04:13 PM

They use different images.

konidias 08-30-2001 11:03 PM

Quote:

Originally posted by grim_squeaker_x
They use different images.
omg.. thats the first time i have seen lady midnight wrong about something having to do with npcs :megaeek:

They use setimgpart.. or is it setgifpart? Check it out.. take a snapshot of like.. the admin house and then look at the light in the door.. its just light2 with parts of it hidden.

KJS 08-30-2001 11:06 PM

Quote:

Originally posted by konidias


omg.. thats the first time i have seen lady midnight wrong about something having to do with npcs :megaeek:

They use setimgpart.. or is it setgifpart? Check it out.. take a snapshot of like.. the admin house and then look at the light in the door.. its just light2 with parts of it hidden.

its setimgpart...

yes sometimes people do use different images but most of the time they just use light2 and resize it and cut out the part they want to use from it...

Admins 08-30-2001 11:09 PM

I think there is a bug in 'older' Graal versions
with the snapshot when there are lights or so
(older= older than my Graal)

CyanideSR71 08-31-2001 10:13 AM

Older than your Graal, Stefan? You had v2001 at least when v1.4 was coming out! What version do you have now?


All times are GMT +2. The time now is 11:55 PM.

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