Someone actually PM'd me asking about wanting to know some delta's about HP and was statically defining HP in his LUA. I wanted to see if I could somehow automate and/or 'update' this a little easier. so I felt I could loop through all gearsets inside of 'sets'; equip it - record the vitals and then use that data as variables later.
The quick code I came up with (not working):
Code
for set,tableset in pairs(sets) do if type(tableset) == 'table' then print(set) --equip(tableset) send_command("gs equip sets."..set) print(player.hp) hpsets[set] = player.hp --(need to sleep here) end end
(Figured easy enough to start w/ hp, but ultimately record all the vitals in either player table or windower.ffxi.get_player() )
The problem is there's no way to sleep (that I can find, because coroutine.sleep is turned off) to iterate over each set. (there's other problems, such as nested tables but I digress).
Anyway - any ideas here are appreciated.