Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Lights (https://forums.graalonline.com/forums/showthread.php?t=27856)

prozacboy666 04-22-2002 09:08 PM

Lights
 
I have tryed to make lights zoom in and out but i cant figure it out.

this is the script i tryed.

if (created){
setzoomeffect 1;
sleep .2;
setzoomeffect 2;
sleep .2;
setzoomeffect 3;
timeout=.2;
}
I have no idea if i did it wrong -_- I am so bad at scripting...

SaijinGohan 04-22-2002 10:49 PM

NPC Code:

<stolen(?) script>



Try that

Saga2001 04-22-2002 11:11 PM

Quote:

Originally posted by SaijinGohan
NPC Code:

<script>



Try that

Its music to my ears...

prozacboy666 04-23-2002 12:11 AM

Thanks..

SaijinGohan 04-23-2002 06:49 PM

np. Just glad I can actually help someone with scripts!

prozacboy666 04-23-2002 07:29 PM

Would you like to be my NAT Admin for my server Eden?

Kadar 04-23-2002 07:56 PM

Quote:

Originally posted by Kaimetsu


That looks familiar.

its the one used on graal2001

prozacboy666 04-23-2002 09:10 PM

-_- i hate when people take server scripts.. I will change it some to make it different...

Saga2001 04-23-2002 10:51 PM

Quote:

Originally posted by Kaimetsu
Something like this?

NPC Code:

<script>



Could be some bugs in there. I've not tested it.

Thats the one I use.

SaijinGohan 04-24-2002 03:47 AM

ack sry I didnt reply earlier. I scriped that NPC in school and no I didnt copy. I made that on my own. And heres one I also made on my own

NPC Code:

//#CLIENTSIDE
if(playerenters) {
setimg light2.png;
drawaslight;
dontblock;
setcoloreffect 1,1,1,0.99;
this.initial=.5;
this.additive=0.1;
timeout=0.1;
}
if(timeout) {
setzoomeffect this.initial;
if(this.initial==1.5)
this.additive=-0.1;
if(this.initial==0.5)
this.additive=0.1;
this.initial=this.initial+this.additive;
timeout=0.1;
}


its a lil more complex cause I have time to play around with it at home.

Saga2001 04-24-2002 04:58 AM

Quote:

Originally posted by Kaimetsu


I actually made a stupid mistake that leads to negative alpha values, but let's not talk about that ;)

Well we all make mistakes, you just tend to make less of them.

prozacboy666 04-24-2002 09:16 PM

-_- ya the first one didn't work. I tryed to fix it but i kept getting worse.

SaijinGohan 04-24-2002 11:47 PM

well I can guarentee the second one works.

osrs 04-27-2002 09:08 PM

..
 
Try that, maybe will be correct


All times are GMT +2. The time now is 04:50 AM.

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