What? The question is why does it stop at 3. EDX is a different thing in different places. The memory location 450BD4 is the "counter" that gets 1 added to it every TU. The question is how does this code work:
Edit: Okay, it's easy enough. It is the MOV ECX,3 thing.
If you change it to 6 it will indeed by 6 TU. You just need to make sure you change ECX back to 3 after doing the IDIV ECX or the exe crashes later.
Here is an exe where mana regenerates every 100 TU : http://www.mediafire.com/download/oyjvv6...100+TU.rar
Code:
0041D7A6 . 893D FC0B4500 MOV DWORD PTR DS:[450BFC],EDI
0041D7AC > A1 D00B4500 MOV EAX,DWORD PTR DS:[450BD0]
0041D7B1 . 83C0 01 ADD EAX,1
0041D7B4 . 8BCF MOV ECX,EDI
0041D7B6 . 2B0D D80B4500 SUB ECX,DWORD PTR DS:[450BD8]
0041D7BC . 99 CDQ
0041D7BD . 890D D80B4500 MOV DWORD PTR DS:[450BD8],ECX
0041D7C3 B9 0C000000 MOV ECX,0C
0041D7C8 . F7F9 IDIV ECX
0041D7CA . A1 D40B4500 MOV EAX,DWORD PTR DS:[450BD4]
0041D7CF . 83C0 01 ADD EAX,1
0041D7D2 B9 03000000 MOV ECX,3
0041D7D7 . C74424 64 000 MOV DWORD PTR SS:[ESP+64],0
0041D7DF . 8915 D00B4500 MOV DWORD PTR DS:[450BD0],EDX
0041D7E5 . 99 CDQ
0041D7E6 . F7F9 IDIV ECX
0041D7E8 . 393D 60114500 CMP DWORD PTR DS:[451160],EDI
0041D7EE . 8915 D40B4500 MOV DWORD PTR DS:[450BD4],EDX
Edit: Okay, it's easy enough. It is the MOV ECX,3 thing.
If you change it to 6 it will indeed by 6 TU. You just need to make sure you change ECX back to 3 after doing the IDIV ECX or the exe crashes later.
Here is an exe where mana regenerates every 100 TU : http://www.mediafire.com/download/oyjvv6...100+TU.rar
10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.