• 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!

Customizing OtClient Panels

Helliot1

Owner of Empire Online
Joined
Jul 26, 2017
Messages
315
Solutions
1
Reaction score
58
I need some help, i'll list here somethings!! If someone helps me start this, I'll be very grateful.

*Remove the Top Buttons and change the place of Health, Mana bar. Change the status bar to Inventory Panel and increase the size of Slots of 32 to 42.
BYtXjSdDTdiB_IxBQ8ZcLg.png


*Change the default view of the client. This is the default now:
rHMyz5_fQiKJoPRFmj-cWw.png


But I need put this view to this mode (More zoom out)
iMLbuJmRSsezEXLLhRiT_g.png
 
u literally stole these graphics then u sit here on otland spamming easy questions about otclient that has alrdy been answered 100x
NICE PROJECT.
 
u literally stole these graphics then u sit here on otland spamming easy questions about otclient that has alrdy been answered 100x
NICE PROJECT.

Bro, if they already are answered, where they are ?!
Because I don't found it. If you think that is easy, Okay! But I'm a begginer, and I wanna know how to do it. If you read better you'll see that I said "if someone help me start this"...

You are bored because I'm using the zezenia sprites?! What are you doing with the Tibia sprites then ?! Stealing too?!
 
1. Create new panel inside interface. Push there health module.
2. Create new panel inside inventory, push there Conditions. Change size in otui from 34 to 42.
Done.
 
1. Create new panel inside interface. Push there health module.
2. Create new panel inside inventory, push there Conditions. Change size in otui from 34 to 42.
Done.

Bro, thanks, I was studying it, and finally learn a bit.

But the life on health bar don't are correct. I think that my mageinterface.lua have something wrong :confused:

fOvfr9xNTaG71pNRDdCLfw.png


Gameinterface.lua

Lua:
WALK_STEPS_RETRY = 10

healthBar = nil
gameRootPanel = nil
gameMapPanel = nil
gameRightPanel = nil
gameLeftPanel = nil
gameBottomPanel = nil
logoutButton = nil
mouseGrabberWidget = nil
countWindow = nil
logoutWindow = nil
exitWindow = nil
bottomSplitter = nil
limitedZoom = false
currentViewMode = 0
smartWalkDirs = {}
smartWalkDir = nil
walkFunction = nil
hookedMenuOptions = {}

function init()
  connect(LocalPlayer, { onHealthChange = onHealthChange })
  healthBar = healthInfoWindow:recursiveGetChildById('healthBar')
end

function terminate()
  disconnect(LocalPlayer, { onHealthChange = onHealthChange })
end

function onHealthChange(localPlayer, health, maxHealth)
  healthBar:setText(health .. ' / ' .. maxHealth)
  healthBar:setTooltip(tr(healthTooltip, health, maxHealth))
  healthBar:setValue(health, 0, maxHealth)
end

Somebody can help me fix my gameinterface.lua ?

Somebody?

Bump

Bump

Bump
 
Last edited by a moderator:
I think you don't understand bro.

What I said is that I make the Health bar module, and put the function, but It's not working when my life goes down!!

My gameinterface.lua
Lua:
WALK_STEPS_RETRY = 10
healthBar = nil
gameRootPanel = nil
gameMapPanel = nil
gameRightPanel = nil
gameLeftPanel = nil
gameBottomPanel = nil
logoutButton = nil
mouseGrabberWidget = nil
countWindow = nil
logoutWindow = nil
exitWindow = nil
bottomSplitter = nil
limitedZoom = false
currentViewMode = 0
smartWalkDirs = {}
smartWalkDir = nil
walkFunction = nil
hookedMenuOptions = {}
function init()
  connect(LocalPlayer, { onHealthChange = onHealthChange })
  healthBar = healthInfoWindow:recursiveGetChildById('healthBar')
end
function terminate()
  disconnect(LocalPlayer, { onHealthChange = onHealthChange })
end
function onHealthChange(localPlayer, health, maxHealth)
  healthBar:setText(health .. ' / ' .. maxHealth)
  healthBar:setTooltip(tr(healthTooltip, health, maxHealth))
  healthBar:setValue(health, 0, maxHealth)
end
...
 
Back
Top