Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-12-18, 04:27 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-12-18 at 04:33 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Group finder button for world quests using Blizzard code?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off