Help File:Money type
The following custom type script will handle values that need to be divided by 100 to get to the
correct valueThis type is used by some games like civilization 5 where the money and research technology is
stored using this floating point type.with this script you'd be able to scan for 100 and 103 respectively, and if you wanted to change
the value to 700 you'd just change the value to 700 instead of 70000//The convert routine should hold a routine that converts the data to an
nteger (in eax)//function declared as: stdcall int ConvertRoutine(unsigned char
- input);
//Note: Keep in mind that this routine can be called by multiple threads
at the same time.push edx //fun fact about ce's assembler, because push ebx does not
exist in 64-bit it becomes the 64-bit push rdx automaticallymov eax,[ecx] //second fun fact, addressing with 32-bit registers doesn't work in 64-bit, it becomes a 64-bit automatically (most of the
time)div ebx //divide eax by 100 and put the result in eax (and leftover in
edx)//The convert back routine should hold a routine that converts the given integer back to a row of bytes (e.g when the user wats to write a new
value)//function declared as: stdcall void ConvertBackRoutine(int i, unsigned
char *output);mul ecx //multiply eax and put the results into edx:eax (edx is ignored
for this routine)