Difference between revisions of "Game Opcodes:StartServerOrderEventFunction"

From FFXIV Classic Wiki
Jump to: navigation, search
(Data)
(Data)
 
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
! style="text-align: center; font-size: 14px;" | Description
 
! style="text-align: center; font-size: 14px;" | Description
 
|-
 
|-
| 0x00 || actorID || 4 Bytes || playerActorID || The actor id of the player ending this event.
+
| 0x00 || actorID || 4 Bytes || playerActorID || The actor id of the player who triggered this event.
 
|-
 
|-
 
| 0x04 || actorID || 4 Bytes || ownerActorID || The actor id of the actor that owns the event.
 
| 0x04 || actorID || 4 Bytes || ownerActorID || The actor id of the actor that owns the event.
 
|-
 
|-
| 0x08 || byte || 1 Bytes || eventType || Seen values 0 (CommandContent), 1 (TalkEvent), 2 (PushDefault), 5 (NoticeEvent).
+
| 0x08 || byte || 1 Bytes || eventType || Seen values 0 (CommandContent), 1 (TalkEvent), 2 (PushDefault), 3 (EmoteDefault1), 5 (NoticeEvent).  
 
|-
 
|-
 
| 0x09 || string || 32 Bytes || functionName || The name of the client side lua function that is being called.
 
| 0x09 || string || 32 Bytes || functionName || The name of the client side lua function that is being called.
 
|-
 
|-
| 0x29 || luaParams || 96 Bytes || luaArgs || The arguments to that function.
+
| 0x29 || luaParams || 0x40 Bytes || luaArgs || The arguments to that function.
 +
|-
 +
| 0x49 || ?|| 0x40 Bytes || ? ||
 
|}
 
|}
  
 
== Notes ==
 
== Notes ==
 +
* luaArg types (known thus far)
 +
** 0x0 - Int32
 +
** 0x1 - UInt32
 +
** 0x2 - Null-termed String
 +
** 0x3 - Boolean: True
 +
** 0x4 - Boolean: False
 +
** 0x5 - Nil
 +
** 0x6 - Actor (By Id)
 +
** 0x7 - Item Reference to Inventory Spot
 +
** 0x8 - Used for offering (Trades)
 +
** 0x9 - Two Longs
 +
** 0xC - Byte
 +
** 0x1B - Short?
 +
** 0xF  - End
  
 
== Visual Layout ==
 
== Visual Layout ==
Line 39: Line 55:
 
| colspan="4" style="background:#8FA6E8" | '''playerActorID '''
 
| colspan="4" style="background:#8FA6E8" | '''playerActorID '''
 
| colspan="4" style="background:#8FA6E8" | '''ownerActorID '''
 
| colspan="4" style="background:#8FA6E8" | '''ownerActorID '''
| colspan="1" style="background:#8FA6E8" | '''unknown'''
+
| colspan="1" style="background:#8FA6E8" | '''eventType'''
 
| colspan="7" style="background:#f1cbff" |  
 
| colspan="7" style="background:#f1cbff" |  
 
|-
 
|-

Latest revision as of 18:47, 28 May 2024

Fires a function in the client side lua script that is bound to this actor.

Opcode - 0x130
Source - Server
Data Size - 0xB0 bytes
Requirements - Event request was sent.

Data

Offset Data Type Length Variable Description
0x00 actorID 4 Bytes playerActorID The actor id of the player who triggered this event.
0x04 actorID 4 Bytes ownerActorID The actor id of the actor that owns the event.
0x08 byte 1 Bytes eventType Seen values 0 (CommandContent), 1 (TalkEvent), 2 (PushDefault), 3 (EmoteDefault1), 5 (NoticeEvent).
0x09 string 32 Bytes functionName The name of the client side lua function that is being called.
0x29 luaParams 0x40 Bytes luaArgs The arguments to that function.
0x49  ? 0x40 Bytes  ?

Notes

  • luaArg types (known thus far)
    • 0x0 - Int32
    • 0x1 - UInt32
    • 0x2 - Null-termed String
    • 0x3 - Boolean: True
    • 0x4 - Boolean: False
    • 0x5 - Nil
    • 0x6 - Actor (By Id)
    • 0x7 - Item Reference to Inventory Spot
    • 0x8 - Used for offering (Trades)
    • 0x9 - Two Longs
    • 0xC - Byte
    • 0x1B - Short?
    • 0xF - End

Visual Layout

Game Opcode layout
0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
0x00 playerActorID ownerActorID eventType
0x10 functionName
0x20
0x30
0x40
0x50 luaArgs
0x60
0x70
0x80 00 00 00 00 00 00 00