[C++]Anunt item upgradat cu succes

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Avatar utilizator
-DND-
Utilizatorul Lunii Ianuarie

Utilizatorul Lunii Ianuarie
Mesaje: 1464
Membru din: 22 Ian 2017, 16:40
Server: Serverfiles By DnD
Regat: Jinno
Aprecieri: 116  
Mulţumiri: 2249  
Discord: Copiază ID
 Contact:
Medalii

andi opris da-mi skype-ul tau sau ia-l pe al meu sa facem ceva smecher la el :D vladutzvladutz2!
Pentru acest mesaj, -DND- for the post:
redbull12
Avatar utilizator
alinut86
Nivel 1

Nivel 1
Mesaje: 109
Membru din: 25 Iun 2014, 02:45
Server: nu estem
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 0
 Contact:
Medalii

AndyOpris scrie:Salut , astazi va voi prezenta si oferii sistemul de anunt pe chat cand iti reuseste un item la +.
Poza:
Imagine Tutorial instalare:
Intram in common/service.h si adaugam:
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
	#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
	#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7 // Anuntul incepe de la +7 pana la +9(modifica 7 de la cat vrei sa incepe anuntul)
#endif
Intram in game/char_item.cpp :

Cauta(sunt 2 locuri unde trebuie gasite, inlolcuiesti la ambele):
ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (REFINE SUCCESS)");
Adauga sub:
#ifdef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
//Start Configurare Anunt
			if (pkNewItem->GetRefineLevel() >= ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL) 
			{		
				char szUpgradeAnnouncement[QUERY_MAX_LEN];
				snprintf(szUpgradeAnnouncement, sizeof(szUpgradeAnnouncement), "|cff00ffec|H|h[METIN2A] |cffff9a00|H|h Jucatorul %s a upgradat itemul |cffffc700|H|h[%s]|h|r |cffff9a00|H|hcu succes!", GetName(), pkNewItem->GetName());
				BroadcastNotice(szUpgradeAnnouncement);
			}
//Stop Configurare Anunt 
#endif
Compliem sursa si aia e.
Salut , De ce imi da eroarea aceasta ?

../../common/service.h:17:7: warning: no newline at end of file
^Cgmake: *** Deleting file `OBJDIR/OXEvent.o'
gmake: *** [OBJDIR/OXEvent.o] Interrupt: 2
Best Edition [/b][/b][/b]http://metin2avenger.ro/
Afișează semnătura
Avatar utilizator
hokito95
Fost Designer

Fost Designer
Mesaje: 631
Membru din: 15 Dec 2013, 22:54
Regat: Chunjo
Aprecieri: 2  
Mulţumiri: 8  
Medalii

alinut86,
gmake dep
gmake clean
gmake -j20
Avatar utilizator
alinut86
Nivel 1

Nivel 1
Mesaje: 109
Membru din: 25 Iun 2014, 02:45
Server: nu estem
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 0
 Contact:
Medalii

hokito95 scrie:alinut86,
gmake dep
gmake clean
gmake -j20

Aceiasi Problema

Aici Macar este Bn ?

#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#endif
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
Best Edition [/b][/b][/b]http://metin2avenger.ro/
Afișează semnătura
Avatar utilizator
-DND-
Utilizatorul Lunii Ianuarie

Utilizatorul Lunii Ianuarie
Mesaje: 1464
Membru din: 22 Ian 2017, 16:40
Server: Serverfiles By DnD
Regat: Jinno
Aprecieri: 116  
Mulţumiri: 2249  
Discord: Copiază ID
 Contact:
Medalii

#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
Pentru acest mesaj, -DND- a primit 2 (de) mulţumiri
alinut86 • redbull12
Avatar utilizator
Pongo A.K.A Titan
Utilizator interzis !

Utilizator interzis !
Mesaje: 2028
Membru din: 01 Sep 2016, 16:08
Regat: Jinno
Aprecieri: 35  
Mulţumiri: 261  
 Contact:
Medalii

Functia asta este functionala nu ai aranjat tu corect functile
 ! Mesaj de la: Pongo A.K.A Titan
Cand credeati ca am sa mor
M-am ridicat ca un invingator
Afișează semnătura
Avatar utilizator
alinut86
Nivel 1

Nivel 1
Mesaje: 109
Membru din: 25 Iun 2014, 02:45
Server: nu estem
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 0
 Contact:
Medalii

Pongo scrie:Functia asta este functionala nu ai aranjat tu corect functile
Ma dar tu vii peste tot cu vb de duh :)) aranjazo tu si o dai asa face un helper , nu trage observatii , ai am puso fix ca in tutorial ,,, si tot nu merge ,
Best Edition [/b][/b][/b]http://metin2avenger.ro/
Afișează semnătura
Avatar utilizator
alinut86
Nivel 1

Nivel 1
Mesaje: 109
Membru din: 25 Iun 2014, 02:45
Server: nu estem
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 0
 Contact:
Medalii

-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !

tot la fel :

../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef
Best Edition [/b][/b][/b]http://metin2avenger.ro/
Afișează semnătura
Avatar utilizator
-DND-
Utilizatorul Lunii Ianuarie

Utilizatorul Lunii Ianuarie
Mesaje: 1464
Membru din: 22 Ian 2017, 16:40
Server: Serverfiles By DnD
Regat: Jinno
Aprecieri: 116  
Mulţumiri: 2249  
Discord: Copiază ID
 Contact:
Medalii

alinut86 scrie:
-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !

tot la fel :

../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef

ia vezi asa

Cod: Selectaţi tot

#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
	#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
	#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
Pentru acest mesaj, -DND- a primit 2 (de) mulţumiri
redbull12 • alinut86
Avatar utilizator
-DND-
Utilizatorul Lunii Ianuarie

Utilizatorul Lunii Ianuarie
Mesaje: 1464
Membru din: 22 Ian 2017, 16:40
Server: Serverfiles By DnD
Regat: Jinno
Aprecieri: 116  
Mulţumiri: 2249  
Discord: Copiază ID
 Contact:
Medalii

alinut86 scrie:
-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__

#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾Ïȣȭ °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !

tot la fel :

../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef

ai rezolvat pana la urma cu ultimul meu citat inainte de asta?
Închis
Răspunsuri
12
Vizualizări
1430
Răspunsuri
1
Vizualizări
249
Răspunsuri
1
Vizualizări
118

Înapoi la “Arhivă”

  • Informaţie