Castbar / Statusbar text? menu

User Tag List

Results 1 to 6 of 6
  1. #1
    xzidez's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    136
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Castbar / Statusbar text?

    Just as topic says. Is there anyone here who knows a good way to get the castbar or statusbar? Addons seems to be able to use it so there has to be a lua command for it?

    Also I was looking for something in the descriptors for the units. But cant find anything here.. I mean. The mobs also have a "castbar"..
    So it has to be on the NPC descriptor?
    UNIT_CHANNEL_SPELL
    UNIT_DYNMIC_SPELl
    .. or one of the "flags".

    These are the only ones I could image has anything to do with it. But .. alas. nothing

    rep for everyone that helps ;D yaay

    Castbar / Statusbar text?
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    spell, rank, displayName, icon, startTime, endTime, isTradeSkill, castID, interrupt = UnitCastingInfo("unit")
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    xzidez's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    136
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That one solved it : p
    thank you

  4. #4
    zenteoxero's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Since this was the same topic, i just post my question here insted of creating a new thread.
    Is there a descriptor of offset from the unit/player base that descripes if the unit/player is casting a spell. I know about the descriptor UNIT_FIELDS_CHANNELING_SPELL, but that is just a part of what i'm looking for.

    I want to have something like: if (unit.ChannelingSpell != 0 && unit.CastingSpell != 0) then ...

    Thanks for any help
    Last edited by zenteoxero; 10-27-2009 at 06:30 AM.

  5. #5
    naa's Avatar Contributor
    Reputation
    100
    Join Date
    Oct 2006
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public enum OtherField : uint
    {
       IsCasting = 0xA68, //The same in path 3.2.2 as in 3.2a
       ChanneledCasting = 0xA80,  //The same in path 3.2.2 as in 3.2a
    }
    /// <summary>
    /// Checks if Unit is casting and returns an int of the spellID being cast
    /// </summary>
    public int IsCasting {
          get 
          {
    		uint pointer = ObjectPointer + (uint)GDescriptors.OtherField.IsCasting; 
    		return Memory.ReadInt(pointer);
          }
    }
    			
    /// <summary>
    /// Returns true if Casting false if not.
    /// </summary>
    public bool Casting {
          get
          {
                         return (IsCasting != 0 || ChanneledCasting != 0);
          }
    }
    /// <summary>
    /// Returns the current ID of the spell Channeled.
    /// </summary>
    public int ChanneledCasting
    {
           get
           {
    		return Memory.ReadInt(ObjectPointer + (uint)GDescriptors.OtherField.ChanneledCasting); 
           }
    }
    Last edited by naa; 10-27-2009 at 07:44 AM.

  6. #6
    zenteoxero's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much Naa
    +Rep

Similar Threads

  1. Mancow/Joana 1-60 Leveling Guide (Text Only)
    By Gothian in forum World of Warcraft Guides
    Replies: 12
    Last Post: 12-05-2006, 06:36 PM
  2. Joana's text guide!!
    By thekillerwhale in forum World of Warcraft Guides
    Replies: 3
    Last Post: 11-16-2006, 06:23 AM
  3. Haunted 1-45ish Leveling Guide(Text)
    By x_jonnyb.good_x in forum World of Warcraft Guides
    Replies: 0
    Last Post: 10-04-2006, 07:53 PM
  4. Joanna/mancow text guide. No download required.
    By Sasuke in forum World of Warcraft Guides
    Replies: 1
    Last Post: 07-15-2006, 02:36 PM
All times are GMT -5. The time now is 08:09 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search