Jump to content

Problem to give items

Closed 1.4.5

zoidberg

Posted (edited)

I cant get sell items to work proper, I used give.items and also spawn.item in conversation file however so does the talking npc take the scrap but I wont get the item.

What command shall I used to sell/spawn an item in the inventory for the player, lets say bear meat.

Edited by zoidberg
Wrong
Razor

Posted

3 hours ago, zoidberg said:

I cant get sell items to work proper, I used give.items and also spawn.item in conversation file however so does the talking npc take the scrap but I wont get the item.

What command shall I used to sell/spawn an item in the inventory for the player, lets say bear meat.

in recon what command do you use to give a player an item?

zoidberg

Posted (edited)

4 hours ago, Razor said:

in recon what command do you use to give a player an item?

"Player Commands": [
          "talking_npc inventory.give $player.id apple 5 $npcName"

give are for rcon and giveto for webrcon, I tried both but without any success.
I can give myself direct from rconweb using inventory.giveto MYNAME apple 5 but not from talkingNpc.

 

 

"2": {
    "Message": "Apple, coming up.",
    "Message Display Time (seconds) - Only used if there are no responses": 2,
    "Responses": [
      {
        "Message": "Here is 100 scrap.",
        "Needs Permission (null = No)": null,
        "Player Commands": [
          "talking_npc inventory.give $player.id apple 5 $npcName"
        ],
        "Server Commands": [],
        "Next Message (null = Close UI)": 6,
        "Price": 100,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": 7,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },

Edited by zoidberg
wrong
Razor

Posted

talking_npc inventory.give $player.id apple 5 $npcName is not a counsel command  try   

inventory.giveto $userID apple 1

 

zoidberg

Posted

9 hours ago, Razor said:

talking_npc inventory.give $player.id apple 5 $npcName is not a counsel command  try   

inventory.giveto $userID apple 1

 

it work 🙂

thanks alot

  • Like 1
Razor

Posted

Changed Status from Pending to Closed

1.9m

Downloads

Total number of downloads.

9k

Customers

Total customers served.

132.5k

Files Sold

Total number of files sold.

2.8m

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.