This functions were taken from the Gears project, but it seems they seems to be incorrect...or smth. I managed to find something myself and here's what I found:
In md1stin there's only one regular dialog and two 'notifications' used. They use other message definition, beginning with 40h:
0x4BD offset - 40 03 1E 01 - "C'mon newcomer, follow me"
0x73F offset - 40 00 06 82 - Received "Potion"!
0x762 offset - 40 00 06 82 - Received "Potion"!
Here, you have syntax:
40 ?? dd id
Where:
dd - Dialog number
id - Window id
For the first dialog, you can see that it uses 31th (1Eh + 1) dialog from dialog table (Which is - "C'mon newcomer, follow me") and window with id 01.
Second messege uses 7th (06h + 1) dialog, which is: Received "Potion"! And so...
Now, go to the first offset, 0x4BDh and go backwards 10 bytes. You can see there:
50 03 28 00 14 00 85 00 29 00
50 ?? xx xx yy yy ww ww hh hh
These are at 0x4B3.
?? - unknown
xx - 2 byte horizontal position
yy - 2 byte vertical position
ww - 2 byte width
hh - 2 byte height
To check if everything is ok, let's check another one. Go to 0x73F where you can find message func for "Received 'Potion'!". Now go 10 bytes backwards, to 0x735:
50 00 53 00 0a 00 8A 00 19 00
50 ?? xx xx yy yy ww ww hh hh
It's the same as above. And that concludes out lesson for today
![Smiley :)](https://forums.qhimm.com/Smileys/akyhne/smiley.gif)
.