pill3 1 Posted June 26, 2018 Share Posted June 26, 2018 Hello again, I can't solve these problems, thats why I ask pro's here on the forum. Consumables - bot eat and drinks due to the setting in advanced setting. But wont create own food and water, look at the prictures to see the fightclass. Sheep - I would like to make the bot sheep one target if there is two mobs attacking, but i dont know where to start on that one. However it should be a spell condition i guess. Im quite new on wrobot, got to start somewhere! Thanks in advance! Link to comment https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/ Share on other sites More sharing options...
Matenia 628 Posted June 26, 2018 Share Posted June 26, 2018 Start building your fight class in C#. You will not be able to polymorph off-targets using the fightclass editor. That being said, check out the vanilla wow section here, it has info on frostnova and poly. Link to comment https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/#findComment-44788 Share on other sites More sharing options...
headcrab 32 Posted June 26, 2018 Share Posted June 26, 2018 2 hours ago, Matenia said: You will not be able to polymorph off-targets using the fightclass editor. Why not? Tricky but not impossible. Use c# condition like this new Func<bool>(() => { WoWUnit u = ObjectManager.GetWoWUnitHostile() .Where(u => ObjectManager.Me.Target != u && u.IsAlive && u.GetDistance<20 && bla bla bla) .OrderBy(u => u.GetDistance) .FirstOrDefault(); if (u != null) { Interact.InteractGameObject(u.GetBaseAddress, true, false); return true; } else { return false; } }).Invoke this will switch target for cast current spell and return true (so, enable polymorph cast) Link to comment https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/#findComment-44793 Share on other sites More sharing options...
Matenia 628 Posted June 26, 2018 Share Posted June 26, 2018 51 minutes ago, headcrab said: Why not? Tricky but not impossible. Use c# condition like this new Func<bool>(() => { WoWUnit u = ObjectManager.GetWoWUnitHostile() .Where(u => ObjectManager.Me.Target != u && u.IsAlive && u.GetDistance<20 && bla bla bla) .OrderBy(u => u.GetDistance) .FirstOrDefault(); if (u != null) { Interact.InteractGameObject(u.GetBaseAddress, true, false); return true; } else { return false; } }).Invoke this will switch target for cast current spell and return true (so, enable polymorph cast) You're right, if you can get the conditions to be stable, that could work. I recommend using: ObjectManager.Me.Target = u.Guid; instead of Interact.InteractGameObject(u.GetBaseAddress, true, false); though Link to comment https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/#findComment-44794 Share on other sites More sharing options...
Droidz 2738 Posted June 27, 2018 Share Posted June 27, 2018 You can also add code in "Additional C# code" (like this: https://wrobot.eu/forums/topic/1299-monks-brews/?do=findComment&comment=6999 , https://www.google.com/search?q=Additional+C%23+code+site%3Awrobot.eu ) Link to comment https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/#findComment-44823 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now