int healthPercent = msg->getU8();
Otc::Direction direction = (Otc::Direction)msg->getU8();
Outfit outfit = getOutfit(msg);
Light light;
light.intensity = msg->getU8();
light.color = msg->getU8();
int speed = msg->getU16();
int skull = msg->getU8();
int shield = msg->getU8();
// emblem is sent only when the creature is not known
int8 emblem = -1;
int8 creatureType = -1;
int8 icon = -1;
bool unpass = true;
uint8 mark;
if(g_game.getFeature(Otc::GameCreatureEmblems) && !known)
emblem = msg->getU8();
if(g_game.getFeature(Otc::GameThingMarks)) {
creatureType = msg->getU8()...
that was actually a serious tip, and btw you provided no client information, tibia client (will be harder I guess) or OTCAny other, serious tips?
check a higher Sources add those icons into yours and enable them on otclient, it's not possible easily do that into cipsoft clientAny other, serious tips?
int healthPercent = msg->getU8();
Otc::Direction direction = (Otc::Direction)msg->getU8();
Outfit outfit = getOutfit(msg);
Light light;
light.intensity = msg->getU8();
light.color = msg->getU8();
int speed = msg->getU16();
int skull = msg->getU8();
int shield = msg->getU8();
// emblem is sent only when the creature is not known
int8 emblem = -1;
int8 creatureType = -1;
int8 icon = -1;
bool unpass = true;
uint8 mark;
if(g_game.getFeature(Otc::GameCreatureEmblems) && !known)
emblem = msg->getU8();
if(g_game.getFeature(Otc::GameThingMarks)) {
creatureType = msg->getU8();
}
if(g_game.getFeature(Otc::GameCreatureIcons)) {
icon = msg->getU8();
}
if(g_game.getFeature(Otc::GameThingMarks)) {
mark = msg->getU8(); // mark
msg->getU16(); // helpers
if(creature) {
if(mark == 0xff)
creature->hideStaticSquare();
else
creature->showStaticSquare(Color::from8bit(mark));
}
}
if(g_game.getClientVersion() >= 854 || g_game.getFeature(Otc::GameCreatureWalkthrough))
unpass = msg->getU8();