Skip to content

Instantly share code, notes, and snippets.

@RoccoDev
Created April 7, 2019 17:09
Show Gist options
  • Save RoccoDev/04ef5efafbace014d3470c52dfd831f6 to your computer and use it in GitHub Desktop.
Save RoccoDev/04ef5efafbace014d3470c52dfd831f6 to your computer and use it in GitHub Desktop.
Object map shrine chest scraper
function findHashes() {
let url = `https://radar.zeldamods.org/objs/CDungeon/?q=actor:^%22TBox_%22&withMapNames=false&limit=-1`
let result = []
let xml = new XMLHttpRequest()
function load() {
let json = JSON.parse(this.responseText)
json.forEach(obj => {
let dgnId = obj.map_name.substring(7)
if(parseInt(dgnId) > 119) return
let hashId = obj.hash_id
result.push(`${hashId}@${dgnId}`)
})
document.write(JSON.stringify(result))
}
xml.onload = load
xml.open("GET", url)
xml.send()
}
findHashes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment