Created
April 7, 2019 17:09
-
-
Save roccodev/04ef5efafbace014d3470c52dfd831f6 to your computer and use it in GitHub Desktop.
Object map shrine chest scraper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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