Haldrik
10-12-2015, 02:10 PM
Heyo,
I'm trying to figure out a way to export some of my sbounty settings so another character can use them. I pulled a portion of the code below.
I believe the settings are stored in CharSettings[:locations] but not entirely sure. Any help would be greatly appreciated.
Thank you!
get_bounty_location = proc {
location = target = nil
# remove search only locations for hunting areas
locations = CharSettings[:locations].dup
if is_bounty.call ['task_skin', 'task_heirloom', 'task_dangerous', 'task_cull', 'task_rescue']
locations.delete_if { |name, data| data[:enable_search_only] }
end
I'm trying to figure out a way to export some of my sbounty settings so another character can use them. I pulled a portion of the code below.
I believe the settings are stored in CharSettings[:locations] but not entirely sure. Any help would be greatly appreciated.
Thank you!
get_bounty_location = proc {
location = target = nil
# remove search only locations for hunting areas
locations = CharSettings[:locations].dup
if is_bounty.call ['task_skin', 'task_heirloom', 'task_dangerous', 'task_cull', 'task_rescue']
locations.delete_if { |name, data| data[:enable_search_only] }
end