[Help] Dont know why its not working! menu

Shout-Out

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35
  1. #31
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the VMT methods. They're a huge help. You can find the offset to the GetObjectName() method inside the LUA functions. Just go look in IDA and you'll see something like "call eax", this is nearly always a VMT function(it reads basePtr and adds something to it, then calls eax).

    EDIT: Sadly, I just looked at the UnitName() lua function, and it doesn't seem to use the vmt BUT it does have the function to retrieve object names(you just have to follow the correct series of jumps to find it). I'm sure it shows unit names and player names, but I'm a little lazy.
    Last edited by lanman92; 05-09-2009 at 12:21 AM.

    [Help] Dont know why its not working!
  2. #32
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Look at the VMT methods. They're a huge help. You can find the offset to the GetObjectName() method inside the LUA functions. Just go look in IDA and you'll see something like "call eax", this is nearly always a VMT function(it reads basePtr and adds something to it, then calls eax).

    EDIT: Sadly, I just looked at the UnitName() lua function, and it doesn't seem to use the vmt BUT it does have the function to retrieve object names(you just have to follow the correct series of jumps to find it). I'm sure it shows unit names and player names, but I'm a little lazy.
    Well it doesn't call into the player's GetObjectName VM directly, but they both call the same function.

    CGPlayer_C::GetObjectName
    ----------------------------
    push 1
    push 0
    call GetUnitName (0x5AD970)
    retn

    and UnitName (the lua function) first makes a shitload of compares to verify that the lua function was called properly and then looks what type the object is, and eventually, if it's also a Unit/Player, calls the same function GetUnitName, that looks again if it's a player or a unit and for a unit just gets the name via [[..+0x968]+0x54], and if it's a player it calls into 0x681970, and that function calls into the one I mentioned earlier.

    If you want to find it the next patch, you can just as well take a look at the lua function UnitName, with that function you can update (nearly?) all your 'getName' methods.

  3. #33
    mordok's Avatar Member
    Reputation
    11
    Join Date
    Oct 2007
    Posts
    103
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Ill start to slowllllyyyyyy, XD , follow each jump. In fact I find it very entretaining ^^..... RCE > SUDOKUS
    "I'm not going to expose my methods for time bending, as i don't want to do get nerfed!"-Kynox

  4. #34
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SKU View Post
    Well it doesn't call into the player's GetObjectName VM directly, but they both call the same function.

    CGPlayer_C::GetObjectName
    ----------------------------
    push 1
    push 0
    call GetUnitName (0x5AD970)
    retn

    and UnitName (the lua function) first makes a shitload of compares to verify that the lua function was called properly and then looks what type the object is, and eventually, if it's also a Unit/Player, calls the same function GetUnitName, that looks again if it's a player or a unit and for a unit just gets the name via [[..+0x968]+0x54], and if it's a player it calls into 0x681970, and that function calls into the one I mentioned earlier.

    If you want to find it the next patch, you can just as well take a look at the lua function UnitName, with that function you can update (nearly?) all your 'getName' methods.
    The above is exactly the method I used, way back when, to reverse player names out. It's pretty straight forward. We all know that [obj+0x14] is OBJECT_TYPE, so whenever you see something do something like:
    Code:
    mov eax, [ecx+0x14]
    cmp eax, 5
    jnz xxxxxxx
    cmp eax, 4
    jnz xxxxxxx
    ...you know it's probably going different places based on different object types. One of those little tricks, just like the one lanman mentioned about the VMT.

  5. #35
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's unfortunate that the function does not do the comparison as clearly as you posted. The compiler optimizes out simple cmp's like that into shr's and tests.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Need some Help with a script of mine! not working and i dont know why.
    By Flesh0209 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-08-2009, 08:10 PM
  2. [HELP!]Dont Know How To Use C++ Scripts...
    By Lets See2 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-24-2008, 12:55 AM
  3. [HELP] My spell.dbc is not working
    By kate1 in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-06-2008, 12:43 PM
  4. Help! 2.2.0 Still not working!
    By Losheau in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 10-01-2007, 02:56 PM
All times are GMT -5. The time now is 07:47 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