NPC take money from Economics
How do I get the NPC to give an item in exchange for money from Economics?
in config
"useEconomics": true,
"useItem": false,
"useRewards": false


add command using /npctp <npcID> command <refrence name>
then edit the npc data.
"UseCommand": true,​

      "Commands": {
        "say": {
          "Command": "say",
          "Arrangements": "this is a test",
          "OnPlayer": false
        },
        "say2": {
          "Command": "inventroy.give",
          "Arrangements": "scrap 25",
          "OnPlayer": true
        }
      },

Thanks for the fast reply. I did have the config set up correctly, but I'm not sure how to set the command up properly to withdraw money



Merged post

Here's what I have. The withdraw command from Economics didn't work so I didn't include that.
{
  "NpcTP": {
    "1004422774": {
      "NpcName": "<color=#ffff00>Jen's 'Shrooms</color> : ",
      "SpawnFile": null,
      "Cooldown": 0,
      "CanUse": true,
      "useUI": true,
      "Cost": 150.0,
      "permission": "npctp.default",
      "useItem": false,
      "UseCommand": true,
      "useMessage": true,
      "MessageNpc": "Hello.",
      "EnableDead": false,
      "DeadOnPlayer": false,
      "DeadCmd": "jail.send",
      "DeadArgs": "5",
      "OpenDoor": false,
      "DoorLocX": 0.0,
      "DoorLocY": 0.0,
      "DoorLocZ": 0.0,
      "DoorId": 0,
      "NoPermKill": false,
      "KillSleep": false,
      "Commands": {
        "giveitem": {
          "Command": "inventory.giveto",
          "Arrangements": "mushroom 5",
          "OnPlayer": true
        }
      }
    }
  }
}​

It gives me the 5 mushrooms and the NPC tells me it took $150, but the balance remains the same.