Slime
Active Member
- Joined
- Jan 25, 2014
- Messages
- 115
- Reaction score
- 32
I need some tips on how to draw an additional overlay based on the item a character is wearing in the head slot. I've been looking for solution inside mapview.cpp and creature.cpp, but nothing comes to my mind. My guess would be that I should send additional data from server about ids of helmets people on the screen are wearing, then make a table with item id - looktype to draw - position offset for every outfit, but it's not that easy to bring to reality. I'm trying to understand how functions like Creature::internalDrawOutfit or Creature::drawOutfit work, but I cant figure out where do they get the tibia.dat id of looktype to draw.