宏命令:
/script T,F=T or 0,F or CreateFrame("frame")if X then X=nil print("OFF.")else print("ON.") X=function()local t=GetTime()if t-T>1 then StaticPopup1Button2:Click()T=t end end end F:SetScript("OnUpdate",X) |
命令解析:
使用此宏后,聊天框会提示“ON”,这时会有自动按ESC的效果。不但会自动阻止交易,死了之后别人复活你也会自动取消。
所以如果不挂机时候,一定要再按一下这个宏关闭掉,聊天框会提示“OFF”