BulkMailInbox.PLAYER_ENTERING_WORLD = BulkMailInbox.MAIL_CLOSED -- MAIL_CLOSED doesn't get called if, for example, the player accepts a port with the mail window open
BulkMailInbox.PLAYER_ENTERING_WORLD = BulkMailInbox.MAIL_CLOSED -- MAIL_CLOSED doesn't get called if, for example, the player accepts a port with the mail window open
function mod:UI_ERROR_MESSAGE(event, msg) -- prevent infinite loop when inventory is full
function mod:UI_ERROR_MESSAGE(event, n, msg) -- prevent infinite loop when inventory is full
if msg == ERR_INV_FULL then
if msg == ERR_INV_FULL then
invFull = true
invFull = true
end
end
end
end
-- Take next inbox item or money skip past CoD items and letters.
-- Take next inbox item or money skip past CoD items and letters.
local prevSubject = ''
local prevSubject = ''
function mod:SmartCancelTimer(name)
function mod:SmartCancelTimer(name)
mod.timers = mod.timers or {}
mod.timers = mod.timers or {}
if mod.timers[name] then
if mod.timers[name] then
mod:CancelTimer(mod.timers[name], true)
mod:CancelTimer(mod.timers[name], true)
mod.timers[name] = nil
mod.timers[name] = nil
end
end
end
end
function mod:SmartScheduleTimer(name, override, method, timeout, ...)
function mod:SmartScheduleTimer(name, override, method, timeout, ...)