cNetwork::instance()->reload();
Network::instance()->reload();
void commandReload( cUOSocket *socket, const QString &command, const QStringList &args ) throw(){	Q_UNUSED(command);	// Reload accounts	// Reload scripts	// Reload all	if( args.count() == 0 )	{		socket->sysMessage( tr( "Usage: reload <accounts|scripts|python|all>" ) );		return;	}	QString subCommand = args[0].lower();	// accounts	if( subCommand == "accounts" )	{		Accounts::instance()->reload();		socket->sysMessage("The accounts have been reloaded.");	}	if( subCommand == "python" )	{		ScriptManager::instance()->reload();    socket->sysMessage("The python scripts have been reloaded.");	}	if( subCommand == "scripts" )	{		SrvParams->reload(); // Reload wolfpack.xml		QStringList oldAISections = DefManager->getSections( WPDT_AI );		DefManager->reload(); //Reload Definitions		AIFactory::instance()->checkScriptAI( oldAISections, DefManager->getSections( WPDT_AI ) );		Accounts::instance()->reload();		SpawnRegions::instance()->reload();		AllTerritories::instance()->reload();		Resources::instance()->reload();		MakeMenus::instance()->reload();		ScriptManager::instance()->reload(); // Reload Scripts		Skills->reload();				// Update the Regions		cCharIterator iter;		P_CHAR pChar;		for( pChar = iter.first(); pChar; pChar = iter.next() )		{			cTerritory *region = AllTerritories::instance()->region( pChar->pos().x, pChar->pos().y, pChar->pos().map );			pChar->setRegion( region );		}		cNetwork::instance()->reload(); // This will be integrated into the normal definition system soon		socket->sysMessage("The configuration, definitions and python scripts have been reloaded.");	}	if( subCommand == "all" )	{		Console::instance()->send( "Reloading definitions, scripts and wolfpack.xml\n" );		SrvParams->reload(); // Reload wolfpack.xml		QStringList oldAISections = DefManager->getSections( WPDT_AI );		DefManager->reload(); //Reload Definitions		AIFactory::instance()->checkScriptAI( oldAISections, DefManager->getSections( WPDT_AI ) );		Accounts::instance()->reload();		SpawnRegions::instance()->reload();		AllTerritories::instance()->reload();		Resources::instance()->reload();		MakeMenus::instance()->reload();		ScriptManager::instance()->reload(); // Reload Scripts				// Update the Regions		cCharIterator iter;		P_CHAR pChar;		for( pChar = iter.first(); pChar; pChar = iter.next() )		{			cTerritory *region = AllTerritories::instance()->region( pChar->pos().x, pChar->pos().y, pChar->pos().map );			pChar->setRegion( region );		}		cNetwork::instance()->reload(); // This will be integrated into the normal definition system soon		socket->sysMessage("The accounts, configuration, definitions and python scripts have been reloaded.");	}}