Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement