[DiscordArchive] or is it a better way?
[DiscordArchive] or is it a better way?
Archived author: Deleted User • Posted: 2021-09-13T18:50:56.341000+00:00
Original source
or is it a better way?
Archived author: stoneharry • Posted: 2021-09-13T18:55:00.808000+00:00
Original source
https://stackoverflow.com/questions/1426...ing-in-lua
https://stackoverflow.com/questions/4014...ter-in-lua
[Embed: Split string in Lua?]
I need to do a simple split of a string, but there doesn't seem to be a function for this, and the manual way I tested didn't seem to work. How would I do it?
https://stackoverflow.com/questions/1426...ing-in-lua
[Embed: Split string with specified delimiter in lua]
I'm trying to create a split() function in lua with delimiter by choice, when the default is space.
the default is working fine. The problem starts when I give a delimiter to the function. For some
https://stackoverflow.com/questions/4014...ter-in-lua
Archived author: stoneharry • Posted: 2021-09-13T18:55:41.502000+00:00
Original source
Lots of different approaches given there
Archived author: Deleted User • Posted: 2021-09-13T18:59:17.822000+00:00
Original source
Preciate your quick answer
Archived author: Intemporel • Posted: 2021-09-13T19:03:39.402000+00:00
Original source
I thing I’ve something else more easily to understand
![[Image: unknown.png?ex=690c4890&is=690af710&hm=1...a4b719935&]](https://cdn.discordapp.com/attachments/415944535718494208/887051209272352778/unknown.png?ex=690c4890&is=690af710&hm=1de6d3ae1ffb036b8210338fc94d77e23d73651e76e6298380c8806a4b719935&)
Archived author: Titi • Posted: 2021-09-13T19:04:49.335000+00:00
Original source
does anyone have more info about the WMO liquid tile flags ? that's the info in WBS
`# 0x40 = visible
# 0x0C = invisible
# well some other strange things (e.g 0x7F = visible, etc...)`
and on wowdev wiki
![[Image: unknown.png?ex=690c4890&is=690af710&hm=1...a4b719935&]](https://cdn.discordapp.com/attachments/415944535718494208/887051209272352778/unknown.png?ex=690c4890&is=690af710&hm=1de6d3ae1ffb036b8210338fc94d77e23d73651e76e6298380c8806a4b719935&)
Archived author: Titi • Posted: 2021-09-13T19:04:54.140000+00:00
Original source
they don't even match each other
Archived author: Soldan • Posted: 2021-09-13T19:06:50.130000+00:00
Original source
<@456226577798135808>
```lua
local function stringsplit(inStr,sep)
local rettab = {}
for str in string.gmatch(inStr, "[^;]+") do
table.insert(rettab, str)
end
return rettab
end
local rankingTable = stringsplit(rankingData, ";");
``` You can thank <@!137621762870345728> lol
Archived author: Intemporel • Posted: 2021-09-13T19:07:04.160000+00:00
Original source
<@456226577798135808>
```lua
local YOUR_STRING = "1800 3532 5496"
local SOME_TABLE_OR_ANYTHING_ELSE = {}
for id in string.gmatch(YOUR_STRING, "%a+") do
table.insert(SOME_TABLE_OR_ANYTHING_ELSE, id)
-- print current id
print(id)
end
--Now your var SOME_TABLE_OR_ANYTHING_ELSE constain all id in the order
```
Archived author: Intemporel • Posted: 2021-09-13T19:09:45.126000+00:00
Original source
In Lua your have ALWAYS multiple way to do something