• Visit Rebornbuddy
  • DataManager.SpellCache

    Discussion in 'Community Developer Forum' started by dragonslaya, Mar 12, 2014.

    1. dragonslaya

      dragonslaya New Member

      Joined:
      Mar 5, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      Well for my current plugin im working on I need to use or at least am using DataManager.SpellCache to retrieve the skill ID based off skill name. On quite a few skills probably around 10% or less idk I didn't really go through all skills after finding some errors while testing plugin. This
      Code:
      DataManager.SpellCache[item.ToString()].Id
      where item say Aero or Cure passed in would retreieve numbers like for Aero 1397 instead of the proper 120. Im not sure if that was intended cause im using Spellcache wrong or what.

      If not. Would you mind pushing out and update with quick fix?
       
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      Not a bug. There are multiple spells with the name aero, and its just returning the first one that it finds. If your working on spells that you have then you should be using Actionmanager.CurrentActions otherwise you will need to use the id.
       
    3. dragonslaya

      dragonslaya New Member

      Joined:
      Mar 5, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      Ok thanks. np I figured a work around works just as good.
       

    Share This Page