[Help] Is SpellCoolDown change? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    junsen313's Avatar Private
    Reputation
    1
    Join Date
    Feb 2011
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Is SpellCoolDown change?

    I use this old code to determine spell is/not cooldown?
    but i can get right answer,is that something change?
    SpellCooldownPtr=0x00ACD584;

    Code:
    public static Boolean IsUsableSpell(int spellid)
            {
                uint currentListObject = Memory.ReadUInt(Memory.WowBaseAddress + (uint)Offsets.Globals.SpellCooldownPtr + 0x8);
    
                while ((currentListObject != 0) && ((currentListObject & 1) == 0))
                {
                    int currentSpellId = Memory.ReadInt(Memory.WowBaseAddress + currentListObject + 8);
    
                    if (currentSpellId == spellid)
                    {
                        int start = Memory.ReadInt(Memory.WowBaseAddress + currentListObject + 0x10);
                        int cd1 = Memory.ReadInt(Memory.WowBaseAddress + currentListObject + 0x14);
                        int cd2 = Memory.ReadInt(Memory.WowBaseAddress + currentListObject + 0x20);
                        int length = cd1 + cd2;
                        int globalLength = Memory.ReadInt(Memory.WowBaseAddress + currentListObject + 0x2C);
                        float cdleft = Math.Max(Math.Max(length, globalLength) - (Memory.ReadInt(Memory.WowBaseAddress + (uint)Resources.Offsets.Globals.Timestamp) - start), 0);
                        if (cdleft != 0)
                        {
                            return false;
                        }
                    }
                    currentListObject = Memory.ReadUInt(Memory.WowBaseAddress + currentListObject + 0x4);
                }
                return true;
            }

    [Help] Is SpellCoolDown change?
  2. #2
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    34
    Thanks G/R
    40/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    currentListObject = Memory.ReadUInt(Memory.WowBaseAddress + currentListObject + 0x4);

Similar Threads

  1. [Help] How to Change Database? :O
    By Lilltimmy in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 02-25-2008, 03:26 PM
  2. Need help with Weapon change with Hex editor:)
    By shveg in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-02-2007, 09:38 AM
  3. Need help with model changing
    By Sneakybeard in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 07-13-2007, 07:33 PM
  4. Plz help: How to change character list layout?????/
    By srpskagarda in forum World of Warcraft General
    Replies: 3
    Last Post: 03-08-2007, 07:09 PM
  5. Need some help with Head changing
    By Emotion in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 01-01-2007, 07:12 PM
All times are GMT -5. The time now is 07:39 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