drawthow
Well-known member
- Joined
- Sep 8, 2019
- RedCents
- 2,081¢
I added a line to restart lootnscoot when the message is displayed that it's not running. So for the only problem is in the multiple entries in the master looting table for character selection, but I had that problem when restarting RGMercs on characters that the loot crashed on.
function Module:GiveTime(combat_state)
if not Config:GetSetting('DoLoot') then return end
if Config.Globals.PauseMain then return end
if mq.TLO.Lua.Script('lootnscoot').Status() ~= 'RUNNING' then
if not warningMessageSent then
Core.DoCmd("/lua run lootnscoot directed rgmercs")
Logger.log_error("\ar[LOOT]: Looting is enabled, but LNS does not appear to be running!")
Comms.PrintGroupMessage("%s has looting enabled, but LNS does not appear to be running!", mq.TLO.Me.CleanName())
warningMessageSent = true
end
return
end
function Module:GiveTime(combat_state)
if not Config:GetSetting('DoLoot') then return end
if Config.Globals.PauseMain then return end
if mq.TLO.Lua.Script('lootnscoot').Status() ~= 'RUNNING' then
if not warningMessageSent then
Core.DoCmd("/lua run lootnscoot directed rgmercs")
Logger.log_error("\ar[LOOT]: Looting is enabled, but LNS does not appear to be running!")
Comms.PrintGroupMessage("%s has looting enabled, but LNS does not appear to be running!", mq.TLO.Me.CleanName())
warningMessageSent = true
end
return
end





