To use it just copy "userfunction_QuestByName.lua" to your "/rom/userfunctions/" folder and use the following commands in your waypoint files:
AcceptQuestByName() or AcceptAllQuests() --Accept all available quests
AcceptQuestByName("word") --Accept first quest in list with "word" in it's name
CompleteQuestByName() or CompleteAllQuests() --Complete all available quests
CompleteQuestByName("word") --Complete first quest in list with "word" in it's name
CompleteQuestByName("word",1) --Complete first quest in list with "word" in it's name and select reward number 1
Note:
-You have to target the quest NPC before using any these functions
e.g.
Code: Select all
player:target_NPC("Vega");
CompleteQuestByName()
Changelog
Version 0.97
-Added check for target
-Added check for number of quests in questbook
Version 0.96
-Change in retargeting
Version 0.95
-Special character replacement changed
-Went back to RomScript for retargeting
Version 0.94
-Changed retargeting to
Code: Select all
player:target_NPC(player:getTarget())
Version 0.93
-Added retargeting NPC to retrieve updated data
Version 0.92
-Bugfix
Version 0.91
-Added reward selection
-Changed loop to complete/accept at least one time
-Added two new commands
ToDo:
-Anything suggested
These functions are part of the bot now so there is no need to install these userfunctions.