I am very new at this and won't pretend to know anything I don't =)
Code: Select all
player:target_NPC("Laif Cindai");
sendMacro("OnClick_QuestListButton(1, 1)"); yrest(2000);
sendMacro("AcceptQuest()");
(1, 1)
First number has 3 options,
1 - not accepted,
2 - accepted, not completed, (kinda obsolete if you ask me)
3 - completed
Second number is the number in the list, so if it is the first or only quest in that section then you should put 1.
Note that the number isn't just number from the top, there are 2 sections, quests you can get and quests you are currently on. (pictures would explain easier but my server is on maintenance)
Few things to note, some NPC (including billboards) get more quests as you lvl and therefore the quest you want might be lower down list. So those cases will take more work, adding an if statement to check character lvl and adjust the quest number according would be best in those cases.
That code works perfectly on the first NPC u see when u create a new human character. I redid the "Demo.xml" that came with bot to autoaccept and complete the quests, instead of pausing bot and waiting for user to click quests.