Quote:
Originally Posted by banktakung
in Ondie() function i want a player auto command when monster die.
in Dpsrv.cpp it no problem to use ParsingCommand.
|
I don't see a reason why one wanted to do this, but here you go.
In CAttackArbiter::OnDied(), add
Code:
if(m_pAttacker->IsPlayer() && !m_pDefender->IsPlayer())
{
ParsingCommand("/yourRandomCommand", m_pAttacker);
}