Might and Magic VIII (Little utility)

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).
Demolish
Leprechaun
Leprechaun
Posts: 5
Joined: 14 Jul 2011

Might and Magic VIII (Little utility)

Unread postby Demolish » 19 Mar 2014, 14:58

Hey I was having some fun with MM8 and I've made something like fps movement in this game :) It actually lacks some improvments. If you want to test it you need Cheat Engine.

Code: Select all

alloc(main,2000)
alloc(lastCursorPos,8)
alloc(dist,8)
createthread(main)
label(jump1)
label(jump2)


main:
cmp [mm8.exe+FC3F4],0 //IF WindowFocus==0 then return to begin
je main
cmp [mm8.exe+1A85FC],1 //IF InRoom==1 jump to begin
je main
cmp [mm8.exe+C09048],1 // -||-
je main
cmp [mm8.exe+11A5F4],0 //IF Ingame==0 jump to begin
je main
cmp [mm8.exe+18A9CC],1 // IF in MainMenu then go to start
je main

push eax
mov eax,[mm8.exe+C08FE0]
mov [lastCursorPos],eax
mov eax,[mm8.exe+C08FE4]
mov [lastCursorPos+4],eax  //Save 1st cursor position


push #1
call Sleep



mov eax,[mm8.exe+C08FE0]
sub eax,[lastCursorPos]
mov [dist],eax
mov eax,[mm8.exe+C08FE4]
sub eax,[lastCursorPos+4]
mov [dist+4],eax
                                 //Counting dist


mov eax,[dist]
sub [mm8.exe+724400],eax
cmp [mm8.exe+724400],#2048
jl jump1
sub [mm8.exe+724400],#2048
jump1:
cmp [mm8.exe+724400],#0
jge jump2
add [mm8.exe+724400],#2048
jump2:
mov eax,[dist+4]
sub [mm8.exe+724404],eax             //Set proper angles
pop eax


mov [lastCursorPos],#319
mov [lastCursorPos+4],#239
mov [mm8.exe+C08FE0],#319
mov [mm8.exe+C08FE4],#239
push #239
push #319
call SetCursorPos     //Set Cursor to center



jmp main //end if
You need to put it in AutoAssemble(to do this click on Memory View->(press ctrl+A)->then paste it and execute)
HF

User avatar
tolich
Spectre
Spectre
Posts: 748
Joined: 10 Jan 2009
Location: Minsk, Belarus

Unread postby tolich » 19 Mar 2014, 18:58

Mouse look? Duh, GrayFace's patch already made it real.

Demolish
Leprechaun
Leprechaun
Posts: 5
Joined: 14 Jul 2011

Unread postby Demolish » 19 Mar 2014, 20:27

Sorry, didn't know :/ I'm not up to M&M community as you can see :P


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 45 guests