Jump to content

Talking Npc Vendors 1.3.0

$25.00
   (0 reviews)

1 Screenshot

  • 2,096
  • 39
  • 18.45 kB
 Share

Works with

About Talking Npc Vendors

TalkingNPC is a plugin that can be used to spawn a NPC that has chat dialog just like the NPC vendors at bandit or fishing village.
They can be used out of the box to spawn Copters, Modular Cars, Snowmobiles, Boats, And Helicopters.
But That's not it. You can create your own conversation files and make the conversation run commands, open vending machines and much more.
See the video below to see some of the creations that can be done.

Works With https://umod.org/plugins/custom-vending-setup For Creating Vending Machine NPC's

Works with: https://umod.org/plugins/custom-vending-setup For Editing the npc vending machine's

 

 

With all cs files installed this will work with minimal configuration out of the box to spawn Copters/ModularCars/Snowmobiles.

Once all plugins are installed you can add the default vendors for modularcars/copters.
To do modularcars you will need https://umod.org/plugins/spawn-modular-car from umod.

talkingnpc.admin - Needed for the chat commands.

<conversationFile> = default, modularcar, copter - conversationFile is the fileName in /oxide/data/TalkingNpc/Conversations/
<type> = minicopter,, modularcar, snowmobile
<true/false> = for placement at monument for respawn/map changes.

Modular Cars Vendor:

1. Spawn the vendor
/talking_npc vehicle modularcar <"Unique_Vendor_Name"> <false/true>

2. Create vehicle spawn points for modularcars
A message will popup explaining how to add the spawn points.

the /oxide/data/TalkingNpc/Addons/<"Unique_Vendor_Name">.json to set the car properties.

You can edit the UI messages in /oxide/data/TalkingNpc/Conversations/<"Unique_Vendor_Name">.json

****************************************************************

Copters Vendor:

1. Spawn the vendor
/talking_npc vehicle copter <"Unique_Vendor_Name"> <false/true>

2. Create vehicle spawn points for copters
A message will popup explaining how to add the spawn points.

the /oxide/data/TalkingNpc/Addons/<"Unique_Vendor_Name">.json to set the car properties.

You can edit the UI messages in /oxide/data/TalkingNpc/Conversations/<"Unique_Vendor_Name">.json

****************************************************************

About /talking_npc vehicle chat command:
<type> - "snowmobile", "copter", "modularcar"

Some info for custom Conversation Files:

$userID - Will insert players userID
$displayName - Will insert players display name
OpenVending <Vending Machine Configuration Files name> - Will open a vending machine
Giveitem <item id> <amount> <skinID> <item name> - Give Item

 

Player Command Examples

"Player Commands": [
          "chat.say \"/TheCommand arangements\""
        ],

 

Example Conversation file

{
  "0": {
    "Message": "Welcome to my shop $displayName. How can I help you?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I would like to know how you are doing.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 1,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },
      {
        "Message": "I am just saying hi $displayName.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 5,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "1": {
    "Message": "Im doing good how about you?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I am ok today.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 2,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },
      {
        "Message": "i dont know.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 3,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },
      {
        "Message": "Life stinks.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 4,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "2": {
    "Message": "That is a nice to hear?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I Will talk to you later",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 5,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "3": {
    "Message": "Sorry to hear that?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I guess i will talk to you later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 5,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "4": {
    "Message": "That to bad i hope you day gets better?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "Thank you i will see you later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 5,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "5": {
    "Message": "Let me know if there's anything I can do to help!",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": []
  },
  "6": {
    "Message": "Go get your ride before someone steals it and please stop by again.",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "See you later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "7": {
    "Message": "I am sorry you do not have enough scrap.",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I will come back later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  }
}

 


Razor's Collection

User Feedback

672.6k

Downloads

Total number of downloads.

3.7k

Customers

Total customers served.

49.7k

Files Sold

Total number of files sold.

898.8k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.