WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Group finder button for world quests using Blizzard code? (https://www.wowinterface.com/forums/showthread.php?t=56036)

zork 02-12-18 04:27 AM

Group finder button for world quests using Blizzard code?
 
While questing again I noticed that while doing group world quests I would get the option to search for groups using the group finder. I have no clue why Blizzard limited that option to only group quests. It is an MMO after all.

Is it possible to hook into the shared function of the Blizzard ObjectiveTracker?
https://github.com/tomrus88/Blizzard...hared.lua#L178

The questutils function is this one: https://github.com/tomrus88/Blizzard...Utils.lua#L111

Do you think it is possible by doing this?

Lua Code:
  1. local function AddGroupFinderButton(block, questID)
  2.   if IsQuestComplete(questID) then return end
  3.   if block.groupFinderButton and block.hasGroupFinderButton then return end
  4.   if not block.hasGroupFinderButton then
  5.     block.hasGroupFinderButton = true
  6.   end
  7.   if not block.groupFinderButton then
  8.     block.groupFinderButton = QuestObjectiveFindGroup_AcquireButton(block, questID);
  9.     QuestObjectiveSetupBlockButton_AddRightButton(block, block.groupFinderButton, block.module.buttonOffsets.groupFinder);
  10.   end
  11. end
  12.  
  13. hooksecurefunc("QuestObjectiveSetupBlockButton_FindGroup", AddGroupFinderButton)

Using functionality from the quest utils would allow to show it for world quests only if needed.

zork 02-12-18 11:45 AM

Interesting...I just found out that you can right click any quest in the tracker and search for group that way.

The code above is working properly but as soon as you click an item button (not the group finder button) in combat you get a warning and the addon will be disabled.

rGroupFinder
https://github.com/zorker/rothui/tre...0/rGroupFinder

Images
https://imgur.com/a/hXS0l


All times are GMT -6. The time now is 06:38 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI