if(pTarget && ((PSPAWNINFO)pTarget)->Mercenary)
{
char szTmp[0x20] = {0};
strncpy(szTmp, ((PSPAWNINFO)pTarget)->Lastname, strchr(((PSPAWNINFO)pTarget)->Lastname, '\'') - &((PSPAWNINFO)pTarget)->Lastname[0]);
DebugSpew("%s", szTmp);
}
Code:if(pTarget && ((PSPAWNINFO)pTarget)->Mercenary) { char szTmp[0x20] = {0}; strncpy(szTmp, ((PSPAWNINFO)pTarget)->Lastname, strchr(((PSPAWNINFO)pTarget)->Lastname, '\'') - &((PSPAWNINFO)pTarget)->Lastname[0]); DebugSpew("%s", szTmp); }
i wish the freaking clerics could attack like a real cleric.
Tis a shame I dont know what to do with this impressive uncompiled snip of code .. lol. But I assume it works and thank you for the solution.
6 May 2009 by ieatacid
- Added spawn.Owner which returns a spawn type for a mercenary's owner
It'll be in the next MacroQuest2 zip.
6 May 2009 by ieatacid
- Added spawn.Owner which returns a spawn type for a mercenary's owner