iluargrott
New Member
- Joined
- Sep 3, 2020
- Messages
- 7
- Reaction score
- 1
Hi!
Ive used the old Otclient and this mod worked:
Find this on Creature.cpp
Replace for this:
But when I try it on mehah's otclient I got this:
"point" undeclared identifier
"initializing": unable to convert from 'const char[6]' to 'char *'
Coulda someone please help me convert this mod to Mehah's otclient?
Ive used the old Otclient and this mod worked:
Find this on Creature.cpp
if(drawFlags & Otc::DrawNames) {
if(g_painter->getColor() != fillColor)
g_painter->setColor(fillColor);
m_nameCache.draw(textRect);
}
Replace for this:
if (drawFlags & Otc::DrawNames) {
if (g_painter->getColor() != fillColor)
g_painter->setColor(fillColor);
CachedText shiny;
shiny.setText("Shiny");
shiny.setFont(g_fonts.getFont("verdana-11px-rounded"));
Rect shinyrect = Rect(point.x - shiny.getTextSize().width() / 2.0, point.y - 26, shiny.getTextSize());
if (m_name.find("Shiny") != std::string::npos)
{
char* shinys = "Shiny";
std::string nname = m_name;
nname.erase(0, 5);
m_nameCache.setText(nname);
m_nameCache.draw(textRect);
g_painter->setOpacity(0.5);
g_painter->setColor(Color(255, 255, 0));
shiny.draw(shinyrect);
g_painter->resetColor();
g_painter->resetOpacity();
m_nameCache.setText(m_name);
} else {
m_nameCache.draw(textRect);
}
}
But when I try it on mehah's otclient I got this:
"point" undeclared identifier
"initializing": unable to convert from 'const char[6]' to 'char *'
Coulda someone please help me convert this mod to Mehah's otclient?