View Single Post
02/17/18, 05:12 PM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
Hey, the function that checks for writs is WritCreator.WritSearch. It's found on line 896 of the WritCreator.lua file. That function checks for the basic writ type. This function iterates over all the quests and can be run at any time.

There's also a function for checking the Master Writs. That is WritCreator.MasterWritQuestAdded on line 442 of MasterWrits.lua. This function is a bit more complex, because it also determines whether the quest is asking for weapons/gear and it sets up the information for the next function. (Which determines what to craft) This function mainly runs only when you accept a quest, and it only runs on one quest index at a time. It is however run on all active quests whenever you login.


You can run the basic writ search with /dlwcfindwrit. /abandonwrits also runs it, though it has the side effect of abandoning all current basic writ quests. /rerunmasterwrits will call the WritCreator.MasterWritQuestAdded function for every single quest.

There's also loot opening in the LootHandler.lua file, mainly in the second half (First half is saving what you get)

Last edited by Dolgubon : 02/17/18 at 05:14 PM.
  Reply With Quote