ソースを参照

feat(pkuxkx): 发现玩家想要从功德箱拿东西时,自动关闭所有命令

dzp 2 年 前
コミット
61d07684e2
2 ファイル変更7 行追加2 行削除
  1. 5 0
      mud/pkuxkx/plugins/shortcut.tin
  2. 2 2
      plugins/lib/xtintin/cmds.tin

+ 5 - 0
mud/pkuxkx/plugins/shortcut.tin

@@ -140,6 +140,11 @@ load-lib sync;
 
 #gag {向红豆打听有关『%*』的消息。$E};
 
+#action {^请直接输入感恩之语:$TELNET[GA]$} {
+	xtt.DisableAllCommands false;
+	#line oneshot #alias {^%*{|ID=xiang}$} {#send %%0; xtt.UndoDisableAllCommands} {1.001};
+};
+
 #gag {^%s$};
 #action {^>%s$} {#line gag};
 #gag {^├{(─|┼)+}┤$};

+ 2 - 2
plugins/lib/xtintin/cmds.tin

@@ -506,14 +506,14 @@ option.Define {DisableAllCommands} {Bool} {是否禁用所有的触发器和定
     #if { @isTrue{$carefully} } {
         #alias {^%*{|ID=paotin/disable-all-commands}$} {
             #echo {<119>命令已被抑制,可用 <129>#send<119> 强制发送。撤销请用 <129>xtt.UndoDisableAllCommands<119> : <139>%s<299>} {%%0}
-        } {1.001};
+        } {1.002};
     };
     #else {
         #alias {^%*{|ID=paotin/disable-all-commands}$} {
             #echo {%s} {%%0};
             #send %%0;
             #line gag;
-        } {1.001};
+        } {1.002};
     };
 
     #gts {#delay 600 {#ats xtt.UndoDisableAllCommands}};