Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Way to check the servers status (https://forums.graalonline.com/forums/showthread.php?t=3782)

Er1c 05-29-2001 11:09 AM

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.

KJS 05-30-2001 06:31 AM

that would
 
that would be a really good idea...

Admins 06-01-2001 06:08 AM

You can place code in the if (created) part of the
control-npc, or in the if (playeronline) part of the
control-npc

Er1c 06-19-2001 06:38 AM

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.

T-Squad 06-19-2001 10:17 PM

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

Er1c 06-22-2001 08:00 AM

Well sure there are different ways to do it... but the easiest and most reliable way is just using a built in flag.


All times are GMT +2. The time now is 03:14 PM.

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