Took a long break from FFXI and came back to game last month. I have found some problems while using OhShi addon:
(1) the exclamation mark image (for dangerous TP move) is not flashing, it just pop and remains on the screen.
(2) the text box for displaying the mob's TP move is not shown on the screen.
I partially solved problem 1 by using windower.prim.create to overlap the original image with a transparent image, and problem 2 by using windower.text.create to create another text box.
After inspecting the ohshi.lua, I suspect the problems might not be from OhShi, but from windower.prim.delete and texts.lua. I put these codes into Ohshi but the exclamation mark image still stays on the screen:
Code:
function flashImage()
local name = 'ohShi'..tostring(math.random(10000000,99999999))
windower.prim.create(name)
windower.prim.set_color(name,255,255,255,255)
windower.prim.set_fit_to_texture(name,false)
windower.prim.set_texture(name,windower.addon_path..'data/warning.png')
windower.prim.set_repeat(name,1,1)
windower.prim.set_visibility(name,true)
windower.prim.set_position(name,settings.pos.x-30,settings.pos.y-10)
windower.prim.set_size(name,30,30)
coroutine.sleep(3)
windower.prim.delete(name)
end
As for the texts.lua: I downloaded the distance.lua addon and it doesn't show anything on screen (the distance plugin is working well). I playing FFXI on windows 8.1