Boss notice

Results 1 to 7 of 7
  1. #1
    Valued Member garinggo is offline
    MemberRank
    Oct 2015 Join Date
    Malolos BulacanLocation
    128Posts

    Question Boss notice

    AttackArbiter.cpp

    #include "DPCoreClient.h"
    extern CDPCoreClient g_DPCoreClient;


    void CAttackArbiter::OnDied()

    Code:
    #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.SendCaption(BossNotice);    
    }
    #endif
    Definetext.h

    Code:
    #define    TID_BOSS_DIE    6435
    textclient.inc
    Code:
    TID_BOSS_DIE        0xffffffff
    {    
    IDS_TEXTCLIENT_INC_004981    
    }
    textclient.txt

    Code:
    IDS_TEXTCLIENT_INC_004981    %s %s
    Did i miss something ? Thank you in advance :) Have a Nice Day


  2. #2
    Apprentice veryez2k1 is offline
    MemberRank
    Sep 2022 Join Date
    7Posts
    Is __MONSTER_NOTICE defined in your VersionCommon.h or kCommon.h (if your source has one)

    There's 2 Definetext.h, one in Server\Resource and one in Source\Resource, if your compiler isn't throwing out errors check if TID_BOSS_DIE ​is defined in your server\Resource.

  3. #3
    Valued Member garinggo is offline
    MemberRank
    Oct 2015 Join Date
    Malolos BulacanLocation
    128Posts
    yes sir. __MONSTER_NOTIC already defined

  4. #4
    Apprentice veryez2k1 is offline
    MemberRank
    Sep 2022 Join Date
    7Posts
    I suggest checking your 2 (server\resource, and source\resource) defineText.h for duplicates, the one in bold below
    Code:
    #define    TID_BOSS_DIE    6435
    

  5. #5
    Valued Member garinggo is offline
    MemberRank
    Oct 2015 Join Date
    Malolos BulacanLocation
    128Posts
    It's working on boss, not giant, I discovered. Did you also know how to make it on giant?

  6. #6
    Apprentice lukamodrid1 is offline
    MemberRank
    Oct 2020 Join Date
    18Posts
    It's very simple, just a small change in the first code you posted:

    Code:
    #ifdef __MONSTER_NOTICE   
    if (m_pDefender->GetProp()->dwClass == RANK_SUPER || m_pDefender->GetProp()->dwClass == RANK_BOSS)
    {     
          CString BossNotice;
          BossNotice.Format(prj.GetText(TID_BOSS_DIE), m_pAttacker->GetName(), m_pDefender->GetName());
          g_DPCoreClient.SendCaption(BossNotice); 
    }
    #endif

  7. #7
    Valued Member garinggo is offline
    MemberRank
    Oct 2015 Join Date
    Malolos BulacanLocation
    128Posts
    Thank You bro :) +REP



Advertisement