|
|
@ -97,7 +97,7 @@ function update(){ |
|
|
|
if (i==386){ |
|
|
|
if (i==386){ |
|
|
|
//Target Item Slot Amt. (4294967295 means invalid amt)
|
|
|
|
//Target Item Slot Amt. (4294967295 means invalid amt)
|
|
|
|
//387 should be item ID.
|
|
|
|
//387 should be item ID.
|
|
|
|
if (fileContents[387]!=0){ |
|
|
|
if (fileContents[387].split(" ")[0]!=0){ |
|
|
|
var tempLine=fileContents[387].split(" ")[0] |
|
|
|
var tempLine=fileContents[387].split(" ")[0] |
|
|
|
var tempLineAmt=fileContents[386].split(" ")[0] |
|
|
|
var tempLineAmt=fileContents[386].split(" ")[0] |
|
|
|
var itemObj={id:Number(tempLine)} |
|
|
|
var itemObj={id:Number(tempLine)} |
|
|
@ -110,15 +110,15 @@ function update(){ |
|
|
|
lastDisplayString=tempString |
|
|
|
lastDisplayString=tempString |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (lastDisplayString!=""){ |
|
|
|
if (lastDisplayString!=" "){ |
|
|
|
fs.writeFile("amt","",()=>{}) |
|
|
|
fs.writeFile("amt"," ",()=>{}) |
|
|
|
lastDisplayString="" |
|
|
|
lastDisplayString=" " |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (lastDisplayString!=""){ |
|
|
|
if (lastDisplayString!=" "){ |
|
|
|
fs.writeFile("amt","",()=>{}) |
|
|
|
fs.writeFile("amt"," ",()=>{}) |
|
|
|
lastDisplayString="" |
|
|
|
lastDisplayString=" " |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|