Add capability to detect what's in the tracking item slot and save to file for displaying as OBS overlay

master
sigonasr2 2 years ago
parent 576dbc773e
commit 5fd5ab2c91
  1. 642
      FINAL FANTASY XIV.CT
  2. 17
      Known Retainer IDs.txt
  3. 0
      amt
  4. 0
      goalamt.txt
  5. 19
      inventory_monitor.js

File diff suppressed because it is too large Load Diff

@ -1,16 +1,9 @@
Ayayayaya - 65576
Ayayayayaya - 65576
Kittystorage - 1769474
Morecatz - 196652
Finalretainer - 655362
Nowitsabun - 65568
butwhy - 65540
kkitty - 327684
howdoesanyonenameall - 3276807
ayayayay - 393254
Butwhy - 65540
Kkittyy - 327684
Howdoesanyonenameall - 3276807
Ayayayayay - 393254

@ -92,6 +92,24 @@ function update(){
//140 + 70
retainerInventories[ind]=finalData.slice(210,385)
}
if (i==386){
//Target Item Slot Amt. (4294967295 means invalid amt)
//387 should be item ID.
if (fileContents[387]!=0){
var tempLine=fileContents[387].split(" ")[0]
var tempLineAmt=fileContents[386].split(" ")[0]
var itemObj={id:Number(tempLine)}
await getItemData(itemObj)
var fileData=fs.readFileSync("goalamt.txt")
if (fileData!=0){
fs.writeFile("amt",itemObj.name+": "+tempLineAmt+"/"+fileData+" ("+Math.min(100,Math.floor(tempLineAmt/Number(fileData)*100))+"%)",()=>{})
} else {
fs.writeFile("amt","",()=>{})
}
} else {
fs.writeFile("amt","",()=>{})
}
}
itemID=item[1]
itemAmt=item[0]
hq=(item[2]!==undefined)?item[2].replace("\r",""):""
@ -118,6 +136,7 @@ function update(){
finalArr=[...finalArr,[...inventory]]
}
axios.post("http://projectdivar.com/inventoryData",finalArr)
.catch((err)=>{})
}
firstLoad=false
}

Loading…
Cancel
Save