How would i get an npc to trade an itm from a player and return another item for example how would i get the npc to use 100 metal frags and return 25 scrap to the player? i have tried a couple of diffrent versions of this and cant seem to ge tit to work. I have also tried to change the command to invtory.give and the arrangment to scrap 25. I know i could just set this up in a vending machine but i wanted to try something new.
{
"NpcTP": {
"1320692355": {
"NpcName": "<color=orange>Npc</color> : ",
"SpawnFile": null,
"Cooldown": 0,
"CanUse": true,
"useUI": false,
"Cost": 0.0,
"permission": "npctp.default",
"useItem": true,
"ItemShortName": "metal.fragments",
"ItemAmount": 100,
"UseCommand": true,
"CommandOnPlayer": true,
"Command": "inventory.give scrap 25",
"Arrangements": "",
"useMessage": false,
"MessageNpc": "none",
"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
}
}
}