WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Masennus at 3/30/2006 4:55:11 AM PST
Subject: Slouken: QuestLog_Update() bug.
   When switching among characters without logging out completely, the first call to this function will return information for quests belonging to the previously logged in character.

To reproduce this error, create an AddOn which hooks the QuestLog_Update() function.

function Hooked_QuestLog_Update()


local numEntries, numQuests = GetNumQuestLogEntries();

for i=1, numEntries, 1 do

local questLogTitleText, questLevel = GetQuestLogTitle(i)

DEFAULT_CHAT_FRAME:AddMessage(questLogTitleText.." Level:"..questLevel)

end

Old_QuestLog_Update()

end


Log in Character A, who has quests in his quest log. Log out. Do not exit the game entirely. Create a new character (Who has no quests) Log in the new character. Watch your chat frame magically fill up with the names of Character A's quests.

I've posted this over in the Bug Report forum as well, just thought the crowd here would be interested as well.

edit: It may be worth noting that QuestLog_Update() is first called before the PLAYER_ENTERING_WORLD event fires, and that the functions which are actually returning erroneous information are GetNumQuestLogEntries() and GetQuestLogTitle(questIndex).

reedit: Title for more attention :)

[ post edited by Masennus ]


Int: Tomato = fruit
Wis: Don't put it in fruit salad
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=348157&p=#post348157
 
Poster: slouken at 4/3/2006 12:54:49 PM PDT
Subject: Re: Slouken: QuestLog_Update() bug.
   This is fixed in 1.10.1, thanks!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=348157&p=#post352868

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?