Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Me = Totol Scripting Fool. Help. (https://forums.graalonline.com/forums/showthread.php?t=14331)

Nai 10-10-2001 07:44 PM

Me = Totol Scripting Fool. Help.
 
Okay, I am wanting to know how to make it to where if you enter the level it is dark, not to dark, so that you can see still, the npc then sleeps 0.5 seconds and then it gets lighter, lighter, lighter untill it is the Default Backpal. You know, that when you play on other servers, it is normal backpal. PLease help!

btedji 10-10-2001 09:26 PM

Re: Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Kaimetsu


You talkin' about backpals or seteffect? Or: P2P or non-P2P?

does seteffect work on non-p2p cuz that is the best way

ZORG1986 10-11-2001 12:10 AM

Nooo
seteffect causes lag i hate it
back pals are much nicer :-)

AlexH 10-11-2001 12:39 AM

backpals are good if you only want it to get dark/lighter every couple of mins
otherwise seteffect is better because it doesnt look as jumpy

Falcor 10-11-2001 02:05 AM

you kidding? Backpals suck! If you use a different tileset and it changes your pallet the level looks like tis been Hiipy-Tized Peace and Love. Sinceit changes the colors of the pallet. It dosnt tint them.

ownerofbabylon 10-11-2001 02:40 AM

i remember going on some server and it got dark but it lagged the hell out of me. I dont know what it was but it has stopped me from using backpals =/

JeffTL 10-11-2001 10:40 AM

He wants a bright-to-dark/dark-to-bright like you see on Zero 33's island.

btedji 10-11-2001 07:17 PM

does seteffect work on non-p2p????

Faheria_LAT1 10-12-2001 12:44 AM

Quote:

Originally posted by btedji
does seteffect work on non-p2p????
dunno if it "works" but its illegal on non-p2p servers

Faheria_LAT1 10-12-2001 12:50 AM

Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Nai
Okay, I am wanting to know how to make it to where if you enter the level it is dark, not to dark, so that you can see still, the npc then sleeps 0.5 seconds and then it gets lighter, lighter, lighter untill it is the Default Backpal. You know, that when you play on other servers, it is normal backpal. PLease help!

I have no idea if that is required: "//#CLIENTSIDE" but add it anyways..

PHP Code:

//#CLIENTSIDE
if (playerenters) {
  
seteffect 0,0,0,0.5;
  
sleep 0.05;
  
seteffect 0,0,0,0.45;
  
sleep 0.05;
  
seteffect 0,0,0,0.40;
  
sleep 0.05;
  
seteffect 0,0,0,0.35;
  
sleep 0.05;
  
seteffect 0,0,0,0.30;
  
sleep 0.05;
  
seteffect 0,0,0,0.25;
  
sleep 0.05;
  
seteffect 0,0,0,0.20;
  
sleep 0.05;
  
seteffect 0,0,0,0.15;
  
sleep 0.05;
  
seteffect 0,0,0,0.10;
  
sleep 0.05;
  
seteffect 0,0,0,0.05;
  
sleep 0.05;
  
seteffect 0,0,0,0;



Faheria_LAT1 10-12-2001 06:28 PM

Re: Re: Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Kaimetsu


*cries*

if(playerenters){
i=0.5;
timeout=0.05;
}
if(timeout){
if(i!=0) timeout=0.05;
i-=0.05;
seteffect 0,0,0,i;
}

Do I look like a script monkey? =P

ZORG1986 10-13-2001 12:25 AM

Re: Re: Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Kaimetsu


*cries*

if(playerenters){
i=0.5;
timeout=0.05;
}
if(timeout){
if(i!=0) timeout=0.05;
i-=0.05;
seteffect 0,0,0,i;
}

LoL Showing off as always

Riot-Starter 10-13-2001 01:14 AM

Re: Re: Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Kaimetsu


*cries*

if(playerenters){
i=0.5;
timeout=0.05;
}
if(timeout){
if(i!=0) timeout=0.05;
i-=0.05;
seteffect 0,0,0,i;
}

yea, but yours turns 100% dark at the end for me, so i scripted my own wich works fine for me.
NPC Code:

//#CLIENTSIDE
if (playerenters) {
i=0.5;
while(i>0){
i-=0.05;
seteffect 0,0,0,i;
sleep .05;
}
}


LilNiglet 10-13-2001 07:53 AM

Re: Re: Re: Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by ZORG1986

LoL Showing off as always

Thats not showing off, even I can do that

nyghtGT 10-14-2001 03:41 AM

Re: Me = Totol Scripting Fool. Help.
 
Quote:

Originally posted by Nai
Okay, I am wanting to know how to make it to where if you enter the level it is dark, not to dark, so that you can see still, the npc then sleeps 0.5 seconds and then it gets lighter, lighter, lighter untill it is the Default Backpal. You know, that when you play on other servers, it is normal backpal. PLease help!
well what you could do that would look really awesome if have a back pal set really dark .. then use light effects to make an aura of light around the npc then have the backpals eventually get brighter ... that would look awesome ... i am not sure exactly how to script it but it would look kool ....


All times are GMT +2. The time now is 03:05 AM.

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