From e2aab01cfe6a23da2ebc897d3e17a877c9d85dc6 Mon Sep 17 00:00:00 2001 From: HungDK <> Date: Wed, 15 Apr 2026 15:10:37 +0700 Subject: [PATCH] Fix elf npc services --- .../PerfectWorld/Scripts/UI/Dialogs/DlgNPC.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgNPC.cs b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgNPC.cs index b1ab638326..32fe8bfea6 100644 --- a/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgNPC.cs +++ b/Assets/PerfectWorld/Scripts/UI/Dialogs/DlgNPC.cs @@ -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;