Jump to content

d3kxn

Members
  • Posts

    15
  • Joined

  • Last visited

Reputation Activity

  1. Like
    d3kxn got a reaction from Matenia in Hunter - ammo bags / loot and buying ammo   
    I have something like this in my fight class to detect this situation:
    wManager.Events.LootingEvents.OnLootingTaskEnd += (cancelable) => { this.CheckBagStopConditions(); }; /* * Check whether or not to stop the bot when the inventory is full * or no ammonition is available anymore. * (The full bag detection of wrobot is broken (because of the quiver)) */ private void CheckBagStopConditions() { if (!this.HasBagSpaceFree() || !this.HasAmmonition()) { Logging.Write("Stop the bot!"); Products.ProductStop(); } } private bool HasBagSpaceFree() { int FreeTotal = wManager.Wow.Helpers.Bag.GetContainerNumFreeSlotsNormalType; int FreeQuiver = wManager.Wow.Helpers.Bag.GetContainerNumFreeSlotsByBagID(4); // TODO: Make configurable int FreeForLoot = FreeTotal - FreeQuiver; return FreeForLoot > 0; } private bool HasAmmonition() { if (MySettings.CurrentSetting.AmmonitionName == "") { return true; // disable this check } return ItemsManager.GetItemCountByNameLUA(MySettings.CurrentSetting.AmmonitionName) > 0; } It currently simply stops the bot. But you could use it to do anything else in this situation. You will need to replace MySettings.CurrentSetting.AmmonitionName with the name of the ammonition you use.
  2. Like
    d3kxn got a reaction from Arcangelo in Distance / Attack range not checked correctly   
    I am currently trying to use Wrobot on vanilla with a mage for leveling. I am at level 9 at the moment. I tried to use the horde profile of arcangelo
    I have set "attack before being attacked" option set..
    The bot seems to have some issues detecting the distance between the player and hostile units. It always runs next to the mobs, then stops, faces the target to attack it. But before start casting the hostile units start attacking the player.
    Since the spells of the mage have a far wider range, it would be much better to start the attack from a higher distance.
    I tried iMage-Basic and Legion Fire mage leveling by BetterSister fight classes. The XML profile I tried has a range of 39 set in the general properties. I tried to change it, but it didn't seem to change anything.
    This is a huge problem when sending the bot to hostile npc camps where the bot should act carefully. But this is also a problem when the bot tries to move to a target and comes in range of another hostile npc. In most cases the bot is attacked while moving.
    Is this some problem of the fight classes, some wrong setting or some problem in the bot?
     
×
×
  • Create New...