[3.1.3] IsCurrentSpellBySpellId menu

User Tag List

Results 1 to 5 of 5
  1. #1
    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)

    [3.1.3] IsCurrentSpellBySpellId

    I was looking for a way to check if a given spell is currently being cast by the local player. After reading this thread: http://www.mmowned.com/forums/wow-me...rice-none.html I have updated the information there and come up with the following:

    Code:
    	  <Pattern desc="IsCurrentSpellBySpellId" pattern="\x55\x8B\xEC\xA1\xAC\xA2\xA1\x00\xA8\x01\x75\x04\x85\xC0\x75\x02\x33\xC0\x8B\x4D\x08\xA8\x01\x75\x12\x85\xC0\x74\x0E\x39\x48\x20\x74\x05\x8B\x40\x04\xEB\xEE\xB0\x01\x5D\xC3" mask="xxxx????xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
    Code:
    bool CGLocalPlayer_C::IsCurrentSpell( unsigned long SpellId )
    {
    	typedef bool ( __cdecl * tIsCurrentSpellBySpellId ) ( unsigned long );
    	tIsCurrentSpellBySpellId IsCurrentSpellBySpellId = ( tIsCurrentSpellBySpellId )gpWoWX->GetFindPattern()->GetAddress("IsCurrentSpellBySpellId");
    
    	return IsCurrentSpellBySpellId(SpellId);
    }

    [3.1.3] IsCurrentSpellBySpellId
  2. #2
    barthen's Avatar Contributor Authenticator enabled
    Reputation
    94
    Join Date
    Apr 2007
    Posts
    112
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for sharing

  3. #3
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for sharing. The pattern is quite big and I would recommend shortening it a bit.

  4. #4
    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)
    Yah, the pattern is actually the entire function. I had to lengthen it quite a bit (though probably not this much) because there is another very similar function.

  5. #5
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pattern the bit that is different and then subtract the amount of bytes to the start of the function

All times are GMT -5. The time now is 11:21 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