Compare commits
1 commit
master
...
generalize
Author | SHA1 | Date | |
---|---|---|---|
9d69674325 |
4 changed files with 69 additions and 34 deletions
|
@ -15,8 +15,11 @@ StaticPopupDialogs["GOLIATH_MISSING"] = {
|
||||||
f:RegisterEvent("GOSSIP_SHOW")
|
f:RegisterEvent("GOSSIP_SHOW")
|
||||||
|
|
||||||
f:SetScript("OnEvent", function(self, event, ...)
|
f:SetScript("OnEvent", function(self, event, ...)
|
||||||
local isNecroticWake = GetZoneText() == "The Necrotic Wake"
|
-- check if The Necrotic Wake
|
||||||
local isSteward = GetUnitName("npc") == "Steward"
|
local isNecroticWake = C_Map.GetBestMapForUnit("player") == 1666
|
||||||
|
-- check if Steward
|
||||||
|
local guid = UnitGUID("npc")
|
||||||
|
local isSteward = tonumber(guid and strsub(guid, 27, 32)) == 166663
|
||||||
|
|
||||||
if isNecroticWake and isSteward then
|
if isNecroticWake and isSteward then
|
||||||
options = C_GossipInfo.GetOptions()
|
options = C_GossipInfo.GetOptions()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Interface: 100000
|
## Interface: 90005
|
||||||
## Title: ATReactivateGoliath
|
## Title: ATReactivateGoliath
|
||||||
## Author: Andrew Tomaka
|
## Author: Andrew Tomaka
|
||||||
## Version: 1.1
|
## Version: 1.0
|
||||||
|
|
||||||
ATAutoReactivateGoliath.lua
|
ATAutoReactivateGoliath.lua
|
||||||
|
|
|
@ -18,7 +18,7 @@ ATMe.taunts = {
|
||||||
[185245] = true, -- Torment
|
[185245] = true, -- Torment
|
||||||
[6795] = true, -- Growl
|
[6795] = true, -- Growl
|
||||||
[115546] = true, -- Provke
|
[115546] = true, -- Provke
|
||||||
[62124] = true, -- Hand of Reckoning
|
[62124] = true, -- Hand of Reckoning
|
||||||
[355] = true, -- Taunt
|
[355] = true, -- Taunt
|
||||||
|
|
||||||
[1161] = true, -- Challenging Shout
|
[1161] = true, -- Challenging Shout
|
||||||
|
@ -32,6 +32,9 @@ inspectInitialized = false
|
||||||
local InspectFontStrings = {}
|
local InspectFontStrings = {}
|
||||||
|
|
||||||
function ATMe.SlashHandler(cmd)
|
function ATMe.SlashHandler(cmd)
|
||||||
|
if cmd == "frames" then
|
||||||
|
ATMe.moveFrames()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ATMe.OnEvent(self, event, ...)
|
function ATMe.OnEvent(self, event, ...)
|
||||||
|
@ -54,7 +57,7 @@ end
|
||||||
function events:INSPECT_READY(guid)
|
function events:INSPECT_READY(guid)
|
||||||
if not inspectInitialized and InspectFrame then
|
if not inspectInitialized and InspectFrame then
|
||||||
InspectFontStrings["itemLevel"] = InspectFrame:CreateFontString(nil, "OVERLAY")
|
InspectFontStrings["itemLevel"] = InspectFrame:CreateFontString(nil, "OVERLAY")
|
||||||
InspectFontStrings["itemLevel"]:SetPoint("BOTTOMLEFT", 10, 5)
|
InspectFontStrings["itemLevel"]:SetPoint("BOTTOMRIGHT", -5, 5)
|
||||||
InspectFontStrings["itemLevel"]:SetFont("Fonts\\FRIZQT__.ttf", 24, "OUTLINE")
|
InspectFontStrings["itemLevel"]:SetFont("Fonts\\FRIZQT__.ttf", 24, "OUTLINE")
|
||||||
InspectFontStrings["itemLevel"]:SetTextColor(1, 1, 1)
|
InspectFontStrings["itemLevel"]:SetTextColor(1, 1, 1)
|
||||||
|
|
||||||
|
@ -97,19 +100,29 @@ function events:MERCHANT_SHOW(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
function events:PLAYER_LOGIN(...)
|
function events:PLAYER_LOGIN(...)
|
||||||
-- Updated for DF from
|
-- found from some forums
|
||||||
-- https://www.reddit.com/r/CompetitiveWoW/comments/yy4ldr/one_button_world_marker_circle_marco_df_prepatch/
|
local b=ActionButton8 _MH=_MH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=IsAltKeyDown()and 0 or(Z or 0)%8+1 self:SetAttribute("macrotext5","/wm [nomod]"..Z)'))or 1
|
||||||
local button = ActionButton8
|
|
||||||
_MH = _MH
|
QuickJoinToastButton:Hide()
|
||||||
or (
|
ChatFrameChannelButton:Hide()
|
||||||
button:SetAttribute("*type5","macro")
|
ChatFrameMenuButton:Hide()
|
||||||
or SecureHandlerWrapScript(
|
ChatFrame1ButtonFrame:Hide()
|
||||||
button, "PreClick", button,
|
|
||||||
'marker = (marker or 0) % 8 + 1\n'..
|
-- ChatFrame1.ScrollBar:Hide()
|
||||||
'self:SetAttribute("macrotext5", "/wm "..marker)'
|
-- ChatFrame1.ScrollToBottomButton:Hide()
|
||||||
)
|
|
||||||
)
|
ChatFrame1:SetWidth(400)
|
||||||
or 1
|
ChatFrame1:SetHeight(150)
|
||||||
|
|
||||||
|
ChatFrame1:ClearAllPoints()
|
||||||
|
ChatFrame1:SetClampRectInsets(0, 0, 0, 0)
|
||||||
|
ChatFrame1:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 0, 0)
|
||||||
|
|
||||||
|
ChatFrame1EditBox:ClearAllPoints()
|
||||||
|
ChatFrame1EditBox:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 0)
|
||||||
|
ChatFrame1EditBox:SetPoint("RIGHT", ChatFrame1, 0, 0)
|
||||||
|
|
||||||
|
ChatFrame1:SetUserPlaced(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
function events:PLAYER_REGEN_DISABLED(...)
|
function events:PLAYER_REGEN_DISABLED(...)
|
||||||
|
@ -135,12 +148,24 @@ function events:PLAYER_UPDATE_RESTING(...)
|
||||||
if ATMe.needsRepair() then StaticPopup_Show("REPAIR_ALERT") end
|
if ATMe.needsRepair() then StaticPopup_Show("REPAIR_ALERT") end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ATMe.moveFrames()
|
||||||
|
print("Moving frames to ATMe default locations")
|
||||||
|
PlayerFrame:ClearAllPoints()
|
||||||
|
PlayerFrame:SetPoint("CENTER",UIParent,-350,-225)PlayerFrame:SetUserPlaced(true)
|
||||||
|
|
||||||
|
TargetFrame:ClearAllPoints()
|
||||||
|
TargetFrame:SetPoint("CENTER",UIParent,350,-225)TargetFrame:SetUserPlaced(true)
|
||||||
|
|
||||||
|
FocusFrame:ClearAllPoints()
|
||||||
|
FocusFrame:SetPoint("CENTER",UIParent,-350,150)TargetFrame:SetUserPlaced(true)
|
||||||
|
end
|
||||||
|
|
||||||
function ATMe.announceKey()
|
function ATMe.announceKey()
|
||||||
for bag = BACKPACK_CONTAINER, NUM_TOTAL_EQUIPPED_BAG_SLOTS do
|
for bag = 0, NUM_BAG_SLOTS do
|
||||||
for slot = 1, C_Container.GetContainerNumSlots(bag)do
|
for slot = 1, GetContainerNumSlots(bag)do
|
||||||
itemID = C_Container.GetContainerItemID(bag, slot)
|
itemID = GetContainerItemID(bag, slot)
|
||||||
if C_Container.GetContainerItemID(bag, slot) == ATMe.keyItemID then
|
if GetContainerItemID(bag, slot) == ATMe.keyItemID then
|
||||||
local link = C_Container.GetContainerItemLink(bag, slot)
|
local link = GetContainerItemLink(bag, slot)
|
||||||
SendChatMessage(link, "PARTY")
|
SendChatMessage(link, "PARTY")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -182,19 +207,14 @@ end
|
||||||
|
|
||||||
function ATMe.sellGrayItems()
|
function ATMe.sellGrayItems()
|
||||||
sellTotal = 0
|
sellTotal = 0
|
||||||
for bag = BACKPACK_CONTAINER, NUM_TOTAL_EQUIPPED_BAG_SLOTS do
|
for bag = 0, NUM_BAG_SLOTS do
|
||||||
for slot = 1, C_Container.GetContainerNumSlots(bag) do
|
for slot = 1, GetContainerNumSlots(bag) do
|
||||||
local item = C_Container.GetContainerItemInfo(bag, slot)
|
local _, count, _, quality, _, _, link = GetContainerItemInfo(bag, slot)
|
||||||
|
|
||||||
local count = item and item.stackCount
|
|
||||||
local quality = item and item.quality
|
|
||||||
local link = item and item.hyperlink
|
|
||||||
|
|
||||||
if quality and quality == 0 then
|
if quality and quality == 0 then
|
||||||
local price = select(11, GetItemInfo(link))
|
local price = select(11, GetItemInfo(link))
|
||||||
sellTotal = sellTotal + (price * count)
|
sellTotal = sellTotal + (price * count)
|
||||||
print("Selling "..count.."x"..link)
|
print("Selling "..count.."x"..link)
|
||||||
C_Container.UseContainerItem(bag, slot)
|
UseContainerItem(bag, slot)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -221,6 +241,10 @@ for event, method in pairs(events) do
|
||||||
end
|
end
|
||||||
f:SetScript("OnEvent", ATMe.OnEvent)
|
f:SetScript("OnEvent", ATMe.OnEvent)
|
||||||
|
|
||||||
|
--[[ hooksecurefunc("TalkingHeadFrame_PlayCurrent", function()
|
||||||
|
TalkingHeadFrame:Hide()
|
||||||
|
end) ]]--
|
||||||
|
|
||||||
function PaperDollFrame_SetMovementSpeed(statFrame, unit)
|
function PaperDollFrame_SetMovementSpeed(statFrame, unit)
|
||||||
statFrame.wasSwimming = nil
|
statFrame.wasSwimming = nil
|
||||||
statFrame.unit = unit
|
statFrame.unit = unit
|
||||||
|
@ -240,4 +264,12 @@ CharacterStatsPane.statsFramePool.resetterFunc =
|
||||||
end
|
end
|
||||||
table.insert(PAPERDOLL_STATCATEGORIES[1].stats, { stat = "MOVESPEED"})
|
table.insert(PAPERDOLL_STATCATEGORIES[1].stats, { stat = "MOVESPEED"})
|
||||||
|
|
||||||
|
for i = 1, 7 do
|
||||||
|
local chat = _G["ChatFrame"..i]
|
||||||
|
local font, size = chat:GetFont()
|
||||||
|
chat:SetFont(font, size, "THINOUTLINE")
|
||||||
|
chat:SetShadowOffset(0, 0)
|
||||||
|
chat:SetShadowColor(0, 0, 0, 0)
|
||||||
|
end
|
||||||
|
|
||||||
SlashCmdList["ATME"] = ATMe.SlashHandler
|
SlashCmdList["ATME"] = ATMe.SlashHandler
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Interface: 100002
|
## Interface: 90005
|
||||||
## Title: ATMe
|
## Title: ATMe
|
||||||
## Author: Andrew Tomaka
|
## Author: Andrew Tomaka
|
||||||
## Version: 0.1
|
## Version: 0.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue