About Boss Notice

04/21/2018 22:18 xToffer#1
#ifdef __MONSTER_NOTICE
if( m_pDefender->GetProp()->dwClass == RANK_SUPER )
{
CString BossNotice;
BossNotice.Format( prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
g_DPCoreClient.SendSystem(BossNotice);
}
#endif

when i killed the boss in colo it notice how i make it not notice only in the dungeons and not in the colo?
and make it smaller the notice like this

[Only registered and activated users can see links. Click Here To Register...]

sorry for the english and grammar.

and the code is not mine
Credits to : banktakung
04/21/2018 23:37 Professor Linebeck#2
Quote:
Originally Posted by xToffer View Post
how i make it not notice only in the dungeons and not in the colo?
Your solution is already [Only registered and activated users can see links. Click Here To Register...], just change the operator to !=.


Quote:
Originally Posted by xToffer View Post
and make it smaller the notice like this

[Only registered and activated users can see links. Click Here To Register...]
Use SendCaption, not SendSystem.

If you don't get it, you might be able to c&p this code:
Code:
#ifdef __MONSTER_NOTICE
if( m_pDefender->GetProp()->dwClass == RANK_SUPER && m_pDefender->GetWorld()->GetID() != WI_WORLD_COLOSSEUM )
 {
     CString BossNotice;
     BossNotice.Format( prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
     g_DPCoreClient.SendCaption(BossNotice);
 }
#endif
04/22/2018 20:14 xToffer#3
Quote:
Originally Posted by Professor Linebeck View Post
Your solution is already [Only registered and activated users can see links. Click Here To Register...], just change the operator to !=.



Use SendCaption, not SendSystem.

If you don't get it, you might be able to c&p this code:
Code:
#ifdef __MONSTER_NOTICE
if( m_pDefender->GetProp()->dwClass == RANK_SUPER && m_pDefender->GetWorld()->GetID() != WI_WORLD_COLOSSEUM )
 {
     CString BossNotice;
     BossNotice.Format( prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
     g_DPCoreClient.SendCaption(BossNotice);
 }
#endif
thanks for this sir :D
04/23/2018 09:06 babyminion#4
mine its not appearing :( can anyone help please?
04/23/2018 09:12 Minotaurr#5
Quote:
Originally Posted by babyminion View Post
mine its not appearing :( can anyone help please?
Send your code here
04/23/2018 09:33 babyminion#6
Quote:
Originally Posted by Minotaurr View Post
Send your code here


i put this on attackarbitter.cpp
Code:
#include "DPCoreClient.h"
extern	CDPCoreClient		g_DPCoreClient;
and this is monster_notice entry:
Code:
#ifdef __MONSTER_NOTICE
if( m_pDefender->GetProp()->dwClass == RANK_SUPER && m_pDefender->GetWorld()->GetID() != WI_WORLD_COLOSSEUM )
 {
     CString BossNotice;
     BossNotice.Format( prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
     g_DPCoreClient.SendCaption(BossNotice);
 }
#endif
04/23/2018 09:54 Minotaurr#7
Quote:
Originally Posted by babyminion View Post
i put this on attackarbitter.cpp
Code:
#include "DPCoreClient.h"
extern	CDPCoreClient		g_DPCoreClient;
and this is monster_notice entry:
Code:
#ifdef __MONSTER_NOTICE
if( m_pDefender->GetProp()->dwClass == RANK_SUPER && m_pDefender->GetWorld()->GetID() != WI_WORLD_COLOSSEUM )
 {
     CString BossNotice;
     BossNotice.Format( prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
     g_DPCoreClient.SendCaption(BossNotice);
 }
#endif
Seems good to me, have you done VersionCommon?
#define __MONSTER_NOTICE \\
04/23/2018 10:24 babyminion#8
Quote:
Originally Posted by Minotaurr View Post
Send your code here
Quote:
Originally Posted by Minotaurr View Post
Seems good to me, have you done VersionCommon?
#define __MONSTER_NOTICE \\
yes i am and i define TID_BOSS_DIE on definetext nothing appears when i kill Boss ( RANK_SUPER )
04/23/2018 10:35 xToffer#9
Quote:
Originally Posted by babyminion View Post
yes i am and i define TID_BOSS_DIE on definetext nothing appears when i kill Boss ( RANK_SUPER )
Code:
m_pAttacker->GetName(), m_pDefender->GetName());
in textclient.txt
Code:
 %s %s
04/23/2018 15:54 babyminion#10
Quote:
Originally Posted by xToffer View Post
Code:
m_pAttacker->GetName(), m_pDefender->GetName());
in textclient.txt
Code:
 %s %s
its works fine now and i use SendCaption instead of SendSystem but the system is still shouting. and 1 more im on Madrigal not just in colo or dungeon ( Still announcing ) :D

[Only registered and activated users can see links. Click Here To Register...]
04/24/2018 07:50 Minotaurr#11
Quote:
Originally Posted by babyminion View Post
its works fine now and i use SendCaption instead of SendSystem but the system is still shouting. and 1 more im on Madrigal not just in colo or dungeon ( Still announcing ) :D

[Only registered and activated users can see links. Click Here To Register...]


That’s exactly what this code does
04/24/2018 15:50 babyminion#12
Quote:
Originally Posted by Minotaurr View Post
That’s exactly what this code does
i thought SendCaption is only for Event Greetings like @[Only registered and activated users can see links. Click Here To Register...] ask btw thanks for the info :D