Page 1 of 1

how to choose quest item when completing mission

Posted: Mon Jul 11, 2011 8:31 am
by haq
Hello. I am seeking for a way to pick item when i am completing mission when it gives me a choice which item i would like to get.

Code: Select all

player:target_Object("NPC_Name",500);
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(500); 

here i need something like: chooseQuestItem(1);

sendMacro("CompleteQuest()"); yrest(500);
Thanks for help ;)

Re: how to choose quest item when completing mission

Posted: Mon Jul 11, 2011 8:48 am
by rock5
Use the userfunction QuestByName
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2184

And use

Code: Select all

CompleteQuestByName("word",1) --Complete first quest in list with "word" in it's name and select reward number 1