1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script NPCs 1.0

Customize your Citizen NPCs with Messages, Commands, and Cooldowns!

  1. iCodeDreams
    Contributors:
    iCodeDreams
    Supported Minecraft Versions:
    • 1.15
    [​IMG]

    Welcome to the BEST NPC Script
    Created with the mindset for full customization with a single file startup!

    Have you ever wanted to customize your NPCs in skript but don't know where to start? We know the struggle it can be so we created an easy to use skript to allow you to customize NPCs with messages, commands, and cooldowns!

    [​IMG]

    [​IMG]
    [​IMG]
    [​IMG]

    [​IMG]
    Code (Text):
    1. {
    2.     "Prefix": "&eNPC&6> &7",
    3.     "Version": "1.0",
    4.     "ServerID": "00000000000000000000",
    5.     "AdminID": "00000000000000000000",
    6.     "Debug": false,
    7.     "NPC Message Format": "[CHAT COLOR]&l[NPC NAME]> &r[MESSAGE]",
    8.     "Message Delay": 1.0,
    9.     "Messages":{
    10.         "Reload": "&aReloaded NPCS!",
    11.         "Debug Alert": "&aFile Extension: &2plugins/iCodeDevelopment/NPC/NPC-Data/npc_[NPC NAME]&2.json"
    12.     }
    13. }
    Easily Setup and Configure your Lobby in the config.json that is automatically generated in plugins/iCodeDevelopment/Lobby/config.json!

    • Easily Set NPC Chat Format
    • Customize Messages
    • Set Message Delays
    • Set Commands per NPC
    • Set Messages per NPC
    • Set Custom Names per NPC
    • Set Chat Colors per NPC
    [​IMG]

    /npcsk [Reload / Info]
    Reloads the NPC System, View your Current Version through in-game commands!
    Permission Node: command.npcsk


    [​IMG]

    Learning the Folder Setup
    Code (Text):
    1. Navigate to the plugins/iCodeDevelopment/NPCS/ Directory on your Server
    2.  
    3.  
    4. 1) Within the NPCS Folder you will find the Config.json file that controls the whole skript along with a directory named `NPCS-DATA`
    5. 2) Inside the NPC-Data Folder you will create a `npc-name.json` File
    6. 3) Copy and Paste the Example NPC File into your new NPC File!
    7. 4) Customize it to your liking!

    Learning NPC Files
    Example NPC File:
    Code (Text):
    1. {
    2.     "Name": "ExampleNPC",
    3.     "ChatColor": "&c",
    4.     "Messages": [
    5.          "Hey &c[PLAYER]&r, I hope you have a fun time!!!"
    6.     ],
    7.     "Commands": [
    8.          "say Hey!"
    9.     ]
    10. }
    NPC File Term Information:
    (Descriptions of the Inputs used in the JSON File System)

    Code (Text):
    1. "Name" specifies the Name that the NPC will use in chat.
    2. "ChatColor" specifies teh chat color replacement in your Message Format set in Config
    3. "Messages" is a JSON Stage in which you are able to specify unlimited amounts of messages that will be sent to the Player
    4. "Commands" is a JSON Stage in which you are able to specify unlimited amounts of commands beneath this stage

    NPC File Placeholders:
    Code (Text):
    1. [PLAYER] - Replaced with Player's Name

    [​IMG]
    1. Download the npcconfig.sk File from this Post
    2. Install the Dependencies by downloading them Here
    3. Restart your Server

    [​IMG]

    Want to see a server running the NPC Script?
    Check out PLAY.POPULARMMOS.NET!

    [​IMG]

    Created by: iCode Development

    [​IMG]

    Follow me on Twitter @iCodeDreamsMC
    Subscribe to me on YouTube @iCodeDreams
    Join my Discord by clicking here!


    [​IMG]

    [​IMG]

    Join the Discord for the Fastest Support!
    [/COLOR]
    C_Corp2002 likes this.