NpcTp
depends on
- Human NPC
- Path Finding
works with
- Economics
- Server Rewards
- Spawns Database
Features
- Create NPCs that will teleport players
- Allow NPCs to run commands for a player
- Allow NPCs to run commands on death from player
- Allow NPCs to open doors
Permissions
This plugin uses Oxide's permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
- npctp.admin -- Allows players to use the /npctp_add chat command
- npctp.default -- Allows players to interfact with created NPCs
Permission for each NPC can be set in the data/NpcTp/NpcTP_Data.json file.
Chat Commands
- /npctp_add <npcID> <Optional spawnfile name>
If you set spawnfile to name random it will tp to a random spot on the map with out needing to create a spawnfile.
or for command npc use
- /npctp_add <npcID>
add the npc to a door to open
- /npctp_door <npcID>
To add a command for the npc to run
- /npctp <npcID> command <refrence name>
To add a item on use for the npc to useItem
- /npctp <npcID> item <Item shortname>
Edit them in data/NpcTp/NpcTP_Data.json for more options or use the /npctp chat command.
UI to confirm if they want to pay or not.
Configuration
The settings and options for this plugin can be configured in the Npctp.json file under the oxide/config directory. The use of a JSON editor or validation site such as jsonlint.com is recommended to avoid formatting issues and syntax errors.
Config
{
"KillNoPerms": {
"NpcFollowUntellDead": false,
"OnFireDamage": 10,
"OnFireTime": 10,
"SetOnFire": false,
"UseGunToKill": true
},
"KillSleepPlayer": {
"SleepKillDamage": 10
},
"SETTINGS": {
"AutoCloseDoors": true,
"AutoCloseTime": 15,
"DoorOpenMessage": true,
"useEconomics": false,
"useRewards": false
}
}Stored Data
This plugin stores data in the data/NpcTp/NpcTP_Data.json file to keep track of NPCs created. Deleting this data file would remove all NPCs created with the plugin.
Example
Copy
{
"NpcTP": {
"1360609784": {
"NpcName": "<color=#ffff00>Npc</color> : ",
"SpawnFile": null,
"Cooldown": 0,
"CanUse": true,
"useUI": false,
"Cost": 0.0,
"permission": "npctp.default",
"useItem": true,
"UseCommand": true,
"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,
"Commands": {
"say": {
"Command": "say",
"Arrangements": "this is a test",
"OnPlayer": false
},
"say2": {
"Command": "inventroy.give",
"Arrangements": "scrap 25",
"OnPlayer": true
}
},
"Items": {
"metal": {
"ItemShortName": "metal.fragments",
"Amount": 100
},
"stones": {
"ItemShortName": "stones",
"Amount": 10
}
}
}
}Npctp.json
{
"KillNoPerms": {
"NpcFollowUntellDead": false,
"OnFireDamage": 10,
"OnFireTime": 10,
"SetOnFire": false,
"UseGunToKill": true
},
"KillSleepPlayer": {
"SleepKillDamage": 10
},
"SETTINGS": {
"AutoCloseDoors": true,
"AutoCloseTime": 15,
"DoorOpenMessage": true,
"useEconomics": false,
"useRewards": false
}
}
Command your Rust server. Live WebRCON console, performance and player monitoring, quick actions, groups and permissions, and plugin management.
Visit site ↗