This repetitive behavior don't make sense. would like to reduce this pointless repeating in this function theGiant. If anyone can perhaps explain a more efficient way for writhe this function without the need of making such amount of tables for basically one simple thing. which is editing all the values on given offsets (0x104, 0x100 and 0xFC) either to 2.125478 or to 1.
function theGiant()if giants == on then
gg.setRanges(gg.REGION_ANONYMOUS | gg.REGION_OTHER)
gg.clearResults()
gg.searchNumber('h 85 EB 91 3F 6F 12 03 3C', gg.TYPE_FLOAT)
gg.refineNumber('h 85', gg.TYPE_BYTE)
p = gg.getResults(50)
gg.clearResults()
xHight ={}
yHight ={}
zHight ={}for i, v in ipairs(p)do
xHight[i]={address = v.address -0x104, flags = gg.TYPE_FLOAT}
yHight[i]={address = v.address -0x100, flags = gg.TYPE_FLOAT}
zHight[i]={address = v.address -0xFC, flags = gg.TYPE_FLOAT}end
xHight = gg.getValues(xHight)
yHight = gg.getValues(yHight)
zHight = gg.getValues(zHight)for i, v in ipairs(xHight)do
v.value ='2.125478'
gg.setValues(xHight)endfor i, v in ipairs(yHight)do
v.value ='2.125478'
gg.setValues(yHight)endfor i, v in ipairs(zHight)do
v.value ='2.125478'
gg.setValues(zHight)endelsefor i, v in ipairs(xHight)do
v.value ='1'
gg.setValues(xHight)endfor i, v in ipairs(yHight)do
v.value ='1'
gg.setValues(yHight)endfor i, v in ipairs(zHight)do
v.value ='1'
gg.setValues(zHight)endendend
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
Platonic
This repetitive behavior don't make sense. would like to reduce this pointless repeating in this function theGiant. If anyone can perhaps explain a more efficient way for writhe this function without the need of making such amount of tables for basically one simple thing. which is editing all the values on given offsets (0x104, 0x100 and 0xFC) either to 2.125478 or to 1.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.