v0.13.7

string.byte

functionimplementedavailable in: camelot

Returns the numerical code of a character in a string.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
sstringThe string to get the numerical code from
indexnumberOptional argument specifying the index of the character to get the byte value of
endIndexnumberOptional argument specifying the index of the last character to return the value of

Returns

indexByte · number? · The byte value of the character at the specified position or nil if the index is invalid

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.