• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Bagslot.UseItem() cooldown question

    Discussion in 'Community Developer Forum' started by kaihaider, Jan 14, 2015.

    1. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Is there any way to check the cooldown on an item?

      Or check if you can .UseItem() an item?

      I might be blind but I can't figure it out :S
       
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83

      Not currently, but useitem wont attempt to use an item you can't use due to cooldown or range etc.
       
    3. Endus

      Endus Community Developer

      Joined:
      Jul 9, 2012
      Messages:
      458
      Likes Received:
      6
      Trophy Points:
      18
      I've actually ran into a semi-related issue with Chocobo summoning. Even if I check for Chocobo.CanSummon, the bot (my CR) will still attempt to "DoAction Item 4868 0xE0000000" (Summon Chocobo with default item) even if I'm in a GCD or what not (meaning the DoAction will fail). Just a heads up.
       
    4. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      Sounds like a you problem. Doesn't happen with kupo.
       
    5. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      It would be very handy if you gave us a bool return on useitem for if an attempt was made. Or a separate variable for cooldown.

      I guess you mean it doesn't check gcd because item usage only checks the item cooldown and a gcd check in CanSummon is unnecessary?
       
    6. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      Already added for next version.
       

    Share This Page