玩家只需靠近他们即可自动拾取。
权限
该插件使用Oxide的权限系统。要分配权限,请使用oxide.grant <user or group> <name or steam id> <permission>。要删除权限,请使用oxide.revoke <user or group> <name or steam id> <permission>。
聊天命令
组态
可以AutoPickup.json在oxide/config目录下的文件中配置此插件的设置和选项。建议使用JSON编辑器或验证站点(例如jsonlint.com),以避免格式问题和语法错误。
本土化
默认消息在AutoPickup.json目录下的oxide/lang/en文件中。要增加对另一种语言的支持,请创建一个新的语言文件夹(例如de德语)(如果尚未创建),将默认语言文件复制到新文件夹中,然后自定义消息。
钩子
权限
该插件使用Oxide的权限系统。要分配权限,请使用oxide.grant <user or group> <name or steam id> <permission>。要删除权限,请使用oxide.revoke <user or group> <name or steam id> <permission>。
代码:
autopickup.use -允许玩家使用聊天命令并自动接听。
代码:
/ap -启用/禁用自动拾取
/ap <any word>-打开自动拾取用户界面。例如:“ / autopickup 1”或“ / autopickup aaa”
可以AutoPickup.json在oxide/config目录下的文件中配置此插件的设置和选项。建议使用JSON编辑器或验证站点(例如jsonlint.com),以避免格式问题和语法错误。
代码:
{
"Settings": {
"Auto pickup is enabled by default": true,
"Prevent pickup other player's backpack": false,
"Prevent pickup other player's corpse": false,
"Prevent pickup other player's plant entity": false
},
"Chat Settings": {
"Chat Command": "ap",
"Chat Prefix": "[AutoPickup]:",
"Chat Prefix Color": "#00FFFF",
"Chat SteamID Icon": 0
},
"Auto Pickup Settings": {
"PlantEntity": {
"Enabled": true,
"Check Radius": 0.5
},
"CollectibleEntity": {
"Enabled": true,
"Check Radius": 0.5
},
"MurdererCorpse": {
"Enabled": true,
"Check Radius": 0.5
},
"ScientistCorpse": {
"Enabled": true,
"Check Radius": 0.5
},
"PlayerCorpse": {
"Enabled": true,
"Check Radius": 0.5
},
"ItemDropBackpack": {///Backpack left by the corpse
"Enabled": true,
"Check Radius": 0.5
},
"ItemDrop": {///Backpack left by box
"Enabled": false,
"Check Radius": 0.5
},
"WorldItem": {///Discarded item
"Enabled": false,
"Check Radius": 0.5
},
"LootContainer": {
"Enabled": false,
"Check Radius": 0.5
}
},
"World Item Pickup Settings": {
"Auto Pickup Delay": 0.5,
"Check that player's inventory is full": true,
"Only pickup items that exist in player's inventory": false,
"Item Block List (Item shortname)": [],
"Allow Pickup Item Category": {
"Attire": true,
"Misc": true,
"Ammunition": true,
"Construction": true,
"Component": true,
"Items": true,
"Traps": true,
"Electrical": true,
"Fun": true,
"Food": true,
"Resources": true,
"Weapon": true,
"Medical": true,
"Tool": true
}
},
"Loot Container Pickup Settings": {
"loot-barrel-1": true,
"loot-barrel-2": true,
"trash-pile-1": true,
"crate_basic": true,
"crate_elite": true,
"crate_mine": true,
"crate_normal": true,
"crate_normal_2": true,
"crate_normal_2_food": true,
"crate_normal_2_medical": true,
"crate_tools": true,
"crate_underwater_advanced": true,
"crate_underwater_basic": true,
"dm ammo": true,
"dm c4": true,
"dm construction resources": true,
"dm construction tools": true,
"dm food": true,
"dm medical": true,
"dm res": true,
"dm tier1 lootbox": true,
"dm tier2 lootbox": true,
"dm tier3 lootbox": true,
"foodbox": true,
"loot_barrel_1": true,
"loot_barrel_2": true,
"loot_component_test": true,
"loot_trash": true,
"minecart": true,
"oil_barrel": true,
"codelockedhackablecrate": true,
"supply_drop": true,
"giftbox_loot": true,
"presentdrop": true,
"stocking_large_deployed": true,
"stocking_small_deployed": true,
"bradley_crate": true,
"heli_crate": true,
"visualshelvestest": true
},
"Collectible Entity Pickup Settings": {
"corn-collectable": true,
"hemp-collectable": true,
"mushroom-cluster-5": true,
"mushroom-cluster-6": true,
"potato-collectable": true,
"pumpkin-collectable": true,
"halloween-bone-collectable": true,
"halloween-metal-collectable": true,
"halloween-stone-collectable": true,
"halloween-sulfur-collectible": true,
"halloween-wood-collectable": true,
"metal-collectable": true,
"stone-collectable": true,
"sulfur-collectable": true,
"wood-collectable": true,
"diesel_collectable": true
},
"Plant Entity Pickup Settings": {
"corn.entity": true,
"hemp.entity": true,
"potato.entity": true,
"pumpkin.entity": true
}
}
默认消息在AutoPickup.json目录下的oxide/lang/en文件中。要增加对另一种语言的支持,请创建一个新的语言文件夹(例如de德语)(如果尚未创建),将默认语言文件复制到新文件夹中,然后自定义消息。
代码:
{
"NotAllowed": "You do not have permission to use this command",
"Enabled": "<color=#8ee700>Enabled</color>",
"Disabled": "<color=#ce422b>Disabled</color>",
"AutoPickupStatus": "Automatically pickup is now {0}",
"Title": "Auto Pickup UI",
"PlantEntity": "Auto Pickup Plant Entity",
"CollectibleEntity": "Auto Pickup Collectible Entity",
"MurdererCorpse": "Auto Pickup Murderer Corpse",
"ScientistCorpse": "Auto Pickup Scientist Corpse",
"PlayerCorpse": "Auto Pickup Player Corpse",
"ItemDropBackpack": "Auto Pickup Item Drop Backpack",
"ItemDrop": "Auto Pickup Item Drop",
"WorldItem": "Auto Pickup World Item",
"LootContainer": "Auto Pickup Loot Container"
}
代码:
private object OnAutoPickupEntity(BasePlayer player, BaseEntity entity)