Added popcorn

This commit is contained in:
Cooldude2606
2018-09-29 23:07:57 +01:00
parent a9029e0801
commit 9e8b4c96ad
3 changed files with 8 additions and 1 deletions

View File

@@ -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)

View File

@@ -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,

View File

@@ -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!