Tailean
Member
So, I am not sure the Syntax to use to check and make sure that the player cannot use the Mythic Token unless they are at a cretin overall skill total....does anyone know a fix? I think I would need to add the code here:
Code:
private bool CanTrainSkill(int skillId)
{
// Disable Spellweaving if they haven't trained it.
// (if it's >= 90, code below will handle that)
if (skillId == 1044114 && _Mobile.Skills.Spellweaving.Base == 0) return false;
// Gargoyles cannot learn Archery
if (_Mobile.Race == Race.Gargoyle && skillId == 1044091) return false;
// Non-Gargoyles cannot learn Throwing
if (_Mobile.Race != Race.Gargoyle && skillId == 1044117) return false;
// If the skill is >= 90, disable.
var name = _SkillMap[skillId];
var internalSkillId = 0;
foreach (var skillName in SkillInfo.Table)
{
if (skillName.Name != name) continue;
internalSkillId = skillName.SkillID;
break;
}
if (_Mobile.Skills[internalSkillId].Base >= 90) return false;
return true;
}