Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-29-2001, 11:09 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Way to check the servers status

Would there be a way to set a server flag such as
NPC Code:

server.npcserveronline


when the npc server is online, and remove that flag whenever it gets kicked off? That would be usefull because it can be used in an NPC Weapon that saves the players X, Y, and level in strings, then warps that player to a waiting room untill the NPC Server is reactivated. If the NPC server were to shut down, people could complete quests with no trouble at all. Think about it.
__________________
Eric Kraft
  #2  
Old 05-30-2001, 06:31 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool that would

that would be a really good idea...
__________________
Thanks,
-KJL
  #3  
Old 06-01-2001, 06:08 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can place code in the if (created) part of the
control-npc, or in the if (playeronline) part of the
control-npc
  #4  
Old 06-19-2001, 06:38 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Uhhh....

If the Control-NPC isn't online, that means it's too late for the NPC Server to warp any players, which is why this flag would need to be built into the NPC server so that a weapon NPC, which doesnt get affected by the NPC server, can warp the player.
__________________
Eric Kraft
  #5  
Old 06-19-2001, 10:17 PM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
hmmm could you do something with the control NPC in the player online part, where if (playeronline) it sends a variable to every player, which increases as they stay on...a weapon could detect if it insnt increasing, telling you the NPC Server is down, and warping you to a waiting room :-)
  #6  
Old 06-22-2001, 08:00 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Well sure there are different ways to do it... but the easiest and most reliable way is just using a built in flag.
__________________
Eric Kraft
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 01:28 AM.


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