Function: PlayFlavorID(spawn, type, id, index, player, language)
Description:
Selects a flavor from the voiceovers table by type_id, id, and indexed. A connected player receives the selected flavor individually; otherwise eligible players within 30 units of the source receive the same selected pair.
Voiceover rows and strings are copied before selection and delivery. A voiceover reload can replace the catalogue without invalidating this call's copied values. Reloading starting skills and spells does not clear voiceovers. The loaded garble_link_id is retained when matching normal and garbled rows.
Language zero, or a language known by the recipient, selects the normal row when selection succeeds. An unknown language selects the garbled row when available. The existing pair/link and retry rules remain in effect: a group containing only normal rows does not satisfy the current pair-selection requirement. This function does not supply a fallback sound.
Parameters:
spawn(Spawn) - Spawn object representingspawn.type(uint8) - Voiceover type, from 0 through 2.id(uint32) - Voiceover group ID.index(uint16) - Indexed row group within that ID.player(Spawn or nil) - Optional recipient. A missing or unresolved player uses nearby broadcast delivery.language(uint8) - Language required for normal playback; zero does not require a learned language.
Returns: None.
Connection lifetime: Each player or group-member connection resolved by this function is retained through the native call. A disconnect or reconnect during a callback cannot destroy that retained connection or switch the ongoing call to a replacement. A later Lua call resolves the current connection. This does not extend the lifetime of unrelated spawn or item userdata.
Delivery lifetime: The native call retains its original source spawn, Player, connection, scene and wire context. Broadcast recipients are captured before formatting; membership readers end before codec or delivery services run. A reconnect, scene/session/version change, or withdrawal/republication of the same source allocation rejects the old packet instead of following a replacement. Native queue acceptance checks the original source publication and recipient wire together; a Player source also carries its original source-player wire.
Classic-client emotes use the same captured source and recipient set, with copied animation and target-display values. Once that existing global emote operation is entered, each recipient has its own original acceptance cutoff. The initiating flavor packet is checked again after emote delivery. This does not make all recipients one atomic send, and a packet already accepted before withdrawal is not undone.