From cfd7da5589234dd13d3eb0cac9a2086a3cd9992c Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Wed, 15 Sep 2021 17:07:07 -0400 Subject: [PATCH] AI chat update --- Classic/scripts/dtChatCmdGame.cs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Classic/scripts/dtChatCmdGame.cs b/Classic/scripts/dtChatCmdGame.cs index f910076..25782f8 100755 --- a/Classic/scripts/dtChatCmdGame.cs +++ b/Classic/scripts/dtChatCmdGame.cs @@ -160,21 +160,17 @@ function chatCmd(%client, %message) //%client is sender messageAll('message', 'AI is now disabled.'); } - case "/AIQ": - if(%client.isSuperAdmin || %client.isAdmin) - { - %b = getWord(%message,1); - if(%b == 1) - { + case "/aichat": + if(%client.isSuperAdmin || %client.isAdmin){ + if(!$AIDisableChat){ $AIDisableChat = 1; - messageClient(%client, 'msgChatCmd', '\c2AI Chat Disabled.'); - } - else - { + messageAll('message', '\c2AI Chat Disable'); + } + else{ $AIDisableChat = 0; - messageClient(%client, 'msgChatCmd', '\c2AI Chat Enabled.'); - } - } + messageAll('message', '\c2AI Chat Enable'); + } + } case "/spookysky": if(%client.isAdmin || %client.isSuperAdmin )