Difference between revisions of "Game Opcodes:StartServerOrderEventFunction"

From FFXIV Classic Wiki
Jump to: navigation, search
(Data)
(Notes: Added known types because I'm tired of checking under LuaUtils.cs for it)
Line 27: Line 27:
  
 
== 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 ==

Revision as of 06:48, 24 March 2022

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 96 Bytes luaArgs The arguments to that function.

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