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-18-2001, 02:16 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
Script Items

I have a couple questions.

First, how do you make it so a weapon only works on certain blocks of coordinates? like say a fishing pole and a pond or a pick and a mine?

Also, i have never learned how to do light effects. I dont need them since my server is free but i wanna add them to bravo.

Last thing is a level updater. Does anyone know if there is a script that you just say like Update level or somthing (weapon) and it refreshes the level?

If you can help me with these I will be greatful.

If i can help anyone else (I do know some things LOL) I will help.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 07-18-2001, 02:18 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Re: Script Items

Quote:
Originally posted by ownerofbabylon
Also, i have never learned how to do light effects. I dont need them since my server is free but i wanna add them to bravo.
NPC Code:
if (created) {setcoloreffect R,B,G,A;}


R = red, Blue = Blue, G = Green, A = Alpha.
__________________
the sky is falling
Reply With Quote
  #3  
Old 07-18-2001, 02:21 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
oh ok thats easy enough =) I need to know how to do it for doors though. Does anyone know how on 2001 and Tier'Dal they had light effects in the doors? where like the lights were comming through the doors.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #4  
Old 07-18-2001, 02:25 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by ownerofbabylon
oh ok thats easy enough =) I need to know how to do it for doors though. Does anyone know how on 2001 and Tier'Dal they had light effects in the doors? where like the lights were comming through the doors.
It uses setgifpart.
__________________
the sky is falling
Reply With Quote
  #5  
Old 07-18-2001, 03:06 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
o cool
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 07-18-2001, 05:17 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
And you don't need a level updater, if you've got a staff account you just say update level and the levle get's updated.
__________________

Reply With Quote
  #7  
Old 07-18-2001, 05:42 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Remember, for lighting effects, the alpha needs to be less than 1 in order to become transparent and make "light"

So set it to 0.5 or something.. 0.9 makes it really bright 0.1 makes it dim.. take it from there =)
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #8  
Old 07-18-2001, 06:51 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by SkooL

It uses setgifpart.
Using setimgpart is better.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #9  
Old 07-19-2001, 01:01 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
hmm how would you use setimgpart with that? can you give me an example?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #10  
Old 07-19-2001, 01:02 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
Thank you ladymidnight I didnt know that. Is that part of the servercofig.txt or somthing?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #11  
Old 07-19-2001, 11:35 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
So no one has any idea on the other questions???
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #12  
Old 07-19-2001, 11:36 PM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by toad1413
Using setimgpart is better.
They're the same thing.
__________________
the sky is falling
Reply With Quote
  #13  
Old 07-19-2001, 11:38 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
yea
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
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 07:11 PM.


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