# /loadcfg

## Syntax

**/loadcfg** ***filename***

## Description

Loads the specified .cfg file.

* Plugins can use LoadCfgFile(filename)
* Some cfg files are loaded automatically. You may use /loadcfg to load them at your own desire.
  * **autoexec.cfg**

```
Executed on the first pulse

-   **charselect.cfg**


Executed when you enter character select

-   **server_character.cfg**


Executed when this *character* on *server* enters the world

-   **mapshortname.cfg**


Executed upon entering the zone *mapshortname*

-   **pluginname-autoexec.cfg**


Executed when this plugin is loaded (after its initialization is complete)
```

## Examples

* **bertox\_mycharacter.cfg**

  Config file that will load for Mycharacter on the Bertox server when she first enters world.
* **oot.cfg, soldungb.cfg, soldunga.cfg, take.cfg**

  Config file that will load when entering a specific zone


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/commands/slash-commands/loadcfg.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
