[Help][C#] Reading player level menu

User Tag List

Results 1 to 6 of 6
  1. #1
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help][C#] Reading player level

    Ok well im new to C# Ive been looking at Jadd's thread to help new people.

    Here is what I thought would work:
    Code:
    string Level = WoW.ReadInt((0x00A7B434 + 0x35), false); // Reads players level
    However it return the error:
    "Cannot implicitly convert type 'int' to 'string'"

    Any ideas?

    Thanks


    P.S: Also how do I store offsets in a different file for easy editing.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [Help][C#] Reading player level
  2. #2
    dealerchen's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    string Level = (string) WoW.ReadInt((0x00A7B434 + 0x35), false); // Reads players level
    OR a maybe better way:
    Code:
    string Level = WoW.ReadInt((0x00A7B434 + 0x35), false).ToString(); // Reads players level
    for storing offsets:
    Code:
    uint offset = 0x00A7B434;

  3. #3
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I will try both ways later.

    About the offsets though, I know theres a way to have them in a diffrent file, i just dont know how.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  4. #4
    dealerchen's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uhm if you set them like this in the class (not in an method) you can also reach them from another file...
    if your other file is another class you have to set it to:
    public static uint offset = ...;
    and then you can access it via:
    class.offset

  5. #5
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dealerchen View Post
    uhm if you set them like this in the class (not in an method) you can also reach them from another file...
    if your other file is another class you have to set it to:
    public static uint offset = ...;
    and then you can access it via:
    class.offset

    When reading players level like this:

    Code:
    string Level = WoW.ReadInt((((0x00A7B434) + 0x0C) + 0x24) + 0x35 * 4, false).ToString(); // Reads players level
    It returns 3, but my character is level 80. I have a feeling its something todo with my player base: "(((0x00A7B434) + 0x0C) + 0x24)" how ever I cant find out how to read the in C#, In Crappy Autoit I can do it like this:
    Code:
    	$ptr1 = _BMReadMemory($Handle, $PlayerBase, "ptr")
    	$ptr2 = _BMReadMemory($Handle, $ptr1 + $PlayerBaseOffset1, "ptr")
    	$pBase = _BMReadMemory($Handle, $ptr2 + $PlayerBaseOffset2, "ptr")
    Any ideas?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  6. #6
    dealerchen's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you will need to:
    Code:
    string Level = WoW.ReadInt(WoW.ReadInt(WoW.ReadInt(WoW.ReadInt(0x00A7B434) + 0x0C) + 0x24) + 0x35 * 4, false).ToString(); // Reads players level
    to get the right pointer most likly. if it still doesnt work check if your offsets are right

Similar Threads

  1. AutoIt - Read Players Health help
    By D3ADLiN3 in forum WoW Memory Editing
    Replies: 2
    Last Post: 10-11-2011, 12:34 AM
  2. [Help] Reading Player Names
    By nopz in forum WoW Memory Editing
    Replies: 0
    Last Post: 09-15-2009, 05:59 PM
  3. Just a bit of help for you medium level characters
    By Orious in forum World of Warcraft Guides
    Replies: 5
    Last Post: 10-17-2007, 07:40 PM
  4. Need Help, Please Read!
    By Fenarth in forum World of Warcraft General
    Replies: 5
    Last Post: 08-12-2007, 10:57 AM
  5. Help me get to level 60
    By Kaladze in forum World of Warcraft General
    Replies: 4
    Last Post: 08-05-2006, 12:28 AM
All times are GMT -5. The time now is 04:24 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search