• 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 setEmblem (change position)

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
Hi guys, how can i change the position where the Guild Emblem shows? in OTCv8?
currently it appears on the right side of the character.
I want it to appear on the left side

function:
Lua:
self:setEmblem(EmblemGreen)
 
Hi guys, how can i change the position where the Guild Emblem shows? in OTCv8?
currently it appears on the right side of the character.
I want it to appear on the left side

function:
Lua:
self:setEmblem(EmblemGreen)
Find this code in creature.cpp:
C++:
if (m_emblem != Otc::EmblemNone && m_emblemTexture) {
        Rect emblemRect = Rect(backgroundRect.x() + 13.5 + 12, backgroundRect.y() + 16, m_emblemTexture->getSize());
        g_drawQueue->addTexturedRect(emblemRect, m_emblemTexture, Rect(0, 0, m_emblemTexture->getSize()));
 }
and work around these values
C++:
backgroundRect.x() + 13.5 + 12
 
Back
Top