Talk:API SetDungeonDifficulty

This function needs updated to reflect the correct number of arguments.

It should be:

I've no idea what the second parameter is but the third is linked to whether you're in a group and are a leader or assistant (go Blizzard and their non-existant inline documentation!).

Found this in: /FrameXML/UnitPopup.lua:783-789 (live release 2.0.10.6448)

elseif ( strsub(button, 1, 18) == "DUNGEON_DIFFICULTY" and (strlen(button) > 18) ) then local dungeonDifficulty = tonumber( strsub(button,19,19) ); if ( inParty and (isLeader or isAssistant) ) then SetDungeonDifficulty(dungeonDifficulty,1,1); else SetDungeonDifficulty(dungeonDifficulty,1,0); end


 * Myrathi 02:41, 1 April 2007 (EDT)