From af2bc3f8279407b4d7602d0ee183627157b76832 Mon Sep 17 00:00:00 2001 From: Sattva Date: Sun, 21 May 2023 18:45:01 +0300 Subject: [PATCH] AutoGossip - stop inn,trainer automation I do not think automating those is good idea. In future will make this optional. --- Changelog and Notes.txt | 15 +++++++++++++-- Leatrix_Plus.lua | 18 ++++++++++++------ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Changelog and Notes.txt b/Changelog and Notes.txt index 0529d2b..2825632 100644 --- a/Changelog and Notes.txt +++ b/Changelog and Notes.txt @@ -16,7 +16,9 @@ AutoQuest - May be backport retail quest accept. -------------------------------------------------------------------------------- -Auto-Ress in BG - With option "Exclude Alterac" will it not auto-res in Alterac BG? +Auto-Ress in BG - With option "Exclude Alterac" will it not auto-res in Alterac BG ? + +Accept Ress - Will it ever accept ressurection if ressurecter in combat ? @@ -29,7 +31,7 @@ AutoGossip - Add user defined NPCID to automate gossipX (any option) AutoGossip - Add ability to automate gossip cycles. (if after first gossip need to select more gossips) -AutoGossip - Add +AutoGossip - Remove Innkeepers (!) , Trainers (?) from automation. Minimap enhance - Add NPC specific tracking icons on minimap. @@ -61,14 +63,23 @@ Faster Loot - Make the config options (disable sound, change sound, error fi Links to wowhead-wotlk in Quest Log for every quest. + Improve Quest Accept conditions (aka skip welcome window and block shared aka escort quests) + Add more tweaks to Auction House extras module. + Square minimap + Restore Chat Messages history after relog + Hide keybind text + Hide macro text + Resize mail text + Train All Button + Copy chat links diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index f06ef9d..0d6051d 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -1577,13 +1577,13 @@ } - --===== create ignore NPC table to not mess with npcTable and for future user options =====-- - local npcIgnore = { + -- --===== create ignore NPC table to not mess with npcTable and for future user options =====-- + -- local npcIgnore = { - -- Innkeepers - 5111, 6740 + -- -- Innkeepers + -- 5111, 6740 - } + -- } -- Event handler @@ -1591,6 +1591,12 @@ if event == "GOSSIP_SHOW" then -- Special treatment for specific NPCs local npcGuid = UnitGUID("target") or nil + + local void, gossipType = GetGossipOptions() + if gossipType == "binder" + or gossipType == "trainer" + then return end + if npcGuid and not IsShiftKeyDown() then local npcID = LibCompat.GetUnitCreatureId("target") -- print(npcID) @@ -1607,7 +1613,7 @@ if npcID == "132969" -- Katy Stampwhistle (toy) or npcID == "104201" -- Katy Stampwhistle (npc) or tContains(npcTable, tonumber(npcID)) - and not tContains(npcIgnore, tonumber(npcID)) + -- and not tContains(npcIgnore, tonumber(npcID)) then SkipGossip(true) -- true means skip alt key requirement return