From 9e8b4c96ad11e4eef896881f3a17b6ddc72fb78b Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 29 Sep 2018 23:07:57 +0100 Subject: [PATCH] Added popcorn --- Addons/Admin/auto-chat.lua | 6 ++++++ Addons/playerRanks.lua | 2 +- locale/en/chat-bot.cfg | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Addons/Admin/auto-chat.lua b/Addons/Admin/auto-chat.lua index e59b45f4..0379ff4e 100644 --- a/Addons/Admin/auto-chat.lua +++ b/Addons/Admin/auto-chat.lua @@ -46,6 +46,7 @@ local commands = { ['lenny']={'chat-bot.lenny'}, ['feedback']={'chat-bot.feedback'}, ['wiki']={'chat-bot.wiki'}, + ['blame']=function(player) local options = {'?','.','!','!!!'} return {'chat-bot.hodor',options[math.random(#options)]} end, ['evolution']=function(player) return {'chat-bot.current-evolution',string.format('%.2f',game.forces['enemy'].evolution_factor)} end, --Jokes about food and drink ['whattoeat']={'chat-bot.food'}, @@ -96,6 +97,11 @@ local commands = { }:on_event('timeout',function(self) if self.data then game.print{'chat-bot.message',{'chat-bot.make-tea-2',self.data}} end end):open() return {'chat-bot.make-tea-1'} end, + ['popcorn']=function(player) Server.new_thread{ + timeout=math.floor(180*(math.random()+0.5)),data=player.name + }:on_event('timeout',function(self) + if self.data then game.print{'chat-bot.message',{'chat-bot.get-popcorn-2',self.data}} end + end):open() return {'chat-bot.get-popcorn-1'} end, ['meadplease']=function(player) Server.new_thread{ timeout=math.floor(180*(math.random()+0.5)),data=player.name }:on_event('timeout',function(self) diff --git a/Addons/playerRanks.lua b/Addons/playerRanks.lua index 8723d71f..993f6897 100644 --- a/Addons/playerRanks.lua +++ b/Addons/playerRanks.lua @@ -271,7 +271,7 @@ ranks['Donator']:edit('allow',false,{ }) ranks['Partner']:edit('allow',false,{ - + ['global-chat']=true }) ranks['Veteran']:edit('allow',false,{ ['tree-decon']=true, diff --git a/locale/en/chat-bot.cfg b/locale/en/chat-bot.cfg index 0e81ea5f..492bad9c 100644 --- a/locale/en/chat-bot.cfg +++ b/locale/en/chat-bot.cfg @@ -44,3 +44,4 @@ get-popcorn-1=Heating the oil and waiting for the popping sound... get-popcorn-2=__1__ your popcorn is finished. Lean backwards and watch the drama unfold. wiki=You can get more information about us and the custom scenario from our wiki: https://wiki.explosivegaming.nl/ feedback=Do you have feedback? leave it at https://exp.fider.io/ +hodor=Hodor! \ No newline at end of file