On this page you will learn to create and use custom NPCs.
If you're a developer you can look at the NPC tag system to develop your own NPC for Ouranos, but if you're not and you want to create a merchant NPC, this page is for you.
Step 1 - Create the NPC file
First run the command :
/oconfig create npc <name>
This will create a new NPC file into the /plugins/Ouranos/NPC/ folder.
Step 2 - Tune your NPC
Change the values inside the NPC configuration file you just created. You can take inspiration from the Ouranos pre-made NPCs into the /plugins/Ouranos/NPC/Ouranos/ folder.
Step 3 - Add your NPC into a building
You can add your NPC into Ouranos or custom buildings (it can be either a city, village or structure). To do so, go into the building file you want to add your NPC, for example the bank.yml file located into the /plugins/Ouranos/cities/Ouranos/ folder.
Finally into the npc list, add your npc :
npcs:npc_1:ouranos:nonenpc_4:ouranos:CoinMasternpc_5:ouranos:ItemMasternpc_2:ouranos:<name># Replace <name> by the actual name of your NPCnpc_3:ouranos:nonenpc_8:ouranos:nonenpc_6:ouranos:nonenpc_7:ouranos:none
Every NPC made into the Ouranos plugin have the "ouranos" prefix. Only NPCs from other plugins have a different prefix