Graal Forums

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

Saga2001 04-06-2002 01:05 AM

Server Thoughts.
 
I was thinking about a few things...
P2P
Didn't want to put it in npc server because it is still npc related...
What would be the best way for me to do something with electricity? I was thinking how cool it would be to make playerhouses actually cost money as changes for electricity to encourage players to turn off their lights. :p. But what I was thinking is (not on a current server, but possibly just for fun and practice) to make building of electrical lines...However it alludes me what I should do to make the best check for connectivity between the two lines (cables between electrical lines)? Any thoughts? I thought I could use save[] vars and just keep track of vars thru there, and than I was thinking level vars, and I could just keep a level. array. But than I could also keep a database npc that would keep a server. array that I could use with(getnpc(name)) to get the value of it...Just a few suggestions would help. :(

Spanko 04-06-2002 02:15 AM

The railroads on 2001 use save[] vars, though I personally would try settling for the database NPC controlled option. It would then suffer from some light delay when the player switches levels, but if you make a proper system in which a system NPC requests the information from the database NPC you could easily make it.

Plus it would mean there wouldn't have to be 1902841984 NPCs on the map just to make sure the whole place is connected.

Er1c 04-06-2002 02:17 AM

I was going to do something like that on TOT, and the easiest, and maybe best, way i could think of doing it was to make a bot NPC that would just follow the track/wire/whatever (kind of like the train on 2k1), and then if it doesn't make it all the way arround back to where it started you know that the track wasn't complete.

Saga2001 04-06-2002 06:55 AM

Quote:

Originally posted by Er1c
I was going to do something like that on TOT, and the easiest, and maybe best, way i could think of doing it was to make a bot NPC that would just follow the track/wire/whatever (kind of like the train on 2k1), and then if it doesn't make it all the way arround back to where it started you know that the track wasn't complete.
Thats not a bad idea. I'll work on that.

royce 04-06-2002 07:49 AM

Quote:

Originally posted by Saga2001


Thats not a bad idea. I'll work on that.

You need some yellow gfx of electric moving in X's down the cable lines. That would rock.

Saga2001 04-06-2002 07:50 AM

Quote:

Originally posted by royce


You need some yellow gfx of electric moving in X's down the cable lines. That would rock.

yah it would.

dragoonvenganc 04-06-2002 12:35 PM

nice idea and nice approach u can have it also if the power does not flow though the line and then into the house and back out that the house will not get power


All times are GMT +2. The time now is 02:58 AM.

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