- Joined
- Oct 31, 2019
- RedCents
- 1,861¢
Searching the forums I found statements that CWTN plugins unload XAssist because it was causing troubles.
so:
doesn't work anymore. It creates an errormessage now like: attempt to index field 'Xassist' (a nil value)
Searching further I found a snippet as part of Multihunter which I may can use as substitute for my luas.
Would that be something like best practice now to get the number of mobs on aggro?
Is there a non critical TLO available which offers "XTFullHaterCount"?
so:
HaterCount:
return mq.TLO.XAssist.XTFullHaterCount()
Searching further I found a snippet as part of Multihunter which I may can use as substitute for my luas.
Autohater:
local function get_xtar_count()
local m = mq.TLO.Me
local xtc = 0
for n = 1,20 do
if m.XTarget(n).ID() ~= nil and m.XTarget(n).ID() ~= 0 and m.XTarget(n).TargetType() == 'Auto Hater' then
xtc = xtc+1
end
end
--debug_xtars('Xtar count return: '..xtc)
return xtc
end
Is there a non critical TLO available which offers "XTFullHaterCount"?
Last edited: