{$lua} blocks act more like preprocessor macros. They run before most other things and are replaced by whatever string they return (if any).
You could call Lua code to run from the game, but that would be ridiculous for something like this. Just use assembly.
Code:
newmem:
cmp eax,1
je short checkagain
originalcode:
mov [esi+ecx*4],ebx
exit:
mov eax,ebx
jmp returnhere
checkagain:
lea eax,[ecx-C]
cmp eax,1
ja short originalcode
jmp short exit
PS: the 0x prefix exists in Lua. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum