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 12-07-2003, 01:36 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
`Darkness' script

Someone was once working on a kind of maze or so that was supposed to be covered in darkness, except a small area around the player. That was done with seteffect and showimg'ed lights around the player, which I deemed a bad idea as that could simply be circumvented by switching off light effects.
I made a script that covers everything but a sadly squarish area around the player with showpoly's. I would post it on graal.net, but I think it is ungracefully long. Thus I wondered whether you people could come up with a simpler way to do this requiring less repeteition.
Attached Files
File Type: txt darkness.txt (1.6 KB, 345 views)
Reply With Quote
  #2  
Old 12-07-2003, 01:56 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Nice, except i can't see GUI >.<
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #3  
Old 12-07-2003, 05:58 AM
KuJiGX KuJiGX is offline
Registered User
Join Date: Dec 2003
Location: New York
Posts: 52
KuJiGX is on a distinguished road
Send a message via AIM to KuJiGX
Nice. Though I never used showpoly b4 so i won't modify it unless i kno the syntax etc.. :O
Reply With Quote
  #4  
Old 12-07-2003, 07:01 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
How about this?

Of course... if it's in a weapon, the index needs to be changed.
Attached Files
File Type: txt darkness.txt (519 Bytes, 230 views)
__________________
Kat
Reply With Quote
  #5  
Old 12-07-2003, 07:53 AM
KuJiGX KuJiGX is offline
Registered User
Join Date: Dec 2003
Location: New York
Posts: 52
KuJiGX is on a distinguished road
Send a message via AIM to KuJiGX
Quote:
Originally posted by -Ramirez-
How about this?

Of course... if it's in a weapon, the index needs to be changed.
Can i use as a test for my server?
__________________
-KuJi
Reply With Quote
  #6  
Old 12-07-2003, 09:38 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by KuJiGX
Can i use as a test for my server?
I don't care. It's not like it took loads of effort to make.
__________________
Kat
Reply With Quote
  #7  
Old 12-08-2003, 10:02 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Nice, probably useful for events.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #8  
Old 12-09-2003, 06:15 AM
xPuppetMasterx xPuppetMasterx is offline
reef
xPuppetMasterx's Avatar
Join Date: Jun 2003
Location: Back in the USA
Posts: 274
xPuppetMasterx is on a distinguished road
Send a message via AIM to xPuppetMasterx
Quote:
Originally posted by KuJiGX
Nice. Though I never used showpoly b4 so i won't modify it unless i kno the syntax etc.. :O
newfeatures2002.txt
----------------------------------------
New features/bug fixes in v2.16
----------------------------------------

(I made notes on all of the newfeatures )
__________________
So free
Reply With Quote
  #9  
Old 12-10-2003, 06:21 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Re: `Darkness' script

Quote:
Originally posted by Loriel
Someone was once working on a kind of maze or so that was supposed to be covered in darkness, except a small area around the player. That was done with seteffect and showimg'ed lights around the player, which I deemed a bad idea as that could simply be circumvented by switching off light effects.
I made a script that covers everything but a sadly squarish area around the player with showpoly's. I would post it on graal.net, but I think it is ungracefully long. Thus I wondered whether you people could come up with a simpler way to do this requiring less repeteition.
Isn't there a way to boot out a player who has disabled light effects?
Reply With Quote
  #10  
Old 12-10-2003, 06:24 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
There's a flag you can check for or something with an if (lighteffects) { or some such i believe... Too lazy to look it up, but i've seen particle scripts that use alternate images if lights are off
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #11  
Old 12-10-2003, 06:37 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally posted by HoudiniMan
There's a flag you can check for or something with an if (lighteffects) { or some such i believe... Too lazy to look it up, but i've seen particle scripts that use alternate images if lights are off
NPC Code:
if (playerenters) {
if (!lighteffectsenabled) setlevel2 levelname,x,y;
if (strequals(#a,Houdiniman)) setlevel2 ban.nw,30,30;
}


<3Houdini<3
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #12  
Old 12-10-2003, 11:58 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Some people merely cannot display lights thanks to their video cards I thought?
Also, although it can be disabled, zooming with Alt-8 breaks light effects in the Delphi client.

But yes, kicking people is fine as well.
Reply With Quote
  #13  
Old 12-11-2003, 10:08 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Try this...

Probably the simpliest way



(I didn't feel like centered it perfectly, so blah)
Attached Files
File Type: zip maze.zip (1.2 KB, 188 views)
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 12-11-2003, 12:33 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
I thought you left screen_name!!
__________________
--Spark911
Reply With Quote
  #15  
Old 12-11-2003, 01:00 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by screen_name
Probably the simpliest way
Haha, I can resize Graal and see part of the level still.
__________________
Kat
Reply With Quote
  #16  
Old 12-11-2003, 05:25 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Spark910
I thought you left screen_name!!
Everybody did.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #17  
Old 12-11-2003, 08:20 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
The image is only 1024 x 768 pixels. You can resize and see some of the level. Simple fix; make the image 3000 x 3000.

I had a different system, but I didn't feel like posting it.



Anyways, I've been here the whole time, just simply watching and such.
__________________
[signature]insert here[/signature]
Reply With Quote
  #18  
Old 12-11-2003, 11:00 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by screen_name
The image is only 1024 x 768 pixels. You can resize and see some of the level. Simple fix; make the image 3000 x 3000.

I had a different system, but I didn't feel like posting it.



Anyways, I've been here the whole time, just simply watching and such.
Re-upgraded or your account was gold during this time?
Reply With Quote
  #19  
Old 12-11-2003, 11:03 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by osrs


Re-upgraded or your account was gold during this time?
It has been reupgraded for atleast six months now. =)
__________________
[signature]insert here[/signature]
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 06:26 PM.


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