fix learn skill

This commit is contained in:
VDH
2026-03-02 11:31:43 +07:00
parent 5de380fd05
commit eb9d8cdd5f
7 changed files with 1000 additions and 18 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61a9856c0c94c017941d8f5c2d68d827be60069d75e942c8c654c4ee1c64cd10
size 284027
oid sha256:f621b8b931e90b5793e85a0b98076c26755ad4d64746d9c8439bbc1438e7b0ef
size 285487
@@ -1516,3 +1516,4 @@ public enum GfxSkillValType
@@ -76,7 +76,7 @@ namespace BrewMonster.Scripts.Skills
public void SendHelloToSkillLearnNPC()
{
//BMLogger.LogError($"[Skill] Sent SEVNPC_HELLO to skill-learn NPC nid={m_skillLearnNPCNID}");
BMLogger.LogError($"[Skill] Sent SEVNPC_HELLO to skill-learn NPC nid={m_skillLearnNPCNID}");
if (m_skillLearnNPCNID != 0)
{
@@ -1,4 +1,5 @@
using BrewMonster.Assets.PerfectWorld.Scripts.UI.GamePlay;
using BrewMonster.Network;
using BrewMonster.Scripts.Skills;
using BrewMonster.UI;
using CSNetwork.GPDataType;
@@ -56,7 +57,7 @@ namespace BrewMonster
{
uiManager.ShowMessageBox(new MessageBoxData()
{
Title = "MessageBox",
Title = "MessageBox",
Message = gameUIMan.GetStringFromTable(11327)
});
}
@@ -103,8 +104,9 @@ namespace BrewMonster
string str = GPDataTypeHelper.ReplacePercentD(GetStringFromTable(11326), needMoney, needSp);
var messagebox = uiManager.ShowMessageBox(new MessageBoxData()
{
Title = "Game_LearnSkill",
Title = "Game_LearnSkill",
Message = str,
OnClickedYes = () => UnityGameSession.c2s_SendCmdNPCSevLearnSkill(m_skillID)
});
messagebox.SetData((uint)m_skillID);
//GetGameUIMan()->MessageBox("Game_LearnSkill", str, //GetGameUIMan()->GetStringFromTable(231),
+9 -3
View File
@@ -1173,11 +1173,17 @@ namespace BrewMonster
CECIvtrWeapon pWeapon =
(CECIvtrWeapon)m_pEquipPack.GetItem((int)IndexOfIteminEquipmentInventory.EQUIPIVTR_WEAPON);
if (pWeapon == null || pWeapon.GetCurEndurance() == 0)
Info.weapon = 0;
{
BMLogger.LogError(GetName() + " CheckSkillCastCondition: Weapon major type ID = " + Info.weapon);
Info.weapon = 0; }
else if (!CanUseEquipment(pWeapon, ref iReason))
Info.weapon = (iReason == 5) ? (int)pWeapon.GetDBMajorType().id : 0;
{
Info.weapon = (iReason == 5) ? (int)pWeapon.GetDBMajorType().id : 0; }
else
Info.weapon = (int)pWeapon.GetDBMajorType().id;
{
Info.weapon = (int)pWeapon.GetDBMajorType().id; }
BMLogger.LogError(GetName() + " CheckSkillCastCondition: Weapon major type ID = " + Info.weapon);
// Get remaining arrow number
+1
View File
@@ -587,6 +587,7 @@ namespace BrewMonster
case EC_MsgDef.MSG_HST_SKILLRESULT: OnMsgHstSkillResult(Msg); break;
case EC_MsgDef.MSG_PM_CASTSKILL: OnMsgPlayerCastSkill(Msg); break;
case EC_MsgDef.MSG_PM_ENCHANTRESULT: OnMsgEnchantResult(Msg); break;
case EC_MsgDef.MSG_HST_LEARNSKILL: OnMsgHstLearnSkill(Msg); break;
case EC_MsgDef.MSG_HST_OWNEXTPROP: OnMsgHstExtProp(Msg); break;
case EC_MsgDef.MSG_PM_PLAYERDOEMOTE: OnMsgPlayerDoEmote(Msg); break;
File diff suppressed because one or more lines are too long