明教动作条切换宏,骚年,来一发
------------------------------------
手动版
/script b = b or false
b = not b
if b and GetUserPreferences(1390, "c") ~= 1 then
SelectMainActionBarPage(1)
elseif not b and GetUserPreferences(1390, "c") ~= 2 then
SelectMainActionBarPage(2)
end
绑定技能自动版,将需要触发切换日系的技能ID放在t1表中,触发切换月系的技能ID放在t2表中,ID间以英文逗号分隔
/script local t1 = { 3977 }
local t2 = { 3976 }
local function cs(id, t)
for _, v in pairs(t) do
if id == v then
return true
end
end
return false
end
RegisterEvent("DO_SKILL_CAST", function()
if arg0 == UI_GetClientPlayerID() then
if cs(arg1, t1) then
if GetUserPreferences(1390, "c") ~= 1 then
SelectMainActionBarPage(1)
end
elseif cs(arg1, t2) then
if GetUserPreferences(1390, "c") ~= 2 then
SelectMainActionBarPage(2)
end
end
end
end)
插件版
点击自身头像设置
手动切换版请到快捷键设置界面设置快捷键