Fix elf npc services

This commit is contained in:
HungDK
2026-04-15 15:10:37 +07:00
parent 81771c6bd7
commit e2aab01cfe
@@ -3468,27 +3468,27 @@ namespace BrewMonster.UI
// pShow1 = m_pAUIManager.GetDialog("Win_WorldMapTravel");
//((CDlgWorldMap*)pShow1).BuildTravelMap(DT_NPC_TRANSMIT_SERVICE, pData);
}
else if (idFunction == (int)SERVICE_TYPE.NPC_SKILL)
{
//string strText = m_pLst_Main.GetText(m_pLst_Main.GetCurSel());
//string strHead = GetStringFromTable(249);
//string strComp = (strHead + GetStringFromTable(7107));
//if (0 == a_stricmp(strText, strComp))
//{
// pShow1 = m_pAUIManager.GetDialog("Win_ELFLearn");
// ((CDlgELFLearn*)pShow1).SetNPCName(pCurNPCEssence.name);
// pShow2 = m_pAUIManager.GetDialog("Win_Inventory");
// GetHostPlayer().PrepareNPCService(iService);
// pShow1.SetData(DT_NPC_SKILL_SERVICE);
//}
//else
//{
// pShow1 = m_pAUIManager.GetDialog("Win_Teach");
// GetHostPlayer().PrepareNPCService(iService);
// pShow1.SetData(DT_NPC_SKILL_SERVICE);
// GetGameUIMan().UpdateTeach(0);
//}
}
// else if (idFunction == (int)SERVICE_TYPE.NPC_SKILL)
// {
// //string strText = m_pLst_Main.GetText(m_pLst_Main.GetCurSel());
// //string strHead = GetStringFromTable(249);
// //string strComp = (strHead + GetStringFromTable(7107));
// //if (0 == a_stricmp(strText, strComp))
// //{
// // pShow1 = m_pAUIManager.GetDialog("Win_ELFLearn");
// // ((CDlgELFLearn*)pShow1).SetNPCName(pCurNPCEssence.name);
// // pShow2 = m_pAUIManager.GetDialog("Win_Inventory");
// // GetHostPlayer().PrepareNPCService(iService);
// // pShow1.SetData(DT_NPC_SKILL_SERVICE);
// //}
// //else
// //{
// // pShow1 = m_pAUIManager.GetDialog("Win_Teach");
// // GetHostPlayer().PrepareNPCService(iService);
// // pShow1.SetData(DT_NPC_SKILL_SERVICE);
// // GetGameUIMan().UpdateTeach(0);
// //}
// }
else if (idFunction == (int)SERVICE_TYPE.NPC_MAKE)
{
NPC_MAKE_SERVICE pMake = (NPC_MAKE_SERVICE)pData;