These values are also what I'm using in my new OEUO scripts. Sample code for both of your questions:
dofile("tm_namespaces9.lua")
ns = TM_NS:New() -- setup local and global namespaces
-- ..
-- ..
-- ..
function Check_Status()
if UO.TargCurs == true or UO.LLiftedKind == true then
return true
end
if ns:ReadAbs("global","TM_HEAL","TM_HEAL") == true then
return true
end
if ns:ReadAbs("global","TM_loot","TM_loot_in_progress") == true then
return true
end
return false
end
-- Inline looter busy test
--
-- repeat
-- until ns:ReadAbs("global","TM_loot","TM_loot_in_progress") ~= true
--
I created the "ReadAbs" and "WriteAbs" routines because there's lots of times when you want to directly read from an addressed namespace, so it's a pain in the butt to copy the value from that namespace and then address it using the current namespace. Again, that just came from lots of experience using Cheffes namespace stuff to see what works and what's cumbersome.