Exemple #1
0
        private void _statskillLearnError(SkillMasterReply reply, short id)
        {
            switch (reply)
            {
            //not sure if this will ever actually be sent because client validates data before trying to learn a skill
            case SkillMasterReply.ErrorWrongClass:
                EODialog.Show(DATCONST1.SKILL_LEARN_WRONG_CLASS, " " + ((ClassRecord)World.Instance.ECF.Data[id]).Name + "!", XNADialogButtons.Ok, EODialogStyle.SmallDialogSmallHeader);
                break;

            case SkillMasterReply.ErrorRemoveItems:
                EODialog.Show(DATCONST1.SKILL_RESET_CHARACTER_CLEAR_PAPERDOLL, XNADialogButtons.Ok, EODialogStyle.SmallDialogSmallHeader);
                break;
            }
        }
 private void _statskillLearnError(SkillMasterReply reply, short id)
 {
     switch (reply)
     {
         //not sure if this will ever actually be sent because client validates data before trying to learn a skill
         case SkillMasterReply.ErrorWrongClass:
             EODialog.Show(DATCONST1.SKILL_LEARN_WRONG_CLASS, " " + ((ClassRecord)World.Instance.ECF.Data[id]).Name + "!", XNADialogButtons.Ok, EODialogStyle.SmallDialogSmallHeader);
             break;
         case SkillMasterReply.ErrorRemoveItems:
             EODialog.Show(DATCONST1.SKILL_RESET_CHARACTER_CLEAR_PAPERDOLL, XNADialogButtons.Ok, EODialogStyle.SmallDialogSmallHeader);
             break;
     }
 }