[question] IsUsableAction menu

User Tag List

Results 1 to 3 of 3
  1. #1
    pladi's Avatar Member
    Reputation
    4
    Join Date
    Jan 2009
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [question] IsUsableAction

    Hey

    I've been working on a private bot for wow, and got most of the work set up, however, there is one thing that annoys me right now. I'm trying to check wether a Action is usable using IsUsableAction.
    My code:
    Code:
    int IsUsableAction = Memory.Read<int>(Memory.BaseAdress + (uint)Offsets.ActionBar.IsUsableAction + (slot * 0x4));
    int IsUsableActionNoMana = Memory.Read<int>(Memory.BaseAdress + (uint)Offsets.ActionBar.IsUsableActionNoMana + (slot * 0x4));
    
    IsUsableAction = 0xB42648,
    IsUsableActionNoMana = 0xB42408,
    The problem is, no matter what number slot, they both return 0.
    Any help is greatly appreciated

    - Pladi
    Last edited by pladi; 03-05-2012 at 10:40 AM.

    [question] IsUsableAction
  2. #2
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
            public static Boolean IsUsableAction(Int32 ActionId)
            {
    
                Int32 ActionIndex = GetActionIndexByActionId(ActionId);
    
                if (ActionIndex == -1)
                    return false;
    
                if (Memory.ReadUInt((uint)Resources.Offsets.Globals.IsUsableAction + ((uint)ActionIndex * 4), "Wow.exe") == 0)
                    return false;
    
                if (Memory.ReadUInt((uint)Resources.Offsets.Globals.IsUsableActionNoMana + ((uint)ActionIndex * 4), "Wow.exe") == 1)
                    return false;
    
                return true;
    
            }
    I used that in the past without problem

  3. #3
    pladi's Avatar Member
    Reputation
    4
    Join Date
    Jan 2009
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just tried out your code, and it is giving me a false on every every spell/action.
    There shouldn't be anything wrong with the Offsets, so i'm pretty confused on what could be the reason.

Similar Threads

  1. Model Changing Question
    By MasterYuke in forum World of Warcraft General
    Replies: 6
    Last Post: 09-17-2006, 09:56 PM
  2. Couple Private Server questions
    By Jboz in forum World of Warcraft General
    Replies: 21
    Last Post: 07-26-2006, 07:37 PM
  3. Sorry..newb mail question
    By nolbishop in forum World of Warcraft General
    Replies: 2
    Last Post: 06-07-2006, 07:21 PM
  4. Question..
    By janzi9 in forum Community Chat
    Replies: 3
    Last Post: 04-02-2006, 10:20 AM
  5. A GALB question
    By bassman in forum World of Warcraft General
    Replies: 4
    Last Post: 03-28-2006, 09:49 AM
All times are GMT -5. The time now is 04:07 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