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 03-15-2001, 09:03 AM
Krakken_2001 Krakken_2001 is offline
Posts: 1337
Krakken_2001's Avatar
Join Date: Mar 2001
Location: Staffs, England Quote: "Bomy in Progress" Looks: Amazingly Stunning Popularity: 10,000%
Posts: 1,325
Krakken_2001 is on a distinguished road
Talking

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.
__________________
------------------------


- UnOfficial Graalian Story Teller
- Holder Of The 1000th Upgraded Graalian Account (Not This One)
------------------------------------------------------------------------------
"The Fairy Princess - Zorro" - A New Beggining
Reply With Quote
  #2  
Old 03-15-2001, 10:30 AM
SSmutz SSmutz is offline
I hate me. :(
Join Date: Mar 2001
Posts: 2,633
SSmutz will become famous soon enough
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
__________________
I hate graal.

NO! FOR THE MILLIONTH TIME, I AM NOT GOING TO PLAY GRAAL AGAIN! I HANGOUT IN THE NOT GRAAL RELATED FORUM, BECAUSE IT HAS NOTHING TO DO WITH GRAAL.
The End
Reply With Quote
  #3  
Old 03-17-2001, 11:12 PM
Cloud_X Cloud_X is offline
Cloud_X's Avatar
Join Date: Mar 2001
Posts: 2,921
Cloud_X will become famous soon enough
well I guess since faheria doesnt have a npc server why dont you use server strings?
thoose work pretty good.
__________________
Temporary blocked
Stefan Knorr
Reply With Quote
  #4  
Old 03-18-2001, 12:57 PM
GraalWarrior2k1 GraalWarrior2k1 is offline
Registered User
GraalWarrior2k1's Avatar
Join Date: Mar 2001
Location: New York
Posts: 506
GraalWarrior2k1 is on a distinguished road
Send a message via AIM to GraalWarrior2k1
?

server string?
Reply With Quote
  #5  
Old 03-18-2001, 06:46 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
Server strings:

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.
__________________

Reply With Quote
  #6  
Old 03-19-2001, 01:25 AM
SSmutz SSmutz is offline
I hate me. :(
Join Date: Mar 2001
Posts: 2,633
SSmutz will become famous soon enough
cool, i think im finally begining to undertand strings
__________________
I hate graal.

NO! FOR THE MILLIONTH TIME, I AM NOT GOING TO PLAY GRAAL AGAIN! I HANGOUT IN THE NOT GRAAL RELATED FORUM, BECAUSE IT HAS NOTHING TO DO WITH GRAAL.
The End
Reply With Quote
  #7  
Old 03-19-2001, 01:29 AM
JoMomma JoMomma is offline
Registered User
Join Date: Mar 2001
Posts: 43
JoMomma is on a distinguished road
Exclamation Re: Server strings:

Quote:
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.
__________________
Temporary disabled
Stefan Knorr
Reply With Quote
  #8  
Old 03-19-2001, 06:19 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
Re: Re: Server strings:

Quote:
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
__________________

Reply With Quote
  #9  
Old 06-08-2001, 06:07 AM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
Can someone help make the gifs er.... pngs for the time system??? And is timevar by 5 seconds or 5 minutes
__________________
You may think that Death is the end to everything, it is only the beginning to some...
Reply With Quote
  #10  
Old 06-08-2001, 06:41 AM
RawPower RawPower is offline
Godd Bye
RawPower's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 3,554
RawPower is on a distinguished road
Send a message via ICQ to RawPower Send a message via AIM to RawPower
Quote:
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..
__________________
Farewell graalians...
Reply With Quote
  #11  
Old 06-09-2001, 12:32 AM
RawPower RawPower is offline
Godd Bye
RawPower's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 3,554
RawPower is on a distinguished road
Send a message via ICQ to RawPower Send a message via AIM to RawPower
Quote:
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.
__________________
Farewell graalians...
Reply With Quote
  #12  
Old 06-10-2001, 08:09 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
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 =\
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #13  
Old 06-10-2001, 04:38 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
After a year timevar would have a value of:
6307200
Not that high actually...
__________________

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 06:38 PM.


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