DailyQuestCheck Userfunction
Posted: Mon Jan 25, 2016 11:41 pm
DailyQuestCheck Userfunction Version 1.0 by NoobBotter
Update: 1.1:
Waypoint arguments can now accept a waypoint number, or a waypoint tag name.
This is a custom userfunction you can use in any waypoint file to check if you've used all 10 of your daily quests. You can specify to use daily reset tickets, and set a minimum amount of tickets to keep in inventory (not use). You would put this in your waypoint file where you would normally finish a daily and check to see if you still have more available to do, and replaces the need to write custom functions to use daily repeat tickets.
Basic Construct:
DQC_DailyQuestCheck(_startWP,_endWP,_resetOrNot,_howManyToKeep)
Arguments:
_startWP - Name (Tag), or waypoint number of waypoint to go to, to restart, or accept the daily quest. If using Tag Name, it must be inside quotes.
_endWP - Name (Tag) or waypoint number of waypoint to go to, after completing all dailies and no more reset tickets remain. This is typically where you end the waypoint or go to load the next waypoint. If using Tag Name, it must be inside quotes.
_resetOrNot - Optional. Set to true to use Daily Reset Tickets, or false to not use any. Default (anything other than 'true') is to not use any.
_howManyToKeep - Optional. Set to the number of Daily Reset Tickets you want to keep in inventory and NOT use. Default is 0 which will use all you have.
Example Uses:
Example 1: To not use any daily resets and just do my 10 dailies:
DQC_DailyQuestCheck("acceptQuest","myfinish")
Example 2: To keep doing this quest until all Daily Reset Tickets have been used:
DQC_DailyQuestCheck("acceptQuest","myfinish",true)
Example 3: To use Daily Reset Tickets when needed but stop when I only have 5 reset tickets left:
DQC_DailyQuestCheck("acceptQuest","myfinish",true,5)
Example 4: To use Daily Reset Tickets when needed, stop when I only have 1 reset ticket left, and using waypoint numbers to specify the waypoints to go to:
DQC_DailyQuestCheck(14,28,true,5)
Here is the updated version 1.1 of the userfunction. To use this, download and copy into your rom/userfunctions directory. For clarity's sake, here is an example of how you can use the userfunction. This is a daily waypoint to do the "Time for spice" daily in Splitwater Coast. Line 51 of that waypoint file has the new userfunction, and in this case it will use daily reset tickets when needed but will stop when there are only 10 left. I welcome any questions, comments, suggestions, or bugs.
Update: 1.1:
Waypoint arguments can now accept a waypoint number, or a waypoint tag name.
This is a custom userfunction you can use in any waypoint file to check if you've used all 10 of your daily quests. You can specify to use daily reset tickets, and set a minimum amount of tickets to keep in inventory (not use). You would put this in your waypoint file where you would normally finish a daily and check to see if you still have more available to do, and replaces the need to write custom functions to use daily repeat tickets.
Basic Construct:
DQC_DailyQuestCheck(_startWP,_endWP,_resetOrNot,_howManyToKeep)
Arguments:
_startWP - Name (Tag), or waypoint number of waypoint to go to, to restart, or accept the daily quest. If using Tag Name, it must be inside quotes.
_endWP - Name (Tag) or waypoint number of waypoint to go to, after completing all dailies and no more reset tickets remain. This is typically where you end the waypoint or go to load the next waypoint. If using Tag Name, it must be inside quotes.
_resetOrNot - Optional. Set to true to use Daily Reset Tickets, or false to not use any. Default (anything other than 'true') is to not use any.
_howManyToKeep - Optional. Set to the number of Daily Reset Tickets you want to keep in inventory and NOT use. Default is 0 which will use all you have.
Example Uses:
Example 1: To not use any daily resets and just do my 10 dailies:
DQC_DailyQuestCheck("acceptQuest","myfinish")
Example 2: To keep doing this quest until all Daily Reset Tickets have been used:
DQC_DailyQuestCheck("acceptQuest","myfinish",true)
Example 3: To use Daily Reset Tickets when needed but stop when I only have 5 reset tickets left:
DQC_DailyQuestCheck("acceptQuest","myfinish",true,5)
Example 4: To use Daily Reset Tickets when needed, stop when I only have 1 reset ticket left, and using waypoint numbers to specify the waypoints to go to:
DQC_DailyQuestCheck(14,28,true,5)
Here is the updated version 1.1 of the userfunction. To use this, download and copy into your rom/userfunctions directory. For clarity's sake, here is an example of how you can use the userfunction. This is a daily waypoint to do the "Time for spice" daily in Splitwater Coast. Line 51 of that waypoint file has the new userfunction, and in this case it will use daily reset tickets when needed but will stop when there are only 10 left. I welcome any questions, comments, suggestions, or bugs.