Jump to content

Recommended Posts

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!

 

 

 

bild1.png

bild2.png

Link to comment
https://wrobot.eu/forums/topic/9644-mage-issues-consumables-and-sheep/
Share on other sites

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.

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)

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

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...