How to use GetNameByVID(VID)

04/28/2021 20:01 macnn50#1
.................
04/28/2021 20:12 ones-and-zer0es.mpeg#2
[Only registered and activated users can see links. Click Here To Register...]

you're moving the VID into the ECX register which is not correct, i assume that you want to pass it as a parameter -> you would need to push it instead of moving it into ECX (assuming its typical thiscall and no fancy anti cheat bullshit exists). Additionally, you need to move a CPythonCharacterManager instance pointer into ECX in this case since its the "base pointer" of which you want to call a function. Atleast thats what i got from the few informations you provided
04/28/2021 20:26 macnn50#3
Quote:
you're moving the VID into the ECX register which is not correct
what I am sending here is not "vid" but mobinstanceptr;
because I tried to do it like the example you showed on the other subject.
04/28/2021 20:50 ones-and-zer0es.mpeg#4
Quote:
Originally Posted by macnn50 View Post
what I am sending here is not "vid" but mobinstanceptr;
because I tried to do it like the example you showed on the other subject.
i think i understand now, where are you getting the MobBase from? is it the aliveinstance map?
04/28/2021 21:14 macnn50#5
Quote:
Originally Posted by ones-and-zer0es.mpeg View Post
i think i understand now, where are you getting the MobBase from? is it the aliveinstance map?
no, how can I get mobs from the aliveinstance map?
04/28/2021 21:31 theashmaster#6
I see you posted on the thread below. I don't know how you're getting the address to GetNameByVID function, but try this:

Use colddumper/another dumper to get the GetNameByVID address. Scroll down to the end of the function and search for instructions like these (it may vary depending on the game client):


Also, the area of the function on your screenshot doesn't look right.

After finding these instructions, recreate them in a function where you return a const char * and receives the target VID as a parameter. Then, at the end of the asm code block, move the eax (which stores the return value of the function) into a const char * var you created, and return it to your function, like this:


Or, if you want the easier way, use a function pointer (__asm will be happy hehehe xD). There are some tutorials in this forum, you can search for them.

ps: the code I posted might not work exactly as it is. It may be necessary to suit it to your game.
04/29/2021 01:51 macnn50#7
I solved the problem, thank you everyone, I want to ask something. How can I drag an item to an in-game npc?