Extend AdvLoot "GiveTo" to work with raid members
Posted: Tue Jun 26, 2018 10:34 pm
The current AdvLoot "giveto" implementation only works for members of your group.
Test case:
/advloot shared "Tainted Feather" giveto MYCHAR
Fails if MYCHAR is in raid but in different group than master looter.
The code is looping over the group to get the name as a CXStr.
Not sure of an elegant way to have it check raid as well.
Code: MQ2Commands.cpp line 4167:
Test case:
/advloot shared "Tainted Feather" giveto MYCHAR
Fails if MYCHAR is in raid but in different group than master looter.
The code is looping over the group to get the name as a CXStr.
Not sure of an elegant way to have it check raid as well.
Code: MQ2Commands.cpp line 4167:
Code: Select all
for (int i = 0; i < 6; i++) {
if (pCI->pGroupInfo->pMember[i] && pCI->pGroupInfo->pMember[i]->Mercenary == 0 && pCI->pGroupInfo->pMember[i]->pName) {
GetCXStr(pCI->pGroupInfo->pMember[i]->pName, szOut, MAX_STRING);
if (!_stricmp(szOut, szEntity)) {