Administrator
Administrator
  • Mesaje: 4988
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 126047
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Avatar utilizator - SCOOB
    Administrator
    Administrator
    *Descriere:

    Anunt global in Chat atunci cand un Boss (Sef) se spawneaza in harta + Canalul unde s-a spawnat.

    Poti seta la ce bossi sa apara acest mesaj :) (Vedeti si voi in cod cum functioneaza)

    *Poze / Video:
    [C++] Anunt Spawn Bossi Chat - Mesaj 1 - Imagine 1
    11-30-2025, 22-51-08.png (740.76 KiB) Vizualizat de 833 ori
    *Link download / Code:

    Deschidem char_manager.cpp si cautam:

    Cod: Selectaţi tot

    LPCHARACTER CHARACTER_MANAGER::SpawnMob(DWORD dwVnum, long lMapIndex, long x, long y, long z, bool bSpawnMotion, int iRot, bool bShow)
    Adaugam sub:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    In service.h / CommonDefines.h adaugam:

    Cod: Selectaţi tot

    #define ENABLE_BOSS_SPAWN_NOTICE
    Fii primul care reacționează

    Nou Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Nou Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele rapid & simplu.

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo
    See full signature
    Mesaje: 22
    Membru din: 23 Noi 2025, 10:36
  • Reacții: 18
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • Medalii

    Mesaj

    Sau mai simplu:

    Search:

    Cod: Selectaţi tot

    LPCHARACTER CHARACTER_MANAGER::SpawnMob(DWORD dwVnum, long lMapIndex, long x, long y, long z, bool bSpawnMotion, int iRot, bool bShow)
    {
    ...................................................
    	if (bShow && !ch->Show(lMapIndex, x, y, z, bSpawnMotion))
    	{
    		M2_DESTROY_CHARACTER(ch);
    		sys_log(0, "SpawnMob: cannot show monster");
    		return NULL;
    	}
    
    (Adaugam aici )
    
    	return (ch);
    }
    
    Si adaugam unde scrie (Adaugam aici )

    Cod: Selectaţi tot

    if (ch->GetMobRank() >= MOB_RANK_BOSS)
    {
        BroadcastNotice("%s has been spawned!", ch->GetName());
    }
    
    ar trebui sa arate cam asa:

    Cod: Selectaţi tot

    LPCHARACTER CHARACTER_MANAGER::SpawnMob(DWORD dwVnum, long lMapIndex, long x, long y, long z, bool bSpawnMotion, int iRot, bool bShow)
    {
    ...................................................................
    	if (bShow && !ch->Show(lMapIndex, x, y, z, bSpawnMotion))
    	{
    		M2_DESTROY_CHARACTER(ch);
    		sys_log(0, "SpawnMob: cannot show monster");
    		return NULL;
    	}
    
    	if (ch->GetMobRank() >= MOB_RANK_BOSS)
    	{
    		BroadcastNotice("%s a fost spawnat!", ch->GetName());
    	}
    
    	return (ch);
    }
    
    
    Fii primul care reacționează
    Administrator
    Administrator
  • Mesaje: 4988
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 126047
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Avatar utilizator - SCOOB
    Administrator
    Administrator

    Mesaj

    laurentiu_hetruc scrie: ↑ Sau mai simplu:

    Search:

    Cod: Selectaţi tot

    LPCHARACTER CHARACTER_MANAGER::SpawnMob(DWORD dwVnum, long lMapIndex, long x, long y, long z, bool bSpawnMotion, int iRot, bool bShow)
    {
    ...................................................
    	if (bShow && !ch->Show(lMapIndex, x, y, z, bSpawnMotion))
    	{
    		M2_DESTROY_CHARACTER(ch);
    		sys_log(0, "SpawnMob: cannot show monster");
    		return NULL;
    	}
    
    (Adaugam aici )
    
    	return (ch);
    }
    
    Si adaugam unde scrie (Adaugam aici )

    Cod: Selectaţi tot

    if (ch->GetMobRank() >= MOB_RANK_BOSS)
    {
        BroadcastNotice("%s has been spawned!", ch->GetName());
    }
    
    ar trebui sa arate cam asa:

    Cod: Selectaţi tot

    LPCHARACTER CHARACTER_MANAGER::SpawnMob(DWORD dwVnum, long lMapIndex, long x, long y, long z, bool bSpawnMotion, int iRot, bool bShow)
    {
    ...................................................................
    	if (bShow && !ch->Show(lMapIndex, x, y, z, bSpawnMotion))
    	{
    		M2_DESTROY_CHARACTER(ch);
    		sys_log(0, "SpawnMob: cannot show monster");
    		return NULL;
    	}
    
    	if (ch->GetMobRank() >= MOB_RANK_BOSS)
    	{
    		BroadcastNotice("%s a fost spawnat!", ch->GetName());
    	}
    
    	return (ch);
    }
    
    
    doar ca asa va anunta la toti mobii, versiunea pe care am postat-o eu este pe vnum
    Fii primul care reacționează
    See full signature

    Înapoi la “Îmbunătățiri”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator

    Discord ID copiat: