Jump to content
  • 0

How to command bots to loot quest items


D Q

Question

I would like to ask the bots to collect nearby quest items that normally requires an "open"/right-click action, followed by casting bar.

I tried to follow ike3's doc, but it did not work.
https://ike3.github.io/mangosbot-docs/doc/playerbot/Looting.html

I also traced the code briefly, and looks like there's some issue to get the game object to the bot's looting list, even though I tried right clicking and cancel etc.

 

Any idea/comment is much appreciated. I would also love to learn how the code work around this area too.

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hmm... Maybe I am looking at the wrong path, but this doesn't look(read) right.
bag space has to be smaller than 80? possible target is empty?
 

bool LootAvailableTrigger::IsActive()
{
    return AI_VALUE(bool, "has available loot") && AI_VALUE(uint8, "bag space") < 80 &&
            (AI_VALUE2(float, "distance", "loot target") <= INTERACTION_DISTANCE || AI_VALUE(list<ObjectGuid>, "possible targets").empty());
}

 

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use