Ok.. I found the C code where he does the /whotarget (called SuperWhoTarget in the code)..
Code: Select all
if (pSpawn->Equipment.Primary)
{
itoa(pSpawn->Equipment.Primary,szTemp,10);
strcat(szMsg,"Pri: ");
strcat(szMsg,szTemp);
if (pSpawn->Equipment.Offhand)
strcat(szMsg," ");
}
if (pSpawn->Equipment.Offhand)
{
itoa(pSpawn->Equipment.Offhand,szTemp,10);
strcat(szMsg,"Off: ");
strcat(szMsg,szTemp);
}
But I can't find any referance to these variables for the use in a script.. I really don't care about the exact ITEM the target ( going to NPC ) is holding, but rather that it IS holding SOMETHING, or NOTHING. So just a True/False for both Primary and Offhand..
I'm getting closer, but still lost.. hehe..
Any clues / tips ?