PDA

View Full Version : Multiplayer NPC's


Krakken_2001
03-15-2001, 09:03 AM
Hey, I was wondering if anyone could teach me how to use multiplayer terms in game NPC's such as horse races etc.

I have started making multiplayer games for Faheria but I am having real trouble. If anyone could help thst would be great.

SSmutz
03-15-2001, 10:30 AM
i need to know about that too, cuz i wanted to make a short race track int he under gound river of the Bomy Caverns

Cloud_X
03-17-2001, 11:12 PM
well I guess since faheria doesnt have a npc server why dont you use server strings?
thoose work pretty good.

GraalWarrior2k1
03-18-2001, 12:57 PM
server string?

grim_squeaker_x
03-18-2001, 06:46 PM
Any string set with the setstring command which begins with "server." When it is changed it changes for all the players on the server. So it is possible to use it for night/day or weather or CTF Games or whatever.

SSmutz
03-19-2001, 01:25 AM
cool, i think im finally begining to undertand strings

JoMomma
03-19-2001, 01:29 AM
Originally posted by grim_squeaker_x
Any string set with the setstring command which begins with "server." When it is changed it changes for all the players on the server. So it is possible to use it for night/day or weather or CTF Games or whatever.

Actually there's a better way to do night/day now: timevar

timevar is a built-in variable incremented every 5 seconds by the server by 1 tick. On the Graal 2001 server, this gets calculated to 2 Graalian minutes... by my calculations this becomes:

30 ticks = 1 hour
720 ticks = 1 day
17280 ticks = 1 month
414720 ticks = 1 year

Oh btw, be careful about division. When it gets to 1 month, you would be doing something like:
int(17279/17280) which gets calculated to 1, since of floating point errors. And 17279 % 17280 becomes. -1. Yep, a remainder less than 0.

grim_squeaker_x
03-19-2001, 06:19 PM
Originally posted by JoMomma


Actually there's a better way to do night/day now: timevar

timevar is a built-in variable incremented every 5 seconds by the server by 1 tick. On the Graal 2001 server, this gets calculated to 2 Graalian minutes... by my calculations this becomes:

30 ticks = 1 hour
720 ticks = 1 day
17280 ticks = 1 month
414720 ticks = 1 year

Oh btw, be careful about division. When it gets to 1 month, you would be doing something like:
int(17279/17280) which gets calculated to 1, since of floating point errors. And 17279 % 17280 becomes. -1. Yep, a remainder less than 0.

Yes I knew that, I'm just saying it for the people who must use the other stuff, like people working on non-pay servers or whatever.

I've already made a working night/day using an offline timevar simulation ^^

XilosTinsu
06-08-2001, 07:07 AM
Can someone help make the gifs er.... pngs for the time system??? And is timevar by 5 seconds or 5 minutes

RawPower
06-08-2001, 07:41 AM
Originally posted by Cloud_X
well I guess since faheria doesnt have a npc server why dont you use server strings?
thoose work pretty good.
where have you been? We've had npc server forever..

RawPower
06-09-2001, 01:32 AM
Originally posted by Gspeed2000
Not true Shadrock... you guys didn't have it until after we broke off the merger totally (second time)... because you thought you wouldn't be getting npc server.

we decided to merge one time...and that was a long time ago. Sadly to say I felt ToT was going no where and I didnt like being controlled and what not.

LiquidIce00
06-10-2001, 09:09 AM
Originally posted by XilosTinsu
Can someone help make the gifs er.... pngs for the time system??? And is timevar by 5 seconds or 5 minutes

Timevar adds 1 to itself each 5 seconds.

Imagine that number after a year =\

grim_squeaker_x
06-10-2001, 05:38 PM
After a year timevar would have a value of:
6307200
Not that high actually...