Thread Tools Display Modes
02-27-07, 03:47 PM   #1
wedtm
A Murloc Raider
Join Date: Feb 2007
Posts: 4
Quest Info

What API calls can I use to get info like the reward items for a quest or the required items for a quest?
  Reply With Quote
04-09-07, 06:55 AM   #2
s_d_stoehr
A Defias Bandit
Join Date: Feb 2007
Posts: 2
Question Quest Info

I wanted to know the same thing and I found:

GetQuestItemInfo
GetQuestLogItemLink
GetQuestItemLink

This script works:

Code:
local i=0;
local scantype = "reward";
while (GetQuestLogTitle(i+1) ~= nil) do
	i = i + 1;
	SelectQuestLogEntry(i);
	local questTitle, level, tag, suggestedGroup, header, collapsed, complete = GetQuestLogTitle(i);
	if (not header) then
		local k = 1;
		while(GetQuestLogItemLink(scantype, k) ~= nil) do
			local link = GetQuestLogItemLink(scantype, k);
			if(link) then
				DEFAULT_CHAT_FRAME:AddMessage(link, 1.0, 1.0, 1.0);
			end
			k = k + 1
		end
	end
end
but I want to scan
Code:
scantype = "required";
Then there's no result...

Can anybody find my mistake??? Or are these functions wrong???

Last edited by s_d_stoehr : 04-09-07 at 09:08 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Quest Info


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