Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Welp, also maybe I should do something after inserting the row? Idk...

[DiscordArchive] Welp, also maybe I should do something after inserting the row? Idk...

[DiscordArchive] Welp, also maybe I should do something after inserting the row? Idk...

rektbyfaith
Administrator
0
06-24-2025, 08:42 PM
#1
Archived author: Vel • Posted: 2025-06-24T20:42:58.819000+00:00
Original source

Welp, also maybe I should do something after inserting the row? Idk...
```lua
local sql = string.format(
"INSERT INTO waypoint_path (PathId,MoveType,Flags,Velocity,Comment) VALUES (%d,%d,0,NULL,'%s');",
pathId, moveType, comment
)
WorldDBExecute(sql)
```
I am just performing this. No idea why it crashes. Are tables somehow "watched" real time for changes? Because I can't understand how can insert into trigger reloading of tables... I guess the core has some table reload inside of WorldDBExecute?
rektbyfaith
06-24-2025, 08:42 PM #1

Archived author: Vel • Posted: 2025-06-24T20:42:58.819000+00:00
Original source

Welp, also maybe I should do something after inserting the row? Idk...
```lua
local sql = string.format(
"INSERT INTO waypoint_path (PathId,MoveType,Flags,Velocity,Comment) VALUES (%d,%d,0,NULL,'%s');",
pathId, moveType, comment
)
WorldDBExecute(sql)
```
I am just performing this. No idea why it crashes. Are tables somehow "watched" real time for changes? Because I can't understand how can insert into trigger reloading of tables... I guess the core has some table reload inside of WorldDBExecute?

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