Graal Forums

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

ownerofbabylon 07-18-2001 02:16 PM

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. :D

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

SkooL 07-18-2001 02:18 PM

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.

ownerofbabylon 07-18-2001 02:21 PM

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.

SkooL 07-18-2001 02:25 PM

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.

ownerofbabylon 07-18-2001 03:06 PM

o cool :cool:

grim_squeaker_x 07-18-2001 05:17 PM

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.

konidias 07-18-2001 05:42 PM

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

toad1413 07-18-2001 06:51 PM

Quote:

Originally posted by SkooL

It uses setgifpart.

Using setimgpart is better.

ownerofbabylon 07-19-2001 01:01 AM

hmm how would you use setimgpart with that? can you give me an example?

ownerofbabylon 07-19-2001 01:02 AM

Thank you ladymidnight I didnt know that. Is that part of the servercofig.txt or somthing?

ownerofbabylon 07-19-2001 11:35 PM

So no one has any idea on the other questions???

SkooL 07-19-2001 11:36 PM

Quote:

Originally posted by toad1413
Using setimgpart is better.
They're the same thing.

ownerofbabylon 07-19-2001 11:38 PM

yea


All times are GMT +2. The time now is 07:25 PM.

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