Implementation code "PrintToServer"
Posted: Mon Nov 28, 2016 1:52 am
Code "printtoserver", I realize.
I think he is injected into the dark star host SRC \ map \ entity \.Cpp charentity"
1541 lines
void CCharEntity::Die()
{
if (GetBattleTargetID() == 0)
{
//falls to the ground
loc.zone->PushPacket(this, CHAR_INRANGE_SELF, new CMessageBasicPacket(this, this, 0, 0, 20));
}
else
{
auto PTarget = GetEntity(GetBattleTargetID());
loc.zone->PushPacket(this, CHAR_INRANGE_SELF, new CMessageBasicPacket(PTarget, this, 0, 0, 97));
}
Die(10min);
m_DeathCounter = 0;
m_DeathTimestamp = (uint32)time(nullptr);
//influence for conquest system
conquest::LoseInfluencePoints(this);
if (GetLocalVar("MijinGakure") == 0)
charutils::DelExperiencePoints(this, map_config.exp_retain);
}
When the player dies dynamically in the "printtoserver" notification server all players
How can I change this part of the code
Note: 我已经实现Code "printtoserver"
I think he is injected into the dark star host SRC \ map \ entity \.Cpp charentity"
1541 lines
void CCharEntity::Die()
{
if (GetBattleTargetID() == 0)
{
//falls to the ground
loc.zone->PushPacket(this, CHAR_INRANGE_SELF, new CMessageBasicPacket(this, this, 0, 0, 20));
}
else
{
auto PTarget = GetEntity(GetBattleTargetID());
loc.zone->PushPacket(this, CHAR_INRANGE_SELF, new CMessageBasicPacket(PTarget, this, 0, 0, 97));
}
Die(10min);
m_DeathCounter = 0;
m_DeathTimestamp = (uint32)time(nullptr);
//influence for conquest system
conquest::LoseInfluencePoints(this);
if (GetLocalVar("MijinGakure") == 0)
charutils::DelExperiencePoints(this, map_config.exp_retain);
}
When the player dies dynamically in the "printtoserver" notification server all players
How can I change this part of the code
Note: 我已经实现Code "printtoserver"