Monster notice

Results 1 to 6 of 6
  1. #1
    Registered RookieDev is offline
    MemberRank
    Feb 2021 Join Date
    14Posts

    Monster notice

    Monster notice
    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 :https://prnt.sc/10c3zipI

    I want to show my monster notice in CHAT or CAPTION
    i want to show like this : https://prnt.sc/10c42pi
    or show in chat : https://prnt.sc/10c445j

    Code : Screenshot by Lightshot (prnt.sc)
    Last edited by RookieDev; 03-03-21 at 12:44 PM. Reason: adding code


  2. #2
    127.0.0.1 Groxy101 is offline
    True MemberRank
    Apr 2010 Join Date
    382Posts

    Re: Monster notice

    g_DPCoreClient.SendSystem = also visible in chat

    Last edited by Groxy101; 05-03-21 at 08:39 PM.

  3. #3
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    1,540Posts

    Re: Monster notice

    Quote Originally Posted by RookieDev View Post
    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 :https://prnt.sc/10c3zipI

    I want to show my monster notice in CHAT or CAPTION
    i want to show like this : https://prnt.sc/10c42pi
    or show in chat : https://prnt.sc/10c445j

    Code : Screenshot by Lightshot (prnt.sc)
    What have you actually tried?

    Also taking a screenshot of public code and then forcing others to track it down to help you is pretty silly. You can easily just post the code.

  4. #4
    Registered RookieDev is offline
    MemberRank
    Feb 2021 Join Date
    14Posts

    Re: Monster notice

    In the release its SendSystem i tried to change it to SendCaption but its not working .

  5. #5
    127.0.0.1 Groxy101 is offline
    True MemberRank
    Apr 2010 Join Date
    382Posts

    Re: Monster notice

    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:
    Spoiler:


    Last edited by Groxy101; 07-03-21 at 02:10 PM.

  6. #6
    Registered RookieDev is offline
    MemberRank
    Feb 2021 Join Date
    14Posts

    Re: Monster notice

    Quote Originally Posted by Groxy101 View Post
    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:
    Spoiler:



    Thankyou so much Groxy!



Advertisement