Using Sabrehaven master branch. As title says: when a player is in a party, no matter if you are a leader or member, you don't have a green skull. All other party members have one on your screen, but on each player's screen they don't have a skull:
The screenshot is taken from the perspective of the blue player, and he doesnt have a green skull, but the white player does. However, on the white player's PC, from his perspective, he does NOT have a skull himself, and the blue player DOES have a skull.
From what I understand, this function in player.cpp determines when players get a green skull:
I have look through any file that references the word "skull" and I cant see anything, I even compared to a different distro that is working and this function is the same, party.cpp is the same...
Thank you
The screenshot is taken from the perspective of the blue player, and he doesnt have a green skull, but the white player does. However, on the white player's PC, from his perspective, he does NOT have a skull himself, and the blue player DOES have a skull.
From what I understand, this function in player.cpp determines when players get a green skull:
C++:
Skulls_t Player::getSkullClient(const Creature* creature) const
{
if (!creature || g_game.getWorldType() != WORLD_TYPE_PVP) {
return SKULL_NONE;
}
const Player* player = creature->getPlayer();
if (!player || player->getSkull() != SKULL_NONE) {
return Creature::getSkullClient(creature);
}
if (isInWar(player)) {
return SKULL_GREEN;
}
if (player->hasAttacked(this)) {
return SKULL_YELLOW;
}
if (isPartner(player)) {
return SKULL_GREEN;
}
return Creature::getSkullClient(creature);
}
I have look through any file that references the word "skull" and I cant see anything, I even compared to a different distro that is working and this function is the same, party.cpp is the same...
Thank you