HELLO GUYS GOOD DAY !
Can someone help me here about in Monster Notice
How i can make my monster notice to send Annouce in chat or in Caption
Monster notice :You must be registered to see links
I want to show my monster notice in CHAT or CAPTION
i want to show like this :You must be registered to see links
or show in chat :You must be registered to see links
Code :You must be registered to see links
#ifdef __MONSTER_NOTICE
if (m_pDefender->GetProp()->dwClass == RANK_SUPER)
{
CString BossNotice;
BossNotice.Format(prj.GetText(TID_BOSSNOTICE), m_pAttacker->GetName(), m_pDefender->GetName());
((CUser*)m_pAttacker)->AddText(BossNotice);
}
#endif
#define TID_BOSSNOTICE 6066
TID_BOSSNOTICE 0xffffffff
{
IDS_TEXTCLIENT_INC_005617
}
IDS_TEXTCLIENT_INC_005617 %s has killed %s
For anyone that want it:
CAttackArbiter::OnDied
Code:#ifdef __MONSTER_NOTICE if (m_pDefender->GetProp()->dwClass == RANK_SUPER) { CString BossNotice; BossNotice.Format(prj.GetText(TID_BOSSNOTICE), m_pAttacker->GetName(), m_pDefender->GetName()); ((CUser*)m_pAttacker)->AddText(BossNotice); } #endif
defineText.h (source + resource)
Code:#define TID_BOSSNOTICE 6066
textClient.inc
Code:TID_BOSSNOTICE 0xffffffff { IDS_TEXTCLIENT_INC_005617 }
textClient.txt.txt
Code:IDS_TEXTCLIENT_INC_005617 %s has killed %s
Image: