# Quests (missioner)

{% hint style="info" %}
Alle quests skal oprettes i mappen \`/quests\`

Det er muligt at lave sub-folders derinde for at organisere sig.
{% endhint %}

## Quest Typer:

* `BLOCK_BREAK`
  * Smadre bestemt blok et bestemt antal gange&#x20;

    ```yaml
    type: BLOCK_BREAK
    variable: STONE # Material
    required: 128 # Antal
    ```
* `BLOCK_PLACE`
* `CHAT`
  * Skriv bestemt besked i chatten

    ```yaml
    type: CHAT
    variable: Quests er et Awesome Plugin! # Besked
    ```
* `CONSUME`
* `PLAYER_FISH`
* `NPC_CLICK` *(kræver Citizens)*
  * Find / Klik på en NPC

    ```yaml
    type: NPC_CLICK
    variable: 59 # id'et på NPC'en
    ```
  * Aflever items til NPC

    ```yaml
    type: NPC_CLICK
    variable: 59 # id'et på NPC'en
    extra-variable: ROTTEN_FLESH # Material
    required: 64 # Antal
    ```
* `REGION_ENTER` *(kræver WorldGuard)*
  * *Gå ind i bestemt region:*

    ```yaml
    type: REGION_ENTER
    variable: mines # The Region
    ```
* Opret en ticket for at få tilføjet flere events!

{% code title="quests/blockbreak.yml" lineNumbers="true" %}

```yaml
id: BlockPlaceExample
type: BLOCK_PLACE
variable: GLASS
required: 32 # default til 1
cooldown: 10000 # I antal sekunder
reward:
  commands:
    - "eco give {player} 560"
gui:
  title: "Placer - Example"
  material: GLASS
  description: "Placer 32x Glass"
  rewards:
    - " &8  - &a$560"
```

{% endcode %}


---

# 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://docs.simonmaribo.dk/plugins/quests/quests-missioner.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.
