原创地址Zombie Rocks – 插件 – Codefling
关于Zombie Rocks
当在森林中奔跑寻找一些矿石节点并最终撞到岩石以获得一些有价值的资源时,可能会有僵尸睡在岩石下
特征 :
- 设置矿石节点耗尽后 [Rock Zombie] 生成的可配置几率(最后一击)
- 设置拾取矿石或木材生成后 [矿石/木头僵尸] 生成的可配置几率
- 设置砍伐树木后 [Tree Zombie] 生成的可配置几率
- 可配置的 NPC(生命值、伤害缩放、生成量等)
- 对工具包的支持。
- NPC 可以掉落背包(通过配置获得内部战利品档案)
- npc 只能在地表生成(不支持 tunnel/cave 节点)
- NPC 有 2 套入门服装,每次开箱即用时(或未找到分配的套件)都会更换武器
- 矿石/木头僵尸使用他们的石和树僵尸工具包
权限 :
- zombierocks.pickup : 分配给玩家/组以触发资源拾取小事件
- zombierocks.nodestone : 分配给玩家/组以触发石头挖矿小事件
- zombierocks.nodeiron : 分配给玩家/组以触发采铁小事件
- zombierocks.nodesulfur : 分配给玩家/组以触发硫磺挖矿小事件
- zombierocks.tree:分配给玩家/组以触发 tree cutting 迷你事件
取货项目 :
在拾取资源时,只能生成 1 个 npc
- 木
- 石头
- 铁
- 硫
命令 :
- /zrinfo:将插件信息和版本回复到聊天
配置 :
- 要使项目生成为蓝图,请在短名称后面添加 .bp(例如 ammo.pistol.bp)
- 从值 0 到 1 的概率是任何物品的生成几率
- 现在可以使用自定义命名 (> v1.2.4)
自定义项的示例,如 ExtendedRecycler 插件 recycler 项。
{ "probability": 0.6, "shortname": "box.repair.bench", "name": "Recycler", "skin": 1594245394, "amountMin": 1, "amount": 1 },
{ "Use Debug": true, "Only Trigger at Night Time": true, "Night start": 20, "Night end": 8, "Tree spawns": { "Can spawn from trees": true, "Spawn chance (1-100%)": 40.0 }, "Pickup spawns": { "Can spawn from resource pickups": true, "Spawn chance (1-100%)": 10.0 }, "Node spawns": { "Stone Nodes": { "Can spawn from stone nodes": true, "Spawn chance (1-100%)": 50.0 }, "Sulfur Nodes": { "Can spawn from sulfur nodes": true, "Spawn chance (1-100%)": 40.0 }, "Metal Nodes": { "Can spawn from metal nodes": true, "Spawn chance (1-100%)": 40.0 } }, "NPC Settings": { "Spawn Amount": 1, "Health": 250, "Max Roam Distance": 20, "Damage multiplier": 0.6, "Lifetime (minutes)": 10.0, "Use kit (clothing)": true, "Kit ID Rock Zombie": [ "RockZombie-01", "RockZombie-02", "RockZombie-03" ], "Kit ID Tree Zombie": [ "TreeZombie-01", "TreeZombie-02", "TreeZombie-03" ], "Show messages": true, "NPC drop a Backpack with loot": true, "Use Random Skins": true, "Spawn Min Amount Items": 2, "Spawn Max Amount Items": 6, "Loot Table": [ { "probability": 1.0, "shortname": "ammo.pistol", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "box.repair.bench", "name": "Recycler", "skin": 1594245394, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "ammo.pistol.fire", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.pistol.hv", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.explosive", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.hv", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.rifle.incendiary", "name": "", "skin": 0, "amountMin": 5, "amount": 5 }, { "probability": 1.0, "shortname": "ammo.shotgun", "name": "", "skin": 0, "amountMin": 8, "amount": 12 }, { "probability": 1.0, "shortname": "explosive.timed", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "explosives", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "pistol.m92", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "shotgun.spas12", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "pickaxe", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "hatchet", "name": "", "skin": 0, "amountMin": 1, "amount": 1 }, { "probability": 1.0, "shortname": "can.beans", "name": "", "skin": 0, "amountMin": 1, "amount": 3 }, { "probability": 1.0, "shortname": "can.tuna", "name": "", "skin": 0, "amountMin": 1, "amount": 3 }, { "probability": 1.0, "shortname": "black.raspberries", "name": "", "skin": 0, "amountMin": 3, "amount": 5 } ] } }
Localisation :
English language file included to use a different language just make a new file in the language folder.
{ "Zombie_Spawn": "Braaains", "Zombie_Dropped_Backpack": "{npc} dropped his old Backpack !", "Prefix": "[<color=green>Rock Zombie</color>] : ", "infoRock": "The diffrent stone/sulfur/metal rocks can hide a Zombie that can ressurect from their rocky grave.", "infoTree": "When cutting down Trees a Zombie can ressurect from under their roots.", "infoPickup": "When picking up resources a Zombie can sneak up behind you.", "Nodes": "<<color=orange>Nodes</color>> ", "Trees": "<<color=green>Trees</color>> ", "Pickups": "<<color=orange>Pickups</color>> " }
API 接口 :
bool IsZombieRocksNpc(global::HumanNPC npc)
示例调用:
object OnEntityDeath(global::HumanNPC npc, HitInfo info) { if (npc == null) return null; if (ZombieRocks.Call<bool>("IsZombieRocksNpc", npc)) { Puts($"Target : {npc} net.ID : [{npc.net.ID}] Event : ZombieRocks NPC"); } return null; }
![图片[3]-僵尸摇滚 1.4.0-PCI1](https://codefling.com/uploads/monthly_2021_10/spawn.png.5d95c9ad19d20164a15204070342d230.png)
![图片[4]-僵尸摇滚 1.4.0-PCI1](https://codefling.com/uploads/monthly_2021_10/2127363597_chatmsgs.png.d361cc92674be52e6783a66e6d4908a4.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END

















暂无评论内容