Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-26-2006, 11:41 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Server Load

It would be nice if there was some way to determine the current server load with the new scripting engine. This could be used to disable certain features on servers when the load gets too high.

For example:
NPC Code:

function IntensiveProcess() {
if (serverload < 20) {
//do stuff
} else {
say2("The server load is currently too high! Please try again later.");
}
}



For Maloria, I would use it to disable certain things like mass messages with the message system (/mass blah blah), as those require the server to loop through every player and set strings.
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #2  
Old 02-27-2006, 12:33 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Could be potentially useful. I know on Maloria, it would stop the npcserver from dying.
__________________
Reply With Quote
  #3  
Old 03-01-2006, 04: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
Could be added yes, althought it might be easier to optimize the scripts. The npcserver is now displaying up to 20 npcs when doing /stats, also it is displaying in which classes they are so it's easier to find the scripts which are lagging the server.
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 04:42 AM.


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