> For the complete documentation index, see [llms.txt](https://nidzo-docs.gitbook.io/ultrabot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nidzo-docs.gitbook.io/ultrabot/advanced-ticketing/installation.md).

# Installation

{% hint style="danger" %}
Before starting with the Installation, make sure to **BACKUP ALL YOUR FILES & DATABASES**.
{% endhint %}

{% hint style="info" %}
If you don't want to bother with all the installation, on the Resource Page you can purchase the 'Advanced Ticketing Installation' addon and we'll install the plugin for you.
{% endhint %}

When you purchase the Advanced Tickets Plugin, you'll receive folder named `advanced-tickets` which will contain the following folders:

* `commands`
* `configs`
* `dashboard`
* `data`
* `events`
* `structures`
* `utils`

Since the version v1.3.1 of the Champion Ultra, installation is easier than ever. Instead of copy-pasting code, now you just have to drag-and-drop files and replace existing with the next ones. But still, you'll have to add fields to the config files manually

## Installation

{% hint style="warning" %}
When doing this step, don't **delete the old folders**, but just **replace the files within or just drag-and-drop the new folders and click 'Replace' when it prompts you to replace existing files.**
{% endhint %}

As said in the text above, now you can just drag-and-drop folders (**except configs folder**) from the `advanced-tickets` into your current files so they replace the current files with a new ones.

## Configs Copy-Pasting

{% hint style="info" %}
By the 'Find this code in Champion Ultra ' it's meant to find that code in the Champion Ultra, not the plugin.
{% endhint %}

While in the previous section you could just drag-and-drop all the folders, for the `configs` folder you'll still need to manually add new fields.\
Pasting of the config files is easy - open the current config on the left and this new file on the right. On the right one (new) look which all the new fields are added, find their section on the left (old) and paste them in there (make sure that they're properly spaced/indented).

**Don't replace the old files with the new ones as these aren't the whole config files.**

Even if it's that simple, there's few things to note:

`configs > config.yml`&#x20;

* `channels > ticket_category` field has been renamed to `tickets_category`, so with an **S**
* When you come to `plugins > tickets` section in the new file, you should just paste the new `tickets`  all over the old one, so you don't go line-by-line
* In the old config, you can remove whole `emojis > tickets` section, as in the new file they're not all in the same section but just under `emojis` section

`configs > embeds.yml`&#x20;

* When you're pasting sections, make sure that you remove the duplicates as there are some same sections in both files but they have different fields in them, so overwrite those in the old file with the ones from the new file
* When you're pasting sections, make sure that you remove the duplicates as there are some same sections in both files but they have different fields in them, so overwrite those in the old file with the ones from the new file
  * Those fields are `ticket` & `panel`

`configs > language.yml` \
There's nothing special in this file, so just copy the new fields into the corresponding sections in the old config.

* Only thing to note is that you can just overwrite the old `tickets` section with the new one, so you don't go line-by-line

`configs > commands.yml`&#x20;

There's nothing special about this file either, just copy all the code from the file and paste it into the one in Champion Ultra.

## Files Copy-Pasting

{% hint style="danger" %}
When doing this step, don't **delete the old folders**, but just **replace the files within.**
{% endhint %}

For the end we have the most easy part, copy-pasting of the whole files without changing anything within. So, it's simple, just replace the old file(s) with the new one(s).

The files that are part of this step are:

* `commands` folder
* `dashboard` folder
* `data/template.html` file
* `events/client/clientReady.js`
* `events/custom` folder
* all the files in `structures/database/models` folder
* `utils/askQuestions.js` file
* `utils/createTranscript.js` file
* **`utils/ticketCategory.js`** file

That's it! If you've done everything right you should have your Advanced Ticketing Plugin installed & ready for usage.

{% hint style="warning" %}
If you get stuck somewhere or you don't understand something, you can join Discord Support Server and we'll help you with the issue.
{% endhint %}
