• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient OTC UI tooltips

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,336
Solutions
68
Reaction score
1,018
Anyone know how to properly do this? It seems the LocalPlayer object does exist but for some reason I can't use the lua functions associated with it.

Code:
!tooltip: tr('Increases maximum health by %d', LocalPlayer:getLevelStat(0))

1712530057718.png
 
Is in lua.
not in otui

Lua:
local localPlayer = g_game.getLocalPlayer()
Widget:setTooltip(string.format("Increases maximum health by %d", localPlayer:getLevelStat(0)))
 
Thank you, I couldn't find the methods for widget I guess. Didn't see setTooltip anywhere.
 
Back
Top