![]() |
Contact Support Server & Module Setup Guides Terms & Conditions |
|
Manual Server Restarts with NWNx ADHosting does not use a Control Panel, since Neverwinter Nights is such a varied game, with custom modules and custom requirements it is almost impossible to make and maintain a good, comprehensive control panel, able to respond to every scenario the nwserver can throw at it. Therefore, we do a lot of things manually, this adds a more personal touch to our service and provides you with less frustration than if a computer was poorly managing your server for you. That said, you may wish to be able to restart your server yourself. This flexibiility can be helpful when you are testing something out and you need the server reset a few times. So, here we will show you how to manually restart your server whenever you wish. if you have read our Automated Restart Tutorial then this will not really be new to you but its another different implementation. In this tutorial we're going to place a signpost and make it restart the server, Simples. Things you will need Neverwinter Nights Toolset The Process Open the Toolset and your module. Go into a DM/Admin only area. ![]() Place a signpost wherever you want. This will be the restart trigger item so it wants to be somewhere that normal players can't access. If you don't have a DM Room you could always use an inventory item but this tutorial will cover placed items. ![]() There you have a lovely signpost, now lets make it do something. Right Click it and go to Properties. On this first page tick the box "Useable". If you want to make it quite durable then you can, we're going to assume you won't go smashing the sign though. ![]() Now, click on Scripts. Select "OnUsed" and click Edit. Now paste the following into the script editor and save. I called this one "restartscipt". //------------------------------a_restart-----------------------------// void main() { SetLocalString(GetModule(),"NWNX!RESETPLUGIN!SHUTDOWN","1"); } //------------------------------a_restart-----------------------------// ![]() Note: This script will instantly restart the server, it will not send any warnings it will just close the server. Be careful! Using this script MAY cause some data loss, depending on how your server saves character and location information you may want to include a save before this command is run. If you wish to implement a delay on this sign then you can use the code or a variation of the code mentioned in the Automated Server Restart Tutorial. |
|