[Question] Detect if Casting menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    fukmeimbroken's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Detect if Casting

    Hey,

    actually I'm using Thread sleep while casting. But sometimes I loose time between cast and next cast so I want to speed it up.

    Whats the best way to check if the player is casting. Someone said the channel_spell field o.O but for me it just returns something while cast a true channel spell.

    Greetings

    [Question] Detect if Casting
  2. #2
    Remus's Avatar Banned

    Reputation
    402
    Join Date
    Nov 2007
    Posts
    1,697
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have seen just checking on GCD and spamming the fk out of it until it goes through >.> ineffective in some manners

    I'd wait on a definitive answer though.

  3. #3
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    obj baseaddress + one of these:
    CastingSpellID = 0xA60,
    ChannelSpellID = 0xA80,

    returns the spellid or 0 if nothing is cast

    int Creature::SpellID()
    {
    if (*CastID > 0)
    return *CastID;
    else
    return *ChannelID;
    }


    hm, i should maybe use return *CastID | *ChannelID ...
    Last edited by mnbvc; 04-17-2010 at 04:13 AM.

  4. #4
    fukmeimbroken's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mnbvc View Post
    obj baseaddress + one of these:
    CastingSpellID = 0xA60,
    ChannelSpellID = 0xA80,
    Did it for me thanks .

  5. #5
    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)
    You can find these offsets by reversing UnitCastingInfo / UnitChannelInfo:

    UnitSpellId = 0xA6C;
    UnitSpellEnd = 0xA7C;
    UnitChannelId = 0xA80;
    UnitChannelEnd = 0xA88;

    The *End offsets are handy because most of the time you don't want to interrupt a cast as soon as it is fired, but rather when it's about to finish.
    "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

  6. #6
    evil2's Avatar Active Member
    Reputation
    27
    Join Date
    Feb 2009
    Posts
    172
    Thanks G/R
    31/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'm looking for the "target guid" location of the "current casting player spell" for a long time,
    anyone found it so far?.. but maybe its only serverside.

  7. #7
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by evil2 View Post
    i'm looking for the "target guid" location of the "current casting player spell" for a long time,
    anyone found it so far?.. but maybe its only serverside.
    I suppose you mean Current Cast for the Target... Then all you'd have to do is scan the players list (learn about ClientMgr/ConnectionMgr) for the player that has the GUID you found using Target GUID address, then read (this player base + one of the offsets listed above).

  8. #8
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Actually, that's not quite right. Once you start casting a spell you can easily change/drop targets and the spell still knows where to go.

  9. #9
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    Actually, that's not quite right. Once you start casting a spell you can easily change/drop targets and the spell still knows where to go.
    In that case, unless your bot is targeting everything it sees without reason, you should be able to use LastTargetGUID. (He asked for the target's casted spell if I'm not wrong)
    Last edited by DrakeFish; 04-17-2010 at 12:54 PM.

  10. #10
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ahh, I read that as finding the target of the spell you're casting.

  11. #11
    evil2's Avatar Active Member
    Reputation
    27
    Join Date
    Feb 2009
    Posts
    172
    Thanks G/R
    31/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DrakeFish View Post
    In that case, unless your bot is targeting everything it sees without reason, you should be able to use LastTargetGUID. (He asked for the target's casted spell if I'm not wrong)
    namreeb is right, i'm looking the the "fixed" target of the casting spell.
    it's different from your players target.
    dunno why blizzard didn't put this guid into the UnitFields too.

    using lasttargetguid is way too wobbly ;-)

  12. #12
    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)
    Originally Posted by evil2 View Post
    namreeb is right, i'm looking the the "fixed" target of the casting spell.
    it's different from your players target.
    dunno why blizzard didn't put this guid into the UnitFields too.

    using lasttargetguid is way too wobbly ;-)
    UNIT_SPELLCAST_SENT - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
    "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

Similar Threads

  1. [Question] hmm, how do i make a mob rapidly cast spells?
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-27-2007, 10:38 AM
  2. Question (Combo Casting)
    By Mozq in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 12-24-2007, 10:19 AM
  3. [question, please help] suggestions on exiting wow fast to avoid detection
    By Skizzilini in forum World of Warcraft General
    Replies: 8
    Last Post: 12-18-2007, 01:08 AM
  4. [Question] Arcane Casting Animation and Starfire M2 file.
    By Zyun in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-26-2007, 08:10 AM
  5. Question concerning casting animations
    By rafen in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-08-2006, 10:50 PM
All times are GMT -5. The time now is 11:29 AM. 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