[Guide-4.0.6a] Getting currency info... menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide-4.0.6a] Getting currency info...

    Just in case anyone wants it, not horribly difficult. Obviously this is for mac, but the relevant offset for Windows 4.0.6a is: 0xC19398

    I reversed this function: API GetCurrencyInfo - WoWWiki - Your guide to the World of Warcraft
    Code:
    - (int)getCurrencyInfo:(CurrencyType)currencyID{
    	
    	UInt32 offset = 0xFE7A08;
    	
        int curAddress = offset;
    	int rowPtr = 0;
    	
           while ( 1 ){
    		
    		rowPtr = [_memory readUInt:curAddress];
    		if ( !(rowPtr & 1 || !rowPtr) ){
    			
    			// search for the ID
    			int idPtr = [_memory readUInt:rowPtr + 0x8];
    			if ( [_memory readUInt:idPtr] == currencyID ){
    				return [_memory readUInt:rowPtr + 0xC];
    			}
    		}
    		
    		// check the next one!
    		curAddress += 4;
    		
    		// not actually sure what this should be, just guessing
    		if ( curAddress > offset + 0x200 )
    			break;
        }
    	
    	return 0;
    }
    The CurrencyType is simply the integer that is posted on the above website.
    Last edited by Tanaris4; 03-22-2011 at 05:24 PM.
    https://tanaris4.com

    [Guide-4.0.6a] Getting currency info...
  2. #2
    counted's Avatar Contributor Authenticator enabled
    Reputation
    203
    Join Date
    Mar 2008
    Posts
    183
    Thanks G/R
    11/108
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Get Currency Updated for 21742

    Does anyone know what currency type

    Code:
    public static class Currency483, 484, and 692 are??
    
    -counted
    
        {
        
    public enum eCurrencyType
        {
            Dalaran_Jewelcrafter_Token = 61,
            Dalaran_Cooking_Award = 81,
            Champion_Seal = 241,
            Illustrious_Jewelcrafter_Token = 361,
            Dwarf_Archaeology_Fragment = 384,
            Troll_Archaeology_Fragment = 385,
            Conquest_Points = 390,
            Tol_Barad_Commendation = 391,
            Honor_Points = 392,
            Fossil_Archaeology_Fragment = 393,
            Night_Elf_Archaeology_Fragment = 394,
            Justice_Points = 395,
            Valor_Points = 396,
            Orc_Archaeology_Fragment = 397,
            Draenei_Archaeology_Fragment = 398,
            Vrykul_Archaeology_Fragment = 399,
            Nerubian_Archaeology_Fragment = 400,
            Tolvir_Archaeology_Fragment = 401,
            Chef_Award = 402,
            Mark_of_the_World_Tree = 416,
            Unknown1 = 483,
            Unknown2 = 484,
            Darkmoon_Prize_Ticket = 515,
            Mote_of_Darkness = 614,
            Essence_of_Corrupted_Deathwing = 615,
            Pandaren_Archaeology_Fragment = 676,
            Mogu_Archaeology_Fragment = 677,
            Elder_Charm_of_Good_Fortune = 697,
            Lesser_Charm_of_Good_Forune = 738,
            Mogu_Rune_of_Fate = 752,
            Mantid_Archaeology_Fragment = 754,
            Warforged_Seal = 776,
            Timeless_Coin = 777,
            Boody_Coin = 789,
            Draenor_Archaeology_Fragment = 821,
            Apexis_Crystal = 823,
            Garrison_Resource = 824,
            Ogre_Archaeology_Fragment = 828,
            Arakkoa_Archaeology_Fragment = 829,
            Timewarped_Badge = 875,
            Artifact_Archaeology_Fragment = 944,
            Unknown3 = 692,
            Seal_of_Tempered_Fate = 994,
            Oil = 1101,
            Seal_of_Inevitable_Fate = 1129,
            Valor = 1191,
            Unknown,
        }
    
        public static int Get(eCurrencyType cur)
            {
                // Wow.21742 Mem.Rebase0x1000(0xbc4810);
    
                uint pRow = Mem.Read<uint>(Offsets.pCurrencyTable);
    
                while ((pRow & 1) == 0 && pRow > 0)
                {
    
                    // search for the ID
                    uint pID = Mem.Read<uint>(pRow + 0x8);
    
                    int id = Mem.Read<int>(pID);
    
                    if (id == (int)cur)
                    {
                        int amount = Mem.Read<int>(pRow + 0xc);
                        return amount;
                    }
    
                    pRow = Mem.Read<uint>(pRow + 4);
                }
                return 0;
            }
        }

  3. #3
    CrimeTime's Avatar Active Member
    Reputation
    20
    Join Date
    Dec 2007
    Posts
    83
    Thanks G/R
    16/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can simply check it ingame:
    Code:
     /script local name, amount, texturePath, earnedThisWeek, weeklyMax, totalMax, isDiscovered, quality = GetCurrencyInfo(483) print(name)

Similar Threads

  1. [C# snippet] Get player info by GUID (name, race and class)
    By T@rget in forum WoW Memory Editing
    Replies: 1
    Last Post: 09-03-2016, 01:11 PM
  2. [Guide]-finding items and getting NPC ID's-
    By fireguild1 in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 11-05-2007, 09:59 PM
  3. How can i get account info with secret question?
    By Matador in forum World of Warcraft General
    Replies: 2
    Last Post: 08-23-2007, 12:50 PM
  4. [Guide] How to not get banned using GLIDER
    By israelijedi in forum World of Warcraft Guides
    Replies: 6
    Last Post: 02-15-2007, 03:28 PM
All times are GMT -5. The time now is 04:00 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