You will need to hide interaction scene, it should be something like:
Lua Code:
SCENE_MANAGER:Hide("loreReaderInteraction")
Or maybe better is showing base scene instead of just hidding interact scene, this is an action what default Exit button does:
Lua Code:
SCENE_MANAGER:ShowBaseScene()
If you want to completely disable LoreReader instead of immediately hidding, you will need something like (untested):
Lua Code:
local hide_lorereader = true
local function Show_Hook(self, title, body, medium, showTitle)
if hide_lorereader and SCENE_MANAGER:IsShowingBaseScene() then --disable LoreReader just for interactions, not for LoreLibrary
d(zo_strformat("Book: |cFFFFFF<<1>>|r", title))
PlaySound(SOUNDS.BOOK_OPEN)
EndInteraction(INTERACTION_BOOK)
end
return hide_lorereader
end
ZO_PreHook(LORE_READER, "Show", Show_Hook)