> For the complete documentation index, see [llms.txt](https://wiki.mypet-plugin.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.mypet-plugin.de/hooks/npc.md).

# Citizens NPC

A simple addon for *MyPet* that adds a trait to Citizens that allows pet-owners to store their pets.

Every *WorldGroup* has it's own storage so you can not transfer pets between *WorldGroup*s.

The Citizens **trait**s are called:

* `mypet-storage`  ->  MyPet Storage
* `mypet-wallet`  ->  Economy addon for the `mypet-storage` trait
* `mypet-shop`  ->  Pet shop

## Pictures

<img src="/files/-LXxfUU0DlrMa2Z25LPU" alt="" data-size="original"> <img src="/files/-LXxfX3_6-hh2HMTTR9l" alt="" data-size="original">&#x20;

## Commands

For all NPC commands you need to select a Citizens NPC before!

* `/petadmin npc wallet [`**`Private`**`/`**`Owner`**`/`**`Bank`**`/`**`None`**`]`
  * sets the account where the money will be transfered to
    * Owner and Bank need a name as a 2nd parameter
* `/petadmin npc shop <shop name>`
  * set the shop that will be opened by the selected NPC

## Permissions

The `MyPet.petstorage.limit.<limit>` permission is shared with by `/petstore` command and the **storage/shop trait**.

```
 - MyPet.npc.storage
 - MyPet.npc.shop

 - MyPet.petstorage.limit.<limit>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wiki.mypet-plugin.de/hooks/npc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
