Moderator: MacroQuest Developers



Thats all good, but 1) MQ2DataTypes.cpp is still wrong and, 2) You can't use that to verify skills in a macro.Drumstix42 wrote:Try that out./skills ["skillname"] (Skills are listed in Appendix C)
Lists your skills, or your skill level when /skills "skillname" is used
/skills
Lists all of your skills with skill level
/skills pottery
Returns your pottery skill
Code: Select all
/echo ${Me.Skill[1H Blunt]}
Code: Select all
case Skill:
if (Index[0])
{
[color=red]if ((Index[0]>='0' && Index[0]<='9') && ((Index[1]>='0' && Index[1]<='9') || Index[1]==0))[/color]
{
// numeric
unsigned long nSkill=atoi(Index)-1;
if (nSkill<0x64)
{
Dest.DWord=pChar->Skill[nSkill];
Dest.Type=pIntType;
return true;
}
}
else
{
// name
for (DWORD nSkill=0;szSkills[nSkill];nSkill++)
if (!stricmp(Index,szSkills[nSkill]))
{
Dest.DWord=pChar->Skill[nSkill];
Dest.Type=pIntType;
return true;
}
}
}
return false;Code: Select all
if (Index[0]>='0' && Index[0]<='9')

Code: Select all
bool result=FALSE;
for(int j=0;index[j]!=0;j++){
if(!(result=(index[j]>='0' && index[j]<='9')))
break;
}