Jump to content

Сonditions to check (FreeBagSlots/Gold)


Recommended Posts

Hello! Please tell me is it possible to set the conditions in the bot to check the number of free slots in the bags and the amount of gold? I tried different options:

<QuestsSorted Action="If" NameClass="ObjectManager.Me.Gold >= 1000" />


<QuestsSorted Action="EndIf" NameClass="" />

<QuestsSorted Action="If" NameClass="ObjectManager.Me.FreeBagSlots =< 20" /> (MinFreeBagSlots also tried)


<QuestsSorted Action="EndIf" NameClass="" />

But these options do not work.

Is it even possible to set such conditions? And where do you can see the list of functions that can be used after "ObjectManager"?

Link to comment
Share on other sites

For gold i found "GetMoneyCopper" (for example wManager.Wow.Helpers.Usefuls.GetMoneyCopper <= 4990) аnd to check the number of slots in the bags "GetContainerNumFreeSlots" (for example wManager.Wow.Helpers.Usefuls.GetContainerNumFreeSlots <= 4), if I'm right.

P.S. No, this code not working (with GetMoneyCopper <= 4990 too):

if (wManager.Wow.Helpers.Usefuls.GetContainerNumFreeSlots <= 20)
    Lua.LuaDoString("local itemName, _, _, _, _, _, _, _ = GetItemInfo(6948); RunMacroText('/use ' .. itemName);");

I tried the code from this thread:


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