NPCs

All about the NPCs that MMOHorses creates with LibsDisguises

To start, talking on its internal way to work, they can't be declared as NPCs, but the idea is to make something similar, but fixing some issues that Citizens contains like the tab issue. For this, I created this feature using LibsDisguises, thanks to the suggestion of a customer.

To create this NPCs, you just need two things: LibsDisguises installed on your server and custom disguises. Custom disguises can be created after creating the NPCs.

First, you have to use the /Horse createnpc command, that requires from three values to be specified. The first one is the name. It can be as long as you want and with color, as long as you set two additional words on the end of the command. The second value must be the name that has your custom disguise. This name must be one word. The third value must be the type of action this NPC will do. This actions will be displayed on the screen if you put a wrong type. You can actually select from three actions: OPEN_LIST, OPEN_SHOP, OPEN_CRATES.

Did you made a mistake? Don't worry! Just shift+right-click the entity and you'll get a message on the chat, with a button you can use to confirm that you wish to remove this NPC.

Last updated