Jump to content

Can you please assist me with using with an example.

Closed 1.3.1

Can you please assist me with using with an example of how to give a player an item that spawns the bot for them when used. 

pnpc.item {STEAM_ID} {skin_id} - gives the player an item to install the bot

 

 

Share this comment


Link to comment

To give yourself an item, you need to have at least one configured item in the config

  "Bot install by item": [
    {
      "Item name": "PersonalNPC",
      "Item shortname": "furnace",
      "Item skin": 2741314889,
      "Bot info": {
        "Bot spawn delay": 300.0,
        "The name of the bot to be selected through the command when spawning": "bot1",
        "Bot name": "Personal bot of player %OWNER_NAME%",
        "Bot appearance (0 - random)": 0,
        "Maximum health": 150.0,
        "Bot speed (slowest, slow, normal, fast)": "normal",
        "Enable infinite ammo for the bot?": true,
        "Enable display of the bot on the map? (frankenstein icon)": true,
        "Start kit": [
          {
            "Item name": "",
            "Item shortname": "shoes.boots",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "pants",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "hoodie",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "mask.bandana",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "hat.boonie",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          },
          {
            "Item name": "",
            "Item shortname": "sunglasses",
            "Item skin": 0,
            "Item amount": 1,
            "In which container to place? (belt, main, wear)": "wear"
          }
        ],
        "Functions setup": {
          "Can a bot loot crates?": true,
          "Can the bot mine trees and stones?": true,
          "Can the bot pick up resources? (wood, sulfur and metal ore, stones)": true,
          "Should the bot protect the owner?": true,
          "Should the bot defend itself?": true,
          "Can the bot travel by car/copter and other vehicles?": true,
          "Can the bot pick up dropped items?": true,
          "Recover the owner from a wounded state": {
            "Can the bot recover the owner if he is in a wounded state?": true,
            "Recover time": 6.0
          },
          "Can the bot attack other people's buildings?": true,
          "Can a bot attack its owner's buildings?": false,
          "Can the bot collect resources within a radius of 50 meters? (/pnpc auto-pickup)": true,
          "Can the bot farm resources within a radius of 50 meters? (/pnpc auto-farm)": true
        },
        "Gather setup": {
          "Shortname of items that can harvest trees": [
            "hatchet",
            "chainsaw",
            "hammer.salvaged",
            "stonehatchet",
            "axe.salvaged"
          ],
          "Shortname of items that can mine stones and ore": [
            "pickaxe",
            "stone.pickaxe",
            "hammer.salvaged",
            "jackhammer",
            "icepick.salvaged"
          ],
          "Setting up mining rates": {
            "stones": 2.0,
            "wood": 5.0
          }
        },
        "Damage and interactions setup": {
          "Bot damage rate": 2.0,
          "Bot recive damage rate": 0.5,
          "Can players damage the bot?": true,
          "Can the bot damage players?": true,
          "Can turrets target and kill a bot? (all turrets will not be able to damage the bot)": false,
          "Prevent bot owner turrets from aiming and killing the bot? (bot owner's turrets will not be able to damage the bot)": true,
          "Blacklist of objects that the bot will ignore when owner selecting a target (short prefab name)": [
            "barricade.sandbags"
          ]
        },
        "Black list of items that cannot be put into the inventory of the bot": [
          "rocket.launcher"
        ]
      }
    }
  ],

This is an item from the standard configuration.
To issue it, you need to enter the command pnpc.item STEAM_ID 2741314889

Share this comment


Link to comment
433.7k

Downloads

Total number of downloads.

2.3k

Customers

Total customers served.

32k

Files Sold

Total number of files sold.

519.5k

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.