I'm already done with the
-GM Command
-Disabled Attack Animation
-Disable the client from setting the current attack state (Can't confirm though but as far as i look at it, seems like i NOP's the right address)
-Disable attack speed (Can't confirm though but as far as i look at it, seems
like i NOP's the right address)
-Created the call for the 2nd Code Cave (the long code)
At first i tried putting the original code from the address were i change to CALL XXXXXXXX (Code cave address)
Code Cave Snippets:
XOR EDI,EDI
MOV EDX,DWORD PTR DS:[Exx+1xx] <-The original code which is replace by CALL XXXXXXXX (Code cave)
INC EDI
CMP EDI,4
JL short XXXXXXXX (MOV EDX,DWORD PTR DS:[Exx+1xx] address of the 2nd command in the code cave)
RETN
This works, no attack animation then after a few sec monster dies (but i dont think the attack speed changes, the rate of mons kill is almost the same)
so when I change the code cave to sorien's code (with updated addresses)
when i attack, the game crashes lol (this is where i'm stuck)
Any idea what's wrong with this code will be much appreciated and I'm willing to share the code if your suggestion helps me out and you want the code (which i doubt since you already help me out how to make this work so probably you already have your working one but if incase i will and don't worry i won't leak it to public your code is safe, i will just use this for my own during long boring grinding days of rohan ) anyway here's the code that gave me problem
XOR EDI,EDI
MOV EDX,DWORD PTR DS:[0AF1264]
MOV EAX,DWORD PTR DS:[0AF1260]
MOV ECX,DWORD PTR DS:[0AC2F38]
PUSH EDX
PUSH EAX
PUSH 0
PUSH 1308
CALL 00406E54 <- Changes this to the updated address
MOV EDX,DWORD PTR DS:[0AF1264]
MOV EAX,DWORD PTR DS:[0AF1260]
PUSH EDX
PUSH EAX
LEA ECX,DWORD PTR SS:[ESP+1C]
PUSH ECX
MOV ECX,DWORD PTR DS:[0AC2F38]
PUSH 1307
CALL 00406E54 <- Changes this to the updated address
steps upward
INC EDI
CMP EDI,4
JL SHORT 00A06969 <- updated this address to the address of MOV EDX,DWORD PTR DS:[0AF1264] (2nd command of the code cave)
MOV EDI,EBP
RETN
Any idea what could be the problem?
Thanks,
Again don't flame me if I said I wont leak it to public, as the Subject say's NOT FOR LEECHERS!