Jump to content
  • Item Count is not working


    Zan
    • Version: All Product: WRobot General Type: Bug Status: Not a Bug

    wManager.Wow.Helpers.ItemsManager.GetItemCountById(uint) Not recognizing amount in Bag. For example I am using ItemsManager.GetItemCountById(5512) == 0 as a condition for Create Healthstone (Warlock) to only use the spell while Healthstone is not in my bags. It will keep casting "Create Healthstone" even while there is one in my bag.



    User Feedback

    Recommended Comments

    BetterSister

    Posted

    Try ItemsManager.HasItemById(38607); instead it atleast works for me. I'll check if count by id works

    to make it "don't have item by id" add ! before the line

    Droidz

    Posted

    Hello,

    In "Spell settings" put false at "Lock frame when checking the conditions" and add timer (5000) (to avoid to cast two time).

    Create Healthstone.xml

    Zan

    Posted

    Okay this is odd. If it's XML it creates the item once and done. If I convert it to C# it casts it even if it's in the bag. 

    13 Aug 2016 07H32.log.html

    Zan

    Posted

    2 hours ago, BetterSister said:

    Try ItemsManager.HasItemById(38607); instead it atleast works for me. I'll check if count by id works

    to make it "don't have item by id" add ! before the line

    !ItemsManager.HasItemById(5512) does work for my .cs file. Thanks Sister!



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