• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Has target info been fixed with dannet commands defaulted yet?

Relevant code block, looks like it already checks which plugin you have loaded before sending out the afollow command.

C++:
case TIMC_FollowMe://follow me
{
    PSPAWNINFO pSpawn = GetSpawnFromRightClickIndex();
    if (pSpawn)
    {
        if (FollowMeMap.find(rightclickindex) != FollowMeMap.end())
        {
            if (FollowMeMap[rightclickindex] == true)
            {
                if (GetModuleHandle("mq2dannet"))
                    DoCommandf("/dex %s /afollow off", pSpawn->Name);
                else if (GetModuleHandle("mq2eqbc"))
                    DoCommandf("/bct %s //afollow off", pSpawn->Name);
                FollowMeMap[rightclickindex] = false;
            }
            else
            {
                if (GetModuleHandle("mq2dannet"))
                    DoCommandf("/dex %s /afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
                else if (GetModuleHandle("mq2eqbc"))
                    DoCommandf("/bct %s //afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
                FollowMeMap[rightclickindex] = true;
            }
        }
        else
        {
            if (GetModuleHandle("mq2dannet"))
                DoCommandf("/dex %s /afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
            else if (GetModuleHandle("mq2eqbc"))
                DoCommandf("/bct %s //afollow spawn %d", pSpawn->Name, ((PSPAWNINFO)pLocalPlayer)->SpawnID);
            FollowMeMap[rightclickindex] = true;
        }
    }
    return 1;
}
 
Question - Has target info been fixed with dannet commands defaulted yet?

Users who are viewing this thread

Back
Top
Cart