Quote (hehexd @ May 6 2021 01:18am)
Sorry kYY choses to have a life outside of d2 after killing you and your team literally over 200+ times.
Sometimes you have to know when to retire on top while your loser enemies stay playing the same outdated game every single day.. and on softcore ladder no less :rofl:
here is a lil cpp func for you
this is andy.20 quality roflmao
Code
BOOL AttackNearestTarget()
{
D2SpellInfo Spell;
GetSkillInfo(GetCurrentSkill(V_LeftAttack), &Spell);
if (!ClientReady(TRUE) || !V_Aim)
return FALSE;
if (InTown(Me) || UsingSkill())
return FALSE;
POINT Mouse = {MouseX, MouseY};
LPUNITANY Target = FindNearestUnit(Mouse, Spell.dwSpellInfoFlag, FALSE, FALSE);
if (Target && Target->dwMode != PLAYER_MODE_DEAD && Target->dwMode != PLAYER_MODE_DEATH)
{
if (Me->dwMode != PLAYER_MODE_CAST)
{
AttackTarget(Target->dwUnitId, Target->dwType);
return TRUE;
}
}
return FALSE;
}