How to find certain offsets

11/29/2009 06:38 sachamo512#1
I'm trying to learn how to write my own CE scripts, since I know assembly language decently well, I figured it would be a good, easy thing to learn. However, I read the tut that somebody posted and they used wallhack as the example, which is pretty easy to follow and understand.

My question is, how do I find things that are not as easy (searching for .mac). I want to re-create a range hack, since the old script that I have doesn't work anymore. How do I search for the range of all skills? (or whatever I need to be searching for?) I'm also going to try and get both skill hacks working again, so I don't have to CRC bypass anymore...how could I find those offsets?
11/29/2009 07:29 -8gX#2
Do a... hmm... i dunno how to do a while() loop in asm. or a foreach(). something to cycle through the list of all skills and change the range value etc... Look in an unpacked client for what you need to edit in the .csv's and then basically recreate that in ASM

>.> hope that sounded sorta helpful to get you in the right direction.
11/30/2009 05:23 sachamo512#3
hmm...I know where it is in the CSV's! So how do I create that into a CE script?
11/30/2009 07:14 -8gX#4
Well look at the CE tutorial already posted. How do you change the braiken.mac to web_image.mac? You look in maplist.csv etc. You have to do the same I believe in ASM.

Actually, i started you on the wrong track. You have to find the function that calls the cooldown / agro property / etc and edit that call in ASM. It gets complicated fast. The wallhack tuorial isnt the best of examples cause the way he did it was quite simple and doesnt involve actually finding any functions etc. Im not a CE script expert. So someone that is can probably help you further. I know there is always function that controls pretty much any aspect of the game. The trick is finding it.

Sorry i cant be more helpful :/
11/30/2009 18:32 sachamo512#5
I guess that's the question I should've asked from the start. How do I find what calls those certain things? Cuz once I find that, making the script it relatively easy...I just don't know how to find the call... i'll search CE's website and google
12/01/2009 05:14 PureEnergy3#6
can you not just debug it with ollydbg
i thought that was for testing what calls where and when
maybe if you find somthing you think it is you can set a breakpoint?
to be honest im quite a noob with asm
but this has helped me alot. thx
12/01/2009 17:10 sachamo512#7
you could just search for all calls, but there are so many calls in the game that going through them one at a time would take too long...it would be a needle in a haystack
12/02/2009 03:06 -8gX#8
Start out with finding the offset for the hack you want... Then use CE's pointer searching thingy to backtrack through all the pointers to find the original call.
12/02/2009 16:24 sachamo512#9
OK, I found the offset for one skill and I'm currently running the Pointer Scan. I've never done this before, but it says it has already found over 800 pointers with a static base, and it's still finding more. How can I filter through all of the 800 once it is done?