Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] or is it a better way?

[DiscordArchive] or is it a better way?

[DiscordArchive] or is it a better way?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-13-2021, 06:50 PM
#1
Archived author: Deleted User • Posted: 2021-09-13T18:50:56.341000+00:00
Original source

or is it a better way?
rektbyfaith
09-13-2021, 06:50 PM #1

Archived author: Deleted User • Posted: 2021-09-13T18:50:56.341000+00:00
Original source

or is it a better way?

rektbyfaith
Administrator
0
09-13-2021, 06:55 PM
#2
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
rektbyfaith
09-13-2021, 06:55 PM #2

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

rektbyfaith
Administrator
0
09-13-2021, 06:55 PM
#3
Archived author: stoneharry • Posted: 2021-09-13T18:55:41.502000+00:00
Original source

Lots of different approaches given there
rektbyfaith
09-13-2021, 06:55 PM #3

Archived author: stoneharry • Posted: 2021-09-13T18:55:41.502000+00:00
Original source

Lots of different approaches given there

rektbyfaith
Administrator
0
09-13-2021, 06:59 PM
#4
Archived author: Deleted User • Posted: 2021-09-13T18:59:17.822000+00:00
Original source

Preciate your quick answer
rektbyfaith
09-13-2021, 06:59 PM #4

Archived author: Deleted User • Posted: 2021-09-13T18:59:17.822000+00:00
Original source

Preciate your quick answer

rektbyfaith
Administrator
0
09-13-2021, 07:03 PM
#5
Archived author: Intemporel • Posted: 2021-09-13T19:03:39.402000+00:00
Original source

I thing I’ve something else more easily to understand
rektbyfaith
09-13-2021, 07:03 PM #5

Archived author: Intemporel • Posted: 2021-09-13T19:03:39.402000+00:00
Original source

I thing I’ve something else more easily to understand

rektbyfaith
Administrator
0
09-13-2021, 07:04 PM
#6
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&]
rektbyfaith
09-13-2021, 07:04 PM #6

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&]

rektbyfaith
Administrator
0
09-13-2021, 07:04 PM
#7
Archived author: Titi • Posted: 2021-09-13T19:04:54.140000+00:00
Original source

they don't even match each other
rektbyfaith
09-13-2021, 07:04 PM #7

Archived author: Titi • Posted: 2021-09-13T19:04:54.140000+00:00
Original source

they don't even match each other

rektbyfaith
Administrator
0
09-13-2021, 07:06 PM
#8
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
rektbyfaith
09-13-2021, 07:06 PM #8

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

rektbyfaith
Administrator
0
09-13-2021, 07:07 PM
#9
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
```
rektbyfaith
09-13-2021, 07:07 PM #9

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
```

rektbyfaith
Administrator
0
09-13-2021, 07:09 PM
#10
Archived author: Intemporel • Posted: 2021-09-13T19:09:45.126000+00:00
Original source

In Lua your have ALWAYS multiple way to do something
rektbyfaith
09-13-2021, 07:09 PM #10

Archived author: Intemporel • Posted: 2021-09-13T19:09:45.126000+00:00
Original source

In Lua your have ALWAYS multiple way to do something

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)