LV. in fata numelui

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
marinelu97
Nivel 2

Nivel 2
Mesaje: 249
Membru din: 05 Iul 2014, 17:32
Regat: Chunjo
Aprecieri: 112  
Mulţumiri: 3  
Medalii

*Problemă/Întrebare:Cum pot sa pun LV in fata numelui? Am adaugat in UserInterface.cpp dar dupa compilare binary tot nu functioneaza. Mai trebuie schimbat undeva?
Tipologie server:PVM
*Resursă folosită:J4M
*ServerFiles utilizat:OrientalMT2 v2.0
Avatar utilizator
.ShadoW
Nivel 4

Nivel 4
Mesaje: 659
Membru din: 14 Noi 2013, 17:54
Server: not yet..
Regat: Jinno
Aprecieri: 379  
Mulţumiri: 32  
Medalii

InstanceBaseEffect din userinterface
void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
	static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#if defined(WJ_SHOW_MOB_INFO)
	static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#endif

	char szText[256];
	if (IsGameMaster())
		sprintf(szText, "|cFFADFF2FLv %d ", level); // Playeri
	else if (IsEnemy())
		sprintf(szText, "|cFFFF0000Lv %d|r", level); // Mobi
	else if (IsStone())
		sprintf(szText, "|cFFFFFFFFLv %d|r", level); // Pietre Metin
	else if (IsPC())
		sprintf(szText, "Lv %d ", level); // Jucatori
	else if (IsNewPet())
		sprintf(szText, "|cFFFFFF00Lv %d|r", level); // Insotitor
	else
		return;
	CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
Imagine
Afișează semnătura
Avatar utilizator
marinelu97
Nivel 2

Nivel 2
Mesaje: 249
Membru din: 05 Iul 2014, 17:32
Regat: Chunjo
Aprecieri: 112  
Mulţumiri: 3  
Medalii

.ShadoW scrie: ↑04 Iul 2020, 02:27 InstanceBaseEffect din userinterface
void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
	static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#if defined(WJ_SHOW_MOB_INFO)
	static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#endif

	char szText[256];
	if (IsGameMaster())
		sprintf(szText, "|cFFADFF2FLv %d ", level); // Playeri
	else if (IsEnemy())
		sprintf(szText, "|cFFFF0000Lv %d|r", level); // Mobi
	else if (IsStone())
		sprintf(szText, "|cFFFFFFFFLv %d|r", level); // Pietre Metin
	else if (IsPC())
		sprintf(szText, "Lv %d ", level); // Jucatori
	else if (IsNewPet())
		sprintf(szText, "|cFFFFFF00Lv %d|r", level); // Insotitor
	else
		return;
	CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
Nu merge , trebuie sa bag ceva si in sursa game ?
Avatar utilizator
.ShadoW
Nivel 4

Nivel 4
Mesaje: 659
Membru din: 14 Noi 2013, 17:54
Server: not yet..
Regat: Jinno
Aprecieri: 379  
Mulţumiri: 32  
Medalii

marinelu97 scrie: ↑04 Iul 2020, 02:56
.ShadoW scrie: ↑04 Iul 2020, 02:27 InstanceBaseEffect din userinterface
void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
	static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#if defined(WJ_SHOW_MOB_INFO)
	static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
#endif

	char szText[256];
	if (IsGameMaster())
		sprintf(szText, "|cFFADFF2FLv %d ", level); // Playeri
	else if (IsEnemy())
		sprintf(szText, "|cFFFF0000Lv %d|r", level); // Mobi
	else if (IsStone())
		sprintf(szText, "|cFFFFFFFFLv %d|r", level); // Pietre Metin
	else if (IsPC())
		sprintf(szText, "Lv %d ", level); // Jucatori
	else if (IsNewPet())
		sprintf(szText, "|cFFFFFF00Lv %d|r", level); // Insotitor
	else
		return;
	CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
Nu merge , trebuie sa bag ceva si in sursa game ?
pai tu nu ai functia asta deloc?
Imagine
Afișează semnătura
Avatar utilizator
marinelu97
Nivel 2

Nivel 2
Mesaje: 249
Membru din: 05 Iul 2014, 17:32
Regat: Chunjo
Aprecieri: 112  
Mulţumiri: 3  
Medalii

Nu cred. Folosesc OrientalMT2 si TWIX a scos lv-ul din fata numelui

[ Postat de pe iPhone ] Imagine
Avatar utilizator
F. Laurentiu
Utilizator interzis !

Utilizator interzis !
Mesaje: 205
Membru din: 28 Sep 2017, 18:09
Server: Metin2Yunix
Aprecieri: 45  
Mulţumiri: 217  
 Contact:
Medalii

eu cred ca nu stii sa compilezi, ca mare matematica nu e sa apelezi un string
Avatar utilizator
marinelu97
Nivel 2

Nivel 2
Mesaje: 249
Membru din: 05 Iul 2014, 17:32
Regat: Chunjo
Aprecieri: 112  
Mulţumiri: 3  
Medalii

F. Laurentiu scrie: ↑04 Iul 2020, 18:24 eu cred ca nu stii sa compilezi, ca mare matematica nu e sa apelezi un string
Stiu sa compilez o sursa.

Cer T/C ma ajutat @CristianDrăgan1 , erau niste functii dezactivate din CLIENT si SURSA.
Avatar utilizator
Asky
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1472
Membru din: 08 Oct 2014, 17:32
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 4811  
Discord: Copiază ID
 Contact:
Medalii

T/C la cererea autorului!
Imagine
Afișează semnătura
Închis
Răspunsuri
9
Vizualizări
427
Răspunsuri
7
Vizualizări
724
Răspunsuri
10
Vizualizări
1749

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 59 vizitatori