[Lua] 纯文本查看 复制代码
F = F or CreateFrame("Frame")
F:RegisterEvent("GOSSIP_SHOW")
F:SetScript("OnEvent",function(self, event, ...)
if ( event == "GOSSIP_SHOW" ) then --自动点击对话
local GGT
if IsControlKeyDown() then --回城
for i=1,GetNumGossipOptions() do
GGT = _G["GossipTitleButton"..i]
if string.find(GGT:GetText(),"主城")then
GGT:Click()CloseGossip()
end
if string.find(GGT:GetText(),"铁炉堡")then
GGT:Click()CloseGossip()
end
if string.find(GGT:GetText(),"奥格瑞玛")then
GGT:Click()CloseGossip()
end
end
elseif IsAltKeyDown() then --重置 传送
for i=1,GetNumGossipOptions() do
GGT = _G["GossipTitleButton"..i]
if string.find(GGT:GetText(),"燃烧的远征团队副本")then
GGT:Click()CloseGossip()
end
if string.find(GGT:GetText(),"外域团队副本")then
GGT:Click()CloseGossip()
end
if string.find(GGT:GetText(),"黑暗神庙")then
GGT:Click()CloseGossip()
end
if string.find(GGT:GetText(),"黑暗神殿")then
GGT:Click()CloseGossip()
end
end
end
end
end)
付费主题是我自己玩私服的专用插件,上传的时候忘记设置伸手费了,用来参考参考的可以看看