CastPETspell? menu

User Tag List

Results 1 to 3 of 3
  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)

    CastPETspell?

    Does anyone have experience with casting pet spells?
    Apparently the Castspell at 0x7c4640 is not triggered at all..
    And if I try to cast a spell for the pet tab he tries to cast it from the toon. Which obviously fizzles

    Anyone who can point me in some direction ? I could do a macro.. Place my target in Me.Target then press the macro. But id rather have a clean solution if anyone knows something better..

    Thanks

    CastPETspell?
  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)
    This sub should point you in the right direction.

    Code:
     for i=1, NUM_PET_ACTION_SLOTS, 1 do
       local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i);
       if ( name == "Sacrifice" ) then
         CastPetAction(i);
       end
     end
    "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)
    Originally Posted by Robske View Post
    This sub should point you in the right direction.

    Code:
     for i=1, NUM_PET_ACTION_SLOTS, 1 do
       local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i);
       if ( name == "Sacrifice" ) then
         CastPetAction(i);
       end
     end
    It did indeed point me in the right direction.. but.

    Digging further down it seems like it uses.

    0055BBF0 CGPetInfo__SetMode
    followed by
    46A1D0

    the function at 55BBF0 is also taking its arguments from EAX?

    I dont really know how to see what stuffs are hidden behind EAX? Id spose eax should point to a stack or something like that? Im stuck here. Dont really know how to proceed..
    Also.. what kind of call is it
    The method is quite big so the easiest way would be to break there and have a look at the args. But.. How do I see the args. (I use ollyDB). Anyone?

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