Issues with ${Me.Rooted}
Posted: Sun Jan 07, 2018 1:37 pm
On line 4709 of MQ2DataTypes.cpp should be changed from:
to
Code: Select all
case Rooted:
if (PCHARINFO2 pChar2 = GetCharInfo2()) {
int nBuff = -1;
if ((nBuff = GetSelfBuffBySPA(90, 0)) != -1)//Root
{
Dest.Ptr = &pChar2->Buff[nBuff];
Dest.Type = pBuffType;
return true;
}
}
break;
Code: Select all
case Rooted:
if (PCHARINFO2 pChar2 = GetCharInfo2()) {
int nBuff = -1;
if ((nBuff = GetSelfBuffBySPA(99, 0)) != -1)//Root
{
Dest.Ptr = &pChar2->Buff[nBuff];
Dest.Type = pBuffType;
return true;
}
}
break;