Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] What's the error you keep seeing anyway?

[DiscordArchive] What's the error you keep seeing anyway?

[DiscordArchive] What's the error you keep seeing anyway?

rektbyfaith
Administrator
0
04-24-2024, 03:02 PM
#1
Archived author: Honey • Posted: 2024-04-24T15:02:55.935000+00:00
Original source

What's the error you keep seeing anyway?
rektbyfaith
04-24-2024, 03:02 PM #1

Archived author: Honey • Posted: 2024-04-24T15:02:55.935000+00:00
Original source

What's the error you keep seeing anyway?

rektbyfaith
Administrator
0
04-24-2024, 03:23 PM
#2
Archived author: Foe • Posted: 2024-04-24T15:23:31.138000+00:00
Original source

No, it does not
rektbyfaith
04-24-2024, 03:23 PM #2

Archived author: Foe • Posted: 2024-04-24T15:23:31.138000+00:00
Original source

No, it does not

rektbyfaith
Administrator
0
04-24-2024, 03:23 PM
#3
Archived author: Foe • Posted: 2024-04-24T15:23:43.642000+00:00
Original source

That's some ChatGPT right there
rektbyfaith
04-24-2024, 03:23 PM #3

Archived author: Foe • Posted: 2024-04-24T15:23:43.642000+00:00
Original source

That's some ChatGPT right there

rektbyfaith
Administrator
0
04-24-2024, 03:30 PM
#4
Archived author: Honey • Posted: 2024-04-24T15:30:52.917000+00:00
Original source

Guessed as much.
Feel free to write a function.like that:
<https://github.com/55Honey/Acore_eventScripts/blob/cf6fda247600104a049416cf3ed7feb0340f700a/scripts/custom_boss_events/eventBosses.lua#L160>
rektbyfaith
04-24-2024, 03:30 PM #4

Archived author: Honey • Posted: 2024-04-24T15:30:52.917000+00:00
Original source

Guessed as much.
Feel free to write a function.like that:
<https://github.com/55Honey/Acore_eventScripts/blob/cf6fda247600104a049416cf3ed7feb0340f700a/scripts/custom_boss_events/eventBosses.lua#L160>

rektbyfaith
Administrator
0
04-24-2024, 03:36 PM
#5
Archived author: Foe • Posted: 2024-04-24T15:36:11.192000+00:00
Original source

```Lua
local t = {1, 2, 3}

function table.contains(tb, var)
for _, v in pairs(tb) do
if(v == var) then
return true
end
end

return false
end

print(table.contains(t, 1))```
rektbyfaith
04-24-2024, 03:36 PM #5

Archived author: Foe • Posted: 2024-04-24T15:36:11.192000+00:00
Original source

```Lua
local t = {1, 2, 3}

function table.contains(tb, var)
for _, v in pairs(tb) do
if(v == var) then
return true
end
end

return false
end

print(table.contains(t, 1))```

rektbyfaith
Administrator
0
04-24-2024, 03:36 PM
#6
Archived author: Foe • Posted: 2024-04-24T15:36:24.019000+00:00
Original source

Though this should really be written C side and not through Lua
rektbyfaith
04-24-2024, 03:36 PM #6

Archived author: Foe • Posted: 2024-04-24T15:36:24.019000+00:00
Original source

Though this should really be written C side and not through Lua

rektbyfaith
Administrator
0
04-24-2024, 03:39 PM
#7
Archived author: Foe • Posted: 2024-04-24T15:39:18.505000+00:00
Original source

Iterating over the table is pretty slow compared to doing it C side
rektbyfaith
04-24-2024, 03:39 PM #7

Archived author: Foe • Posted: 2024-04-24T15:39:18.505000+00:00
Original source

Iterating over the table is pretty slow compared to doing it C side

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)