Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. mov al, byte ptr [$CC0964] // get group ID [0-47]
  2. mov dx, word ptr [eax*2+$CC0CF8] // Get current group script position
  3. mov esi,[$CBF5E8] //get main script offset
  4.  
  5. mov ax, word ptr [esi+edx+01] // From
  6. mov di, word ptr [esi+edx+03] // To
  7. mov ecx, [esi+edx+05] // Value (if From is FFFF)
  8. mov dl, byte ptr [esi+edx+09] // Flag (0x1= 8 bit, 0x2=16 bit, 0x3=24 bit, 0x4= 32 bit)
  9. // 0x10 pointers from, 0x20 pointers to
  10. //Valid values are therefore, 1,2,3,4, 11,12,13,14, 21,22,23,24, 31,32,33,34 hex
  11.  
  12.  
  13. ----CODE HERE
  14.  
  15.  
  16. xor edx,edx
  17. mov byte ptr dl,[$CC0964]
  18. add word ptr [edx*2+$CC0CF8],$0A //advance script by 10 bytes
  19.  
  20.  
  21. < 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