Hello,
I am having some troubles with the salvage item function. I did some amateur reversing in olly and actually managed to successfully call the salvage item function but then without changing anything, the function began to crash the game. I was not able to recreate the in-game scenario in which my function worked and in which it crashed the game. Did not change much in-game either. Just restarted the game once.
If you look at the attached picture:
I suspected the salvage item function to be @ 0x800820, so I loaded the registers with the assumed necessary values and did some trial and error tryouts and actually got it working - until it began to crash the game (I could not identify a possible reason for this, I suspect a game restart).
EAX always has a pointer to a 0 - I do not know the purpose.
ECX always seems to be 9, I do not know why.
EDX and EBX contain the itemId of the salvageKit
EDI contains the itemId of the item that is about to be salvaged
I also went up in the call tree but I could not get the function to work again.
Can anyone give me some insight on why I am failing to get this particular function to work? Identing, Selling, Moving, Casting, Targeting - it all works fine, but this salvage thing with its random functionality is driving me nuts.
Yours sincerely






