Configure NPC to grant door access and charge scrap?
I am trying to get the npc to grant aaccess to a door and charge 500 scrap this is what i have.  i know it has to be something minor that is not letteing it work
{
  "NpcTP": {
    "125769323": {
      "NpcName": "<color=#ffff00>Npc</color> : ",
      "SpawnFile": null,
      "Cooldown": 86400,
      "CanUse": true,
      "useUI": false,
      "Cost": 500,
      "permission": "cardreaderdoors.crook1",
      "useItem": true,
      "UseCommand": true,
      "useMessage": true,
      "MessageNpc": "Thanks for the scrap, now I can go gambling tonight. I ahve granted you permission to enter Crook's Cave",
      "EnableDead": false,
      "DeadOnPlayer": false,
      "DeadCmd": null,
      "DeadArgs": "5",
      "OpenDoor": false,
      "DoorLocX": 0.0,
      "DoorLocY": 0.0,
      "DoorLocZ": 0.0,
      "DoorId": 0,
      "NoPermKill": false,
      "KillSleep": false,
      "Commands": {
        o.grant
      },
      "Items": {
        "scrap"
      }
    }
  }
}

Door info

{
  "pEntity": {
    "crook": {
      "SpawnEntity": 0,
      "doorID": 2590050,
      "roomName": "crook",
      "permission": "cardreaderdoors.crook1",
      "reader": {
        "2599257": {}
      },
      "access": []
    }
  }
}​


any help would be appreciated
For starts "Commands": { o.grant ? whats that its all wrong? remove that ... also did you read the info on the page to set npc to the door? set
UseCommand": false

Merged post

walk up to the door and type /npctp_door

Merged post

also remove the items?should be /npctp item to creat the item.
sorry that i am having difficulties with this. where would I put the oxide. grant at? the older version from a few months ago was much more easier to understand.  All I want to do is have the npc take 500 scrap from the player and in return the npc will grant permission to use the card reader above. i don't want him to actually open the door just grant permission to use the card reader.
/npctp command oxide.grant cardreaderdoors.crook1
 
/npctp 125769323 item scrap
      "Items": {
        "scrap": {
          "ItemShortName": "scrap",
          "Amount": 500
        }
      "Commands": {
        "say": {
          "Command": "o.grant user",
          "Arrangements": "put the pern here",
          "OnPlayer": true
        }

the main plugin page has example posted.
I really am not trying to be a pain in the backside. Just trying to get this to work.  when you click on the npc he say that he has granted the permission but he is not actually granting it. How do i get him to run oxide commands? is it even possiable?  He does not take the scrap and does not grant the permission?  I am using permission manager if that matters?
{
  "NpcTP": {
    "125769323": {
      "NpcName": "<color=#ffff00>Npc</color> : ",
      "SpawnFile": null,
      "Cooldown": 86400,
      "CanUse": true,
      "useUI": false,
      "Cost": 0.0,
      "permission": "npctp.default",
      "useItem": true,
      "UseCommand": false,
      "useMessage": true,
      "MessageNpc": "Thanks for the scrap, now I can go gambling tonight. I have granted you permission to enter Crook's Cave",
      "EnableDead": false,
      "DeadOnPlayer": false,
      "DeadCmd": null,
      "DeadArgs": "5",
      "OpenDoor": false,
      "DoorLocX": 0.0,
      "DoorLocY": 0.0,
      "DoorLocZ": 0.0,
      "DoorId": 0,
      "NoPermKill": false,
      "KillSleep": false,
      "Commands": {
        "say": {
          "Command": "oxide.grant user",
          "Arrangements": "cardreaderdoors.test2",
          "OnPlayer": true
        },
        "Items": {
          "scrap": {
            "ItemShortName": "scrap",
            "Amount": 500
          }
        }
      }
    }
  }
}​


I can manually add the permission in the panel or thru the perms manager and the door works fine, so the door is setup right.


Merged post

It looks like you tried to manualy add things to the datafile and not use the commands to creat them as your datafile is corrupt.. DO NOT try to manualy add things follow the instructions on the main page and edit only what is in the datafile not add things in thats where the problem started... run the commands posted on the main page.. if need help adding that ask we can help but if you do not follow the instructions there is not mutch help.....

use this..

"NpcTP": {
    "125769323": {
      "NpcName": "<color=#ffff00>Npc</color> : ",
      "SpawnFile": null,
      "Cooldown": 0,
      "CanUse": true,
      "useUI": false,
      "Cost": 0.0,
      "permission": "npctp.default",
      "useItem": true,
      "UseCommand": true,
      "useMessage": true,
      "MessageNpc": "Thanks for the scrap, now I can go gambling tonight. I have granted you permission to enter Crook's Cave",
      "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": {
        "grant": {
          "Command": "oxide.grant user",
          "Arrangements": "cardreaderdoors.test2",
          "OnPlayer": true
        }
      },
      "Items": {
        "scrap": {
          "ItemShortName": "scrap",
          "Amount": 500
        }
      }
    }
  }​
I really appreciate all the help but it just not going to work.   I have copied the text from above and it still does not work
Maybe You could just tell me the steps to do this with chat commands like say for npc # 1234567 to make a card reader door npc.  just when you have time no hurry. like
step one,
step 2
ets
Erase your data file as it probly is corrupt  reload the plugin..
/npctp_add 1234567
/npctp 1234567 command GiveThemPerms
/npctp 1234567 item scrap

Once that is done edit the data file
"CanUse": true,
"useItem": true,
"UseCommand": true,

"Command": "oxide.grant user",
"Arrangements": "cardreaderdoors.test2",
"OnPlayer": true

"ItemShortName": "scrap",
"Amount": 500
​


Merged post

in the command example only change the 1234567 to your npcID