AutoGossip - stop inn,trainer automation

I do not think automating those is good idea. In future will make this optional.
This commit is contained in:
Sattva
2023-05-21 18:45:01 +03:00
parent 5aabc5bf64
commit af2bc3f827
2 changed files with 25 additions and 8 deletions
+13 -2
View File
@@ -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
+12 -6
View File
@@ -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