机器人清除事件 1.2.8

机器人清除事件 1.2.8

机器人清除事件 1.2.8-PCI1
机器人清除事件 1.2.8
此内容为付费资源,请付费后查看
10积分
付费资源

原创地址机器人清除事件 – 插件 – Codefling

关于 Bot Purge Event

支持经济和服务器奖励

如果需要,您可以同时使用 or 和两者,也可以同时设置为 false。

活动

挑战您的玩家,让他们在活动期间争夺最多的 NPC/机器人击杀数。

得分最高的玩家将获得战利品和吹嘘的权利。

特征

爆头 “Crunch” 让您的玩家知道是时候干掉一些机器人了。

排行榜跟踪器,计算您的顶级玩家的击杀数,并倒计时。

(击杀计数器位于指南针的右侧。

实施 Tie breaker 以随机决定获胜者,延迟 Dramatics 😉

最后,获胜者将获得您在表格中指定的任何战利品。(配置中的 Skinning 和 Custom names)

现在,您可以奖励他们 Economics 余额或 Server Rewards Points。

获胜者现在将通过 Discord 记录下来,并说明这是平局还是无争议的胜利。

命令

/purge – 手动启动事件

/PurgeEnd – 手动结束

这些命令可能会因您在 config 中设置的内容而异。

Start 和 end 可以从 Rcon 执行

 

HUD 用户

 

BOTPURGEEVENTICON.png.70520890aa6bcb230cf84f84ff584526.png

 

HUD 配置添加

您的颜色和 Icon 口味可能不同。

随意更改它。

,
    {
      "Hook OnEventStart": "OnBotPurgeEventStart",
      "Hook OnEventStop": "OnBotPurgeEventEnd",
      "Name": "BotPurgeEvent",
      "Active color": "#f02020",
      "Icon": "https://cdn.discordapp.com/attachments/1131387423838961747/1149341840391278642/BOTPURGEEVENTICON.png",
      "Color": "#A020F0",
      "Enable": true
    }

 

HUD .cs 文件自定义事件添加

 

            private void OnBotPurgeEventStart() => OnEventTouch(System.Reflection.MethodBase.GetCurrentMethod().Name);
             
            private void OnBotPurgeEventEnd() => OnEventTouch(System.Reflection.MethodBase.GetCurrentMethod().Name);

 

运行命令

 

使用 {id} 定位获胜的玩家。

 

Config ex.

{
  "Leaderboard Options": {
    "Enable Leaderboard UI?": true,
    "Leaderboard UI Anchor Min": "0.5 1",
    "Leaderboard UI Anchor Max": "0.5 1",
    "Leaderboard UI Offset Min": "250 -150",
    "Leaderboard UI Offset Max": "450 0",
    "Leaderboard UI Font": "permanentmarker.ttf"
  },
  "Event Options": {
    "Enable Scheduled Events?": true,
    "Purge Command": "purge",
    "Purge End Command": "purgeend",
    "Min Random Event Interval in Seconds": 3600,
    "Max Random Event Interval in Seconds": 7200,
    "Minimum Players to Start Event": 2,
    "Event Duration in Seconds": 600,
    "Enable Start FX?": true,
    "Enable Chat Countdown?": true,
    "Chat Countdown Interval in Minutes": 5,
    "Webhook URL (Leave blank to disable)": ""
  },
  "Reward Options": {
    "Enable Winner Commands?": true,
    "Winner Commands": [
      "inventory.giveto {id} rifle.ak 1",
      "inventory.giveto {id} paper 10"
    ],
    "Enable Economic Payout?": true,
    "Economic Payout Amount": 100.0,
    "Enable Server Rewards Payout?": true,
    "Server Rewards Payout Amount": 100,
    "Enable Winner Items?": true,
    "Min Items to Give": 1,
    "Max Items to Give": 2,
    "Winner Items": [
      {
        "Shortname": "blood",
        "SkinID": 0,
        "Probability (0-1)": 0.8,
        "Custom Name": "",
        "Minimum Amount": 10,
        "Maximum Amount": 20
      },
      {
        "Shortname": "bleach",
        "SkinID": 0,
        "Probability (0-1)": 0.2,
        "Custom Name": "",
        "Minimum Amount": 1,
        "Maximum Amount": 3
      }
    ]
  }
}

 

郎 ex.

 

{
  "EventActive": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Bot Purge Event has started! <color=#884808>Kill</color> as many bots as you can!",
  "EventAlreadyRunning": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Event is already running.",
  "EventNotRunning": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Event is not currently running.",
  "NoPermissionStart": "[<color=#880808>BOT PURGE EVENT</color>] \nYou don't have permission to start the Bot Purge Event.",
  "NoPermissionEnd": "[<color=#880808>BOT PURGE EVENT</color>] \nYou don't have permission to end the Bot Purge Event.",
  "ManuallyEnded": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Event was manually Ended.",
  "NoParticipants": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Event has ended! Unfortunately, no one participated.",
  "CountdownText": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Bot Purge Event will end in <color=#880808>{0}</color> minute(s).",
  "WinnerAnnounce": "{0}",
  "TieMessage": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Bot Purge Event has ended! There was a tie among <color=#880808>{0}</color> players with <color=#880808>{1}</color> kills.",
  "TieWinnerMessage": "[<color=#880808>BOT PURGE EVENT</color>]\nThe winner was randomly selected: <color=#880808>{0}</color> with <color=#880808>{1}</color> kills!\n",
  "HasEnded": "[<color=#880808>BOT PURGE EVENT</color>] \nThe Bot Purge Event has ended!",
  "EndMessage": "[<color=#880808>BOT PURGE EVENT</color>]\n\nBot Purge Rewards\n\nThe Winner is <color=#880888>{0}</color> with <color=#884808>{1}</color> kill(s)!",
  "RewardMessage": "\n<color=#880848>{0}</color> <color=#888808>x</color> <color=#088848>{1}</color>",
  "EconomicRewardMessage": "\n<color=#880888>{0}</color> received <color=#bb9b65>$</color><color=#85bb65>{1}</color>!",
  "PlayerEarnedMessage": "\n<color=#880888>{0}</color> earned:\n{1}",
  "ServerRewardsMessage": "\n<color=#880888>{0}</color> also received <color=#85bb65>{1}</color><color=#bb9b65> RP</color>!"
}

 

 

 

 

 

图片[3]-机器人清除事件 1.2.8-PCI1

图片[4]-机器人清除事件 1.2.8-PCI1

图片[5]-机器人清除事件 1.2.8-PCI1

图片[6]-机器人清除事件 1.2.8-PCI1

图片[7]-机器人清除事件 1.2.8-PCI1

图片[8]-机器人清除事件 1.2.8-PCI1

 

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容