PDA

View Full Version : Exporting / importing Hashes



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

DaCapn
10-13-2015, 12:54 PM
Can you look at your sbounty settings in lich with just ;settings list?

If so, copy the text, and add/change the same setting on the second character.

Haldrik
10-13-2015, 02:40 PM
Can you look at your sbounty settings in lich with just ;settings list?

If so, copy the text, and add/change the same setting on the second character.

Nope unfortunately.

Ardwen
10-13-2015, 02:48 PM
man I so read the topic as importing hashish....

Viekn
10-13-2015, 02:51 PM
man I so read the topic as importing hashish....

LOL, so did I! I'm kind of bummed now.