Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov al, byte ptr [$CC0964] // get group ID [0-47]
- mov dx, word ptr [eax*2+$CC0CF8] // Get current group script position
- mov esi,[$CBF5E8] //get main script offset
- mov ax, word ptr [esi+edx+01] // From
- mov di, word ptr [esi+edx+03] // To
- mov ecx, [esi+edx+05] // Value (if From is FFFF)
- mov dl, byte ptr [esi+edx+09] // Flag (0x1= 8 bit, 0x2=16 bit, 0x3=24 bit, 0x4= 32 bit)
- // 0x10 pointers from, 0x20 pointers to
- //Valid values are therefore, 1,2,3,4, 11,12,13,14, 21,22,23,24, 31,32,33,34 hex
- ----CODE HERE
- xor edx,edx
- mov byte ptr dl,[$CC0964]
- add word ptr [edx*2+$CC0CF8],$0A //advance script by 10 bytes
- < And eax decides if this function is called next frame or position at this point in current script is allowed to advance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement