API:OnClick QuestListButton

Picks a quest from the NPC Quest Dialog

Arguments

 * type
 * (int) type of quest: 1 - not accepted, 2 - accepted, not completed, 3 - completed


 * index
 * (int) index of quest in the NPC's quest dialog

Returns

 * nul

note

 * NPC dialog has to be open and contain quests
 * can be used to automate quest acceptance/completion