Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [sbounty: location inside if statement: Rift]
- [sbounty: location after downcase rift]
- [sbounty: name: Rift - Plane 3]
- [sbounty: data: {:enable_bounty_only=>false, :enable_hunting_rotation=>true, :enable_search_only=>false, :location=>"Rift", :skins=>["gizzard"], :targets=>["aivren(c)"], :room=>"12093", :boundaries=>["99999999"]}]
- [sbounty: Rift]
- [sbounty: String]
- [sbounty: test: aivren(c)]
- [sbounty: cleaning targets: ["aivren(c)"]]
- [sbounty: location inside locations.find: rift]
- [sbounty: location outside locations.find: ]
- --- Lich: sbounty has exited.
- if bounty? =~ /#{bounty_patterns['task_skin']}/
- # remember: don't swap the order or the global $ vars are lost!
- target = $3.strip.downcase
- skin = clean_skin.call($2)
- location = locations.find { |name, data| GSC.SBOUNTY_CLEAN_TARGETS(data[:targets]).find { |t| target =~ /#{t}/i } and data[:skins].find { |s| skin =~ /#{s.strip.downcase}/i }}
- else
- echo "inside if-else of get_bounty_location- if bounty?" if $sbounty_debug
- bounty_patterns.each { |key,value|
- echo "key: #{key}" if $sbounty_debug
- echo "value: #{value}" if $sbounty_debug
- echo bounty? if $sbounty_debug
- if bounty? =~ /#{value}/i
- target = $1
- location = $2
- break
- end
- }
- echo "location inside if statement: #{location}" if $sbounty_debug
- location = location.downcase.strip
- echo "location after downcase #{location}" if $sbounty_debug
- location = locations.find { |name, data|
- echo "name: #{name}" if $sbounty_debug
- echo "data: #{data}" if $sbounty_debug
- echo data[:location].strip if $sbounty_debug
- echo data[:location].class if $sbounty_debug
- echo data[:targets] if $sbounty_debug
- location =~ /#{data[:location].strip}/i and GSC.SBOUNTY_CLEAN_TARGETS(data[:targets]).find {|t| target =~ /#{t}/i}
- echo "cleaning targets: #{GSC.SBOUNTY_CLEAN_TARGETS(data[:targets])}" if $sbounty_debug
- echo "location inside locations.find: #{location}" if $sbounty_debug
- }
- echo "location outside locations.find: #{location}" if $sbounty_debug
- end
- echo "location: #{location}" if $sbounty_debug
- exit
- if location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement