[FIX] Sonido del Ángel al Equipar o Desequipar

#1
Client Sources buscar:

Code: Select all

if (m_bIsItemEquipped[m_stMCursor.sSelectedObjectID] == TRUE)
Remplazar esto:

Code: Select all

AddEventList(G_cTxt, 10);
			if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPendant", 14) == 0) PlaySound('E', 53, 5);
			else PlaySound('E', 29, 0);
por esto:

Code: Select all

AddEventList(G_cTxt, 10);
			if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(STR)", 14) == 0) PlaySound('E', 53, 5);
			if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(DEX)", 14) == 0) PlaySound('E', 53, 5);
			if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(INT)", 14) == 0) PlaySound('E', 53, 5);
			if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(MAG)", 14) == 0) PlaySound('E', 53, 5);
			else PlaySound('E', 29, 0);

despues buscar:

Code: Select all

wsprintf(G_cTxt, BITEMDROP_CHARACTER9, cStr1);
remplazar esto:

Code: Select all

AddEventList(G_cTxt, 10);
	PlaySound('E', 28, 0);
por esto:

Code: Select all

AddEventList(G_cTxt, 10);
		if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(STR)", 14) == 0) PlaySound('E', 52, 0);
		if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(DEX)", 14) == 0) PlaySound('E', 52, 0);
		if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(INT)", 14) == 0) PlaySound('E', 52, 0);
		if(memcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName, "AngelicPandent(MAG)", 14) == 0) PlaySound('E', 52, 0);
		else PlaySound('E', 28, 0);
y por ultimo buscar en:

Code: Select all

void CGame::NotifyMsg_ItemReleased(char * pData)

y remplazar esto:

Code: Select all

if(memcmp(m_pItemList[sItemIndex]->m_cName, "AngelicPendant", 14) == 0) PlaySound('E', 53, 0);
	else PlaySound('E', 29, 0);
por esto:

Code: Select all

if(memcmp(m_pItemList[sItemIndex]->m_cName, "AngelicPandent(STR)", 14) == 0) PlaySound('E', 53, 0);
	if(memcmp(m_pItemList[sItemIndex]->m_cName, "AngelicPandent(DEX)", 14) == 0) PlaySound('E', 53, 0);
	if(memcmp(m_pItemList[sItemIndex]->m_cName, "AngelicPandent(INT)", 14) == 0) PlaySound('E', 53, 0);
	if(memcmp(m_pItemList[sItemIndex]->m_cName, "AngelicPandent(MAG)", 14) == 0) PlaySound('E', 53, 0);
	else PlaySound('E', 29, 0);

Esto soluciona el típico bug de que cuando equipas o des equipas un angel.

Espero que le guste!
KenZoB Helbreath.-

Developer in Helbreath Sacrifice

Who is online

Users browsing this forum: No registered users and 1 guest

cron