Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-28-2001, 11:17 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
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.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 07-29-2001, 12:24 AM
omni-m00gle omni-m00gle is offline
delete all proofs
omni-m00gle's Avatar
Join Date: Apr 2001
Location: United Kingdom
Posts: 2,528
omni-m00gle is on a distinguished road
Send a message via AIM to omni-m00gle
if (playerenters) {
setcoloreffect 0,0,0,0;
setzoomeffect 0;
}

put that inside the script of an NPC with the image as light2.png.
__________________
-+ Malak +-

Never taste of the fruit...

Quote:
Originally posted by Stefan
on andor i got jailed for
impersonating me
Reply With Quote
  #3  
Old 07-29-2001, 04:23 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
whats the difference?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #4  
Old 07-29-2001, 04:38 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
you might want drawaslight also
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #5  
Old 07-29-2001, 04:41 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
I have never even heard of that command =\
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 07-29-2001, 04:52 AM
Guest
Posts: n/a
. . . .
Reply With Quote
  #7  
Old 07-29-2001, 06:36 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

wtf man wtf

NPC Code:

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

Reply With Quote
  #8  
Old 07-29-2001, 06:49 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
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.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #9  
Old 07-29-2001, 07:10 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

..? I was not angry..
Reply With Quote
  #10  
Old 07-29-2001, 09:06 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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 =\
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #11  
Old 07-30-2001, 02:06 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
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
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #12  
Old 07-30-2001, 02:50 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
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;
}
Reply With Quote
  #13  
Old 07-30-2001, 03:07 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Unhappy Cant see Lighting Effects

Reply With Quote
  #14  
Old 07-30-2001, 08:04 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
No one could see any of it onine w/o the //#CLIENTSIDE comment =\
__________________

subliminal message: 1+1=3
Reply With Quote
  #15  
Old 07-31-2001, 05:36 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Falcor
No one could see any of it onine w/o the //#CLIENTSIDE comment =\
No CLIENTSIDE needed! TeSt iT!
Reply With Quote
  #16  
Old 07-31-2001, 01:40 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Poogle
No CLIENTSIDE needed! TeSt iT!
He said online...
__________________
the sky is falling
Reply With Quote
  #17  
Old 07-31-2001, 01:41 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by LiquidIce00
you might want drawaslight also
Only if you are using seteffect in the level with the light.
__________________
the sky is falling
Reply With Quote
  #18  
Old 07-31-2001, 04:50 PM
NeoNPL NeoNPL is offline
HONEY IM HOME!
NeoNPL's Avatar
Join Date: Jun 2001
Location: Mianus
Posts: 1,361
NeoNPL is on a distinguished road
Send a message via Yahoo to NeoNPL
Unhappy

But no one helped me with what i was stuck on in lighting effects
how do you do those wicked door lighting effects and the ones that cut around the corner
Reply With Quote
  #19  
Old 07-31-2001, 04:52 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by NeoNPL
But no one helped me with what i was stuck on in lighting effects
how do you do those wicked door lighting effects and the ones that cut around the corner
It uses setgifpart.
__________________
the sky is falling
Reply With Quote
  #20  
Old 07-31-2001, 11:39 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

IE: top left corner would be...

NPC Code:

if (playerenters||created) {
setgifpart light2.png,64,64,64,64;
setcoloreffect 1,1,1,.99;
drawaslight;
dontblock;
}



Anyway I think the light2.png is 128x128 pixels
Reply With Quote
  #21  
Old 08-03-2001, 04:18 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
SO WHAT THE HELL IS THE COMMAND!?!?!?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #22  
Old 08-04-2001, 05:35 AM
Guest
Posts: n/a
Quote:
Originally posted by wetferret1
SO WHAT THE HELL IS THE COMMAND!?!?!?
Please stop posting and die
Reply With Quote
  #23  
Old 08-04-2001, 09:10 AM
revalation revalation is offline
Registered User
revalation's Avatar
Join Date: Mar 2001
Location: a sea of cherry jello.
Posts: 973
revalation is on a distinguished road
Send a message via AIM to revalation Send a message via Yahoo to revalation
I wish I could see light effects.
__________________

kuromu.
Reply With Quote
  #24  
Old 08-07-2001, 10:21 PM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
NPC Code:

if (created) {
setimg light2.png;
dontblock;
timeout = 0.05;
}
if (timeout) {
setcoloreffect random(0,99),random(0,99),random(0,99),random (0,99);
timeout = 0.05;
}

__________________
Justin
Reply With Quote
  #25  
Old 08-07-2001, 10:47 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by revalation
I wish I could see light effects.
Get DirectX 8.0 and IcePick you tell him!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:58 AM.


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