Issues with ${Me.Rooted}

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

plure
orc pawn
orc pawn
Posts: 16
Joined: Tue Mar 15, 2016 8:24 am

Issues with ${Me.Rooted}

Post by plure » Sun Jan 07, 2018 1:37 pm

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;

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: Issues with ${Me.Rooted}

Post by SwiftyMUSE » Sun Jan 07, 2018 4:19 pm

I've got this change done. Thanks.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Issues with ${Me.Rooted}

Post by EqMule » Sun Jan 07, 2018 5:09 pm

I am amazed that these kinds of bugs go unnoticed for so long. Thanks for the report
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.