Jump to content

Mage issues - Consumables and sheep


pill3
 Share

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

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...