关于 ItemPerks

 

 

Item Perks 是一个插件,可通过 50 多种不同类型的特权来增强日常武器、工具和盔甲。

带有 Perk 的物品可以通过多种方式获得,包括:

  • 在你早上的废料农场里,在板条箱或桶里随机找到它们。
  • 随机制作增强版的装备,同时从基地为菜鸟提供屋顶营地。
  • 回收增强型设备并找到卡在回收商牙齿上的增强型套件。
  • 使用可以通过 GUIShop 等种子插件交易者运行的控制台或聊天命令。

 

在实施方面,该插件为服务器所有者提供了大量控制权。您可以:

  • 启用/禁用 Feature,或修改它们在应用于装备时滚动的最小值和最大值。
  • 将项目列入黑名单或白名单,以便它们将被排除或包含(根据您选择的列表)。
  • 调整每个特性的权重,使其或多或少有可能在装备上看到,或者调整物品可能具有的特性的几率。
  • 完全调整或禁用找到物品掉落的几率,或启用增强套件系统以便玩家可以回收装备。
  • 还有更多内容(观看下面视频的配置部分以查看完整范围)。

 

 

 

该插件包含超过 50 项福利。以下列表将简要描述每个 Perk 的作用。

Name: Prospector
Description: This perk increases your mining yield when mining stone, metal and sulfur nodes.

Name: Lumberjack
Description: This perk increases your woodcutting yield when chopping living or dead trees.

Name: Butcher
Description: This perk increases the resources gained from skinning humans and animals.

Name: Horticulture
Description: This perk increases the amount of resources gained when harvesting grown plants.

Name: Forager
Description: This perk increases the amount of resources gained when picking up map generated collectibles.

Name: Angler
Description: This perk increases the amount of fish you receive upon a successful catch.

Name: BeastBane
Description: This perk increases the damage dealt to animals.

Name: ScientistBane
Description: This perk increases the damage dealt to scientists.

Name: FlakJacket
Description: This perk reduces the damage received from explosions.

Name: Elemental
Description: This perk reduces damage from received from cold and heat sources.

Name: Scavenger
Description: This perk provides you with a chance to find additional scrap from crates and barrels.

Name: Manufacture
Description: This perk increases the speed of your crafting.

Name: Durable
Description: This peark reduces the durability damage of all equipped items.

Name: BeastWard
Description: This perk reduces the damage received from animals.

Name: ScientistWard
Description: This perk reduces the damage received from scientists.

Name: Builder
Description: This perk provides you with a chance for your building upgrades to be free.

Name: Thrifty
Description: This perk provides you with a chance for your crafting components to be refunded upon a successful craft.

Name: Fabricate
Description: This perk provides you with a chance to duplicate an item upon a successful craft.

Name: Pharmaceutical
Description: This perk increases the amount of healing received from all sources.

Name: MeleeWard
Description: This perk reduces the damage received from melee weapons.

Name: Academic
Description: This perk provides you with a chance to receive a scrap refund when researching an item at the research bench.

Name: FallDamage
Description: This perk reduces the impact damage received from falling.

Name: Lead
Description: This perk reduces the damage from radiation.

Name: Smasher
Description: This perk will provide you with a chance to instantly destroy barrels with any amount of damage.

Name: Environmentalist
Description: This perk will increase the speed of recyclers that you activate.

Name: Smelter
Description: This perk will increase the smelting speed of furnaces you activate.

Name: Paramedic
Description: This perk provides players that you revive with additional health.

Name: Prepper
Description: This perk provides you with a chance to not consume food when eating.

Name: Regeneration
Description: This perk will passively regenerate you.

Name: SharkWard
Description: This perk will reduce the amount of damage received from sharks.

Name: SharkBane
Description: This perk will increase the amount of damage dealt to sharks.

Name: Deforest
Description: This perk provides you with a chance to cut down nearby trees when successfully cutting a tree down.

Name: BlastMine
Description: This perk provides you with a chance to mine out nearby nodes when successfully mining out a node.

Name: Tanner
Description: This perk provides you with a chance to skin nearby corpses when successfully skinning out a corpse.

Name: Vampiric
Description: This perk will heal you for a percentage of the damage dealt to certain enemies.

Name: Reinforced
Description: This perk will reduce the the amount of damage that your vehicles receive when mounted.

Name: ComponentLuck
Description: This perk will provide you with a chance to receive additional components when looting barrels and crates.

Name: ElectronicsLuck
Description: This perk will provide you with a chance to receive additional electronics when looting barrels and crates.

Name: UncannyDodge
Description: This perk provides you with a chance to dodge incoming damage, reducing it to 0.

Name: LineStrength
Description: This perk increases the tensile strength of your fishing line.

Name: HealShare
Description: This perk will share healing effects with nearby players.

Name: Attractive
Description: This perk will provide you with a chance to automatically pick up components when destroying barrels.

Name: WoodcuttingLuck
Description: This perk provides you with a chance to find a random item when you cut down a tree.

Name: MiningLuck
Description: This perk provides you with a chance to find a random item when you mine out a node.

Name: SkinningLuck
Description: This perk provides you with a chance to find a random item when you skin out a corpse.

Name: FishingLuck
Description: This perk provides you with a chance to find a random item when you catch a fish.

Name: Sated
Description: This perk will increase the amount of calories and hydration you receive from food and water sources.

Name: IronStomach
Description: This perk provides you with a chance to negate negative effects when consuming food.

Name: TreePlanter
Description: This perk will provide a chance for a tree to instantly regrow when cut down.

Name: RockCycler
Description: This perk will provide a chance for a node to instantly respawn when mined out.

Name: BradleyDamage
Description: This perk perk increases the damage dealt to Bradley Tanks.

Name: HeliDamage
Description: This perk perk increases the damage dealt to Patrol Helicopters.

 

3SsKzA7.png

 

命令: ipgive
类型: console/chat
参数: <目标 ID/名称> <可选: 短名称> <可选: perks>
描述: 为目标玩家提供增强物品。如果指定了 shortname,它将基于该项进行增强。如果指定了 perks,则只会将这些 perks 添加到物品中。

命令: ipgivekit
类型: console/chat
参数: <target ID/名称> <perk>
描述: 为目标提供增强工具包。

 

B6IViFd.png

itemperks.use - Required to receive any benefit from enhanced items.
itemperks.loot - Required to loot enhanced items from crates and barrels.
itemperks.craft - Required for a chance to received enhanced versions of crafted gear.
itemperks.admin - Required to use admin commands.
itemperks.enhance - Required to add enhancement kits to items via the workbench.
itemperks.recycle - Required to receive enhancement kits from recycling enhanced items.

 

VZ2SvMJ.png

IPAPI_CreateItem – 使用馈送到方法中的详细信息创建并返回增强项。如果 shortname 留空,它将随机选择一个有效项目。如果 api_perks 为 null,它将随机选择并添加它们。
退货项目

        [HookMethod("IPAPI_CreateItem")]
        public object IPAPI_CreateItem(string shortname = null, ulong skin = 0, Dictionary<string, float> api_perks = null)
        {
            List<KeyValuePair<Perk, float>> perks = Pool.GetList<KeyValuePair<Perk, float>>();
            foreach (var perk in api_perks)
            {
                Perk _perk;
                if (parsedEnums.TryGetValue(perk.Key, out _perk)) perks.Add(new KeyValuePair<Perk, float>(_perk, perk.Value));
            }
            var result = CreateItem(shortname, skin, perks);

            Pool.FreeList(ref perks);
          // Returns an Item class
            return result;
        }

用法示例:

        [ChatCommand("testipapi")]
        void TestIPAPI(BasePlayer player)
        {
            Dictionary<string, float> perks = new Dictionary<string, float>()
            {
                ["Prospector"] = 1f,
                ["Lumberjack"] = 1f,
                ["Butcher"] = 1f,
                ["Horticulture"] = 0.5f
            };

            var item = (Item)ItemPerks.Call("IPAPI_CreateItem", "hammer.salvaged", (ulong)2830083288, perks);

            if (item == null)
            {
                Puts("Failed");
                return;
            }

            item.name = "tool of the trade";

            player.GiveItem(item);
        }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。