Jump to content

Opcode UnknownF883


Lemon

Recommended Posts

For anyone interested, I think I figured out what opcode 0xF883 does. It seems to read the number of players within a certain distance of a specific player.

UnknownF883 R1, R3
R1 = slot number
R2 = distance
R3 = output

Not sure if anyone else has bothered to mess with it, but it wasn't documented on qedit.info so I figured I'd do it. Could be useful for a 'wait for all players' kinda thing.  I'll add it to the 'how to' thread as well.

Spoiler

0:      set_episode 00000000
        BB_Map_Designate 00, 0000, 00, 00
        leti R2, 00000028
        set R74
        set_quest_board_handler 00000000, 400, 'Thing'
        ret 
402:    get_slotnumber R1
        unknownF883 R1, R3
        ret 
400:    list R9, 'Check<cr>Change R2'
        switch_jmp R9, 2:402:401
401:    list R9, '10<cr>20<cr>30<cr>40<cr>50<cr>60<cr>70<cr>80'
        switch_jmp R9, 8:1:2:3:4:5:6:7:8
1:      leti R2, 0000000A
        ret 
2:      leti R2, 00000014
        ret 
3:      leti R2, 0000001E
        ret 
4:      leti R2, 00000028
        ret 
5:      leti R2, 00000032
        ret 
6:      leti R2, 0000003C
        ret 
7:      leti R2, 00000046
        ret 
8:      leti R2, 00000050
        ret 

Example File f883.qst

 

Edited by Lemon
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...