Jump to content

Targeting


Recommended Posts

21 hours ago, Droidz said:

Hello, that is managed by your fightclass. What fightclass do you user? Have you try another?

hi Droidz,

i am making a quester profile where it would be great not to go near the mob/target and cast a skill from a distance.

 

var mobEntry = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(mobId));

if (mobEntry.Position.DistanceTo(ObjectManager.Me.Position) < 50f)
                {
                    // Target mob
                    if (!mobEntry.IsMyTarget)
                    {                        
                         Interact.InteractGameObject(ObjectManager.GetWoWUnitByEntry(29639, true).First().GetBaseAddress);
                         Thread.Sleep(500);
                    }
                    //MovementManager.Face(ObjectManager.Target);
                    SpellManager.CastSpellByNameLUA("Ice Shard");
                    Usefuls.WaitIsCasting();
                    wManager.wManagerSetting.AddBlackList(mobEntry.Guid, 1000 * 5 * 60);
                    Lua.RunMacroText("/cleartarget");
                    DebugLog("Targeting and casting. rescued=" + _rescued);
                    _rescued += 1;
                }
                else
                {
                    var mobpos = new List<Vector3>()
                    {
                        new Vector3(7236.417f, -2756.116f, 820.3741f),
                        new Vector3(7305.381f, -2730.507f, 821.9226f),            
                        new Vector3(7363.159f, -2719.983f, 822.0386f),
                        new Vector3(7386.727f, -2714.902f, 813.5573f),
                        new Vector3(7400.437f, -2760.255f, 841.5171f),
                        new Vector3(7381.176f, -2823.062f, 834.0812f),
                        new Vector3(7413.861f, -2878.198f, 850.9042f),
                        new Vector3(7327.644f, -2866.435f, 851.3341f),
                        new Vector3(7271.88f, -2838.288f, 863.6712f),
                    };

                    wManager.Wow.Bot.Tasks.GoToTask.ToPosition(mobpos[Others.Random(0, mobpos.Count - 1)]);

                }

Link to comment
Share on other sites

it is a quest in storm peaks called Cold Hearted. needs to mount to the frostwyrm then the skill is only available from the mount. the spell is not from the character itself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...