Lua API Reference: Packet (33 methods)

Browse the complete Lua API documentation for the Packet class. Search through 33 methods and 247 events to find the exact function signatures, parameters, and usage examples you need for your EQ-Emulator scripts.

Methods

packet:GetOpcode() # int
packet:GetProtocolOpcode() # int
packet:GetRawOpcode() # int
packet:GetSize() # int
packet:GetWritePosition() # int
packet:ReadDouble(offset) # double
packet:ReadFixedLengthString(offset, string_length) # std::string
packet:ReadFloat(offset) # float
packet:ReadInt16(offset) # int
packet:ReadInt32(offset) # int
packet:ReadInt64(offset) # int64
packet:ReadInt8(offset) # int
packet:ReadString(offset) # std::string
packet:SetOpcode(op) # void
packet:SetRawOpcode(op) # void
packet:SetWritePosition(offset) # void
packet:WriteDouble(value) # void
packet:WriteDouble(offset, value) # void
packet:WriteFixedLengthString(offset, value, string_length) # void
packet:WriteFixedLengthString(value) # void
packet:WriteFloat(value) # void
packet:WriteFloat(offset, value) # void
packet:WriteInt16(value) # void
packet:WriteInt16(offset, value) # void
packet:WriteInt32(offset, value) # void
packet:WriteInt32(value) # void
packet:WriteInt64(offset, value) # void
packet:WriteInt64(value) # void
packet:WriteInt8(offset, value) # void
packet:WriteInt8(value) # void
packet:WriteString(offset, value) # void
packet:WriteString(value) # void
packet:operator=(o) # Lua_Packet&