Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   `Darkness' script (https://forums.graalonline.com/forums/showthread.php?t=49520)

Loriel 12-07-2003 01:36 AM

`Darkness' script
 
1 Attachment(s)
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.

GoZelda 12-07-2003 01:56 AM

Nice, except i can't see GUI >.<

KuJiGX 12-07-2003 05:58 AM

Nice. Though I never used showpoly b4 so i won't modify it unless i kno the syntax etc.. :O

-Ramirez- 12-07-2003 07:01 AM

1 Attachment(s)
How about this? ;)

Of course... if it's in a weapon, the index needs to be changed.

KuJiGX 12-07-2003 07:53 AM

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?

-Ramirez- 12-07-2003 09:38 AM

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.

osrs 12-08-2003 10:02 PM

Nice, probably useful for events. :)

xPuppetMasterx 12-09-2003 06:15 AM

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 :) )

protagonist 12-10-2003 06:21 AM

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?

HoudiniMan 12-10-2003 06:24 AM

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

ForgottenLegacy 12-10-2003 06:37 AM

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

Loriel 12-10-2003 11:58 AM

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.

screen_name 12-11-2003 10:08 AM

1 Attachment(s)
Try this...

Probably the simpliest way



(I didn't feel like centered it perfectly, so blah)

Spark910 12-11-2003 12:33 PM

I thought you left screen_name!!

-Ramirez- 12-11-2003 01:00 PM

Quote:

Originally posted by screen_name
Probably the simpliest way
Haha, I can resize Graal and see part of the level still. :)

osrs 12-11-2003 05:25 PM

Quote:

Originally posted by Spark910
I thought you left screen_name!!
Everybody did. ^^

screen_name 12-11-2003 08:20 PM

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.

osrs 12-11-2003 11:00 PM

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?

screen_name 12-11-2003 11:03 PM

Quote:

Originally posted by osrs


Re-upgraded or your account was gold during this time?

It has been reupgraded for atleast six months now. =)


All times are GMT +2. The time now is 09:46 AM.

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