• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

OTClient OTC UI tooltips

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,461
Solutions
68
Reaction score
1,123
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)))
 

Similar threads

Replies
0
Views
366
Back
Top