Difference between revisions of "Game Opcodes:StartServerOrderEventFunction"
From FFXIV Classic Wiki
(→Data) |
(→Data) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Fires a function in the client side lua script that is bound to this actor. | |
:; Opcode - 0x130 | :; Opcode - 0x130 | ||
:; Source - Server | :; Source - Server | ||
− | :; Data Size - | + | :; Data Size - 0xB0 bytes |
− | :; Requirements - | + | :; Requirements - Event request was sent. |
== Data == | == Data == | ||
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 | + | | 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 || | + | | 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 || | + | | 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" | ''' | + | | colspan="1" style="background:#8FA6E8" | '''eventType''' |
| colspan="7" style="background:#f1cbff" | | | colspan="7" style="background:#f1cbff" | | ||
|- | |- | ||
! 0x10 | ! 0x10 | ||
− | | colspan="16" style="background:#f1cbff" | ''' | + | | colspan="16" style="background:#f1cbff" | '''functionName''' |
|- | |- | ||
! 0x20 | ! 0x20 |
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 |