What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Make wand attack to melee range?

Hitori

New Member
Joined
Apr 3, 2014
Messages
78
Reaction score
0
Is there some way to make a wand attack act like a melee weapon?

Thing is that i want the bot to run up to the boss and when its close to the boss i have made it so the archon trigger. This was working fine when i had a sword as weapon, bot wanted to run up close and stab the boss but when it came close the archon trigger just as i wanted it (I don't want archon to trigger far away from boss). Now when i switched to a better wand weapon the damn bot start to default shot the boss from afar and hence never trigger the archon making everything bad.

in Wizard.cs this lines exist
Code:
// Default attacks
return CombatBase.DefaultPower;

Witch trigger the but to default attack. I would like to change it to "MoveTo current target" but i don't know the command for it, do you know? Badly need help with this :/

My guess is that i add something like this code below above the default attack.
Code:
if (!UseOOCBuff && !IsCurrentlyAvoiding && CurrentTarget.RadiusDistance >= 24f)
{
return new ZetaDia.Me.UsePower(SNOPower.Walk, Trinity.Player.Position, Trinity.CurrentWorldDynamicId, -1);
}
That would make it move to the target if it further away then 24 yards BUT "ZetaDia.Me.UsePower(SNOPower.Walk, Trinity.Player.Position, Trinity.CurrentWorldDynamicId, -1);" is something i just made up, need help with that i really should say.

The best would however be to limit the range of the attack to 15 yards.
 
Last edited:
Back
Top