Page 1 of 1

Issues with ${Me.Rooted}

Posted: Sun Jan 07, 2018 1:37 pm
by plure
On line 4709 of MQ2DataTypes.cpp should be changed from:

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;
to

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;

Re: Issues with ${Me.Rooted}

Posted: Sun Jan 07, 2018 4:19 pm
by SwiftyMUSE
I've got this change done. Thanks.

Re: Issues with ${Me.Rooted}

Posted: Sun Jan 07, 2018 5:09 pm
by EqMule
I am amazed that these kinds of bugs go unnoticed for so long. Thanks for the report