Quantcast Group finder button for world quests using Blizzard code? - WoWInterface
Thread Tools Display Modes
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,677
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) | TDMOG

"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
02-12-18, 11:45 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,677
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
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

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

Last edited by zork : 02-12-18 at 12:20 PM.
  Reply With Quote

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

Thread Tools
Display Modes

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