I don't quite understand what are you trying to accomplish with
Lua Code:
elseif string.find(UNTI, '% ') then -- for respect mobs
UNTI = UNTI;
Depending on answer, line 5 might get changed into
Code:
UNTI = UNTI.."-"..realmName;
, and consequent check simplified into
Code:
if BangHateds[UNTI] then
.
Is it me, or there really are several global variables?