3 mesaje
Administrator Administrator
  • Mesaje: 3545
  • Reacții: 59419
  • Mesaje utile: 37
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    *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
    *Link download / Code:

    Deschidem char_manager.cpp si cautam:
    Code:
    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:
    Code:
    #define ENABLE_BOSS_SPAWN_NOTICE

    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
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem aproape 2000 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    Suntem aproape: 
    Robot Discord
    Roboțelu'
    Anunț
  • Mesaje: 7
  • Reacții: 1
  • Mesaje utile: 0
  • Medalii

    Sau mai simplu:

    Search:
    Code:
    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 )
    Code:
    if (ch->GetMobRank() >= MOB_RANK_BOSS)
    {
        BroadcastNotice("%s has been spawned!", ch->GetName());
    }
    
    ar trebui sa arate cam asa:
    Code:
    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);
    }
    
    
    Administrator Administrator
  • Mesaje: 3545
  • Reacții: 59419
  • Mesaje utile: 37
  • Status: Pe aici.. 🤠
  • Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • Contact:
    Avatar utilizator
    Administrator
    Administrator

    Mesaj de [HF]White »

    laurentiu_hetruc scrie: Sau mai simplu:

    Search:
    Code:
    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 )
    Code:
    if (ch->GetMobRank() >= MOB_RANK_BOSS)
    {
        BroadcastNotice("%s has been spawned!", ch->GetName());
    }
    
    ar trebui sa arate cam asa:
    Code:
    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
    Te asteptam si pe serverul de Discord :p - aici ne-am strans toata comunitatea de Metin2 din Romania.
    Link: https://discord.gg/jWxeDSf7HP

    Suntem aproape 2000 membri! - Avem chat activ zilnic, support, cereri, resurse. :D :ymcowboy:




    See full signature

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    Suntem aproape: 
    Robot Discord
    Roboțelu'
    Anunț
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

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

    Informații

    Utilizatori ce navighează pe acest forum: Phanthom, Rofedexx, yahacker007 și 1 vizitator

    Discord ID copiat: