Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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;
}