View Bug Report
No Chef title, removes title
Bug #: 6576
File: Iron Chef
Date: 05-05-10 04:41 AM
By: Stijn
Status: Unconfirmed
If you don't have the Chef title, it removes your title.

Reason for this is that you misunderstood the API.
Code:
		if (IsTitleKnown(52)) then
			oldTitle = GetCurrentTitle();
			SetCurrentTitle(52);
		end
Signature:

Code:
isKnown = IsTitleKnown(titleIndex)
Arguments:

*
Code:
titleIndex
- Index of a title available to the player (between 1 and
Code:
GetNumTitles()
) (
Code:
integer
)

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Stijn - 05-05-10 04:42 AM
Formatting got messed up.. See http://wowprogramming.com/docs/api/IsTitleKnown
By: Stijn - 05-05-10 04:47 AM
Please ignore this. Read too fast and need sleep badly. Sorry!
By: Stijn - 05-05-10 04:58 AM
Found why. wowprogramming is wrong on IsTitleKnown. It returns either 1 or 0, not 1 or nil.
Change
Code:
if (IsTitleKnown(52))
to
Code:
if (IsTitleKnown(52) == true)
and it works.