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
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:11 PM.


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