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

Scripter OTC Health Bar Hud

adamox223

New Member
Joined
Oct 21, 2017
Messages
99
Reaction score
4
Hello, i need make something like this:
2eai9vo.png


On serwer is four vocations and each have another avatar, i will create four bars images...

What i need? I need mod for otclient - Health Info with this work image, and when we are vocation 1 then have avatar from my pic, when have vocation 2 then have this avatar:
xlht8y.png


I need working health bar, mana bar, exp bar and level info and i will pay for this so maybe you can help me?

And sorry for my english :D If you have questions then pm me.
 
Take hp, mp and exp from healthinfo module and level from skills, add onVocationChange(localPlayer, localPlayer:getVocation()) - if I remember it is like that, and done. No need to pay for it.
 
@margoh i did it! :D but i dont know how to use vocation function, i dont know where i can put this and others.. can you help me?

262siec.png


i add something like this and dont work:

Code:
Backgrounds = 
{
[0] = { path = '/images/game/machine/avatar.png'},
[1] = { path = '/images/game/machine/avatar2.png'},
[2] = { path = '/images/game/machine/avatar3.png'},
}


ProtocolGame.registerExtendedOpcode(55, 
    function (protocol, opcode, buffer)
      local vocation = tonumber(buffer)
      if vocation and vocation ~= 0 then
      healthinfoWindow:setImageSource(Backgrounds[vocation].path)
      end 
end)
 
Last edited:
Back
Top