[BUG] Melee Attack
So After some search and test i found that the skill "Melee Attack" is not working.
To test it, do this:
Hope Out take a look at this, and i hope i have not missed some easy concept.
/hat
So After some search and test i found that the skill "Melee Attack" is not working.
To test it, do this:
Code:
{
while (me.isCasting || me.isGlobalCooldown)
Thread.Sleep(50);
if (!UseSkill(skillName, true, selfTarget))
{
[B]Log(""GetLastError());[/B]
if (me.target != null && GetLastError() == LastError.NoLineOfSight)
{
//No line of sight, try come to target.
if (dist(me.target) <= 5)
ComeTo(me.target, 2);
else if (dist(me.target) <= 10)
ComeTo(me.target, 3);
else if (dist(me.target) < 20)
ComeTo(me.target, 8);
else
ComeTo(me.target, 8);
}
}
while (me.isCasting || me.isGlobalCooldown)
Thread.Sleep(50);
}
public void PluginRun()
{
while (true)
{
while (me.target == null)
{
Thread.Sleep(50);
}
while (name(me.target) == "Elite Training Scarecrow" || name(me.target) == "Beginner Training Scarecrow" || name(me.target) == "Intermediate Training Scarecrow")
{
if (angle(me.target, me) > 45 && angle(me.target, me) < 315)
{
TurnDirectly(me.target);
}
if (skillCooldown("Melee Attack") == 0)
{
UseSkillAndWait("Melee Attack");
Log("Used: Melee Attack");
Thread.Sleep(50);
}
}
}
Hope Out take a look at this, and i hope i have not missed some easy concept.
/hat
Last edited: