Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Maybe a stupid question, but how **exactly** do the references work in loot_template tables? I get t

[DiscordArchive] Maybe a stupid question, but how **exactly** do the references work in loot_template tables? I get t

[DiscordArchive] Maybe a stupid question, but how **exactly** do the references work in loot_template tables? I get t

rektbyfaith
Administrator
0
05-22-2023, 05:09 AM
#1
Archived author: Demonic • Posted: 2023-05-22T05:09:02.637000+00:00
Original source

Maybe a stupid question, but how **exactly** do the references work in loot_template tables? I get the basic idea behind it, but TC documentation isn't clear in regards of what exactly is referenced. If I use "reference" field in gameobject_loot_template, is it referencing a different row in gameobject_loot_template or is it referencing a reference_loot_table ?
rektbyfaith
05-22-2023, 05:09 AM #1

Archived author: Demonic • Posted: 2023-05-22T05:09:02.637000+00:00
Original source

Maybe a stupid question, but how **exactly** do the references work in loot_template tables? I get the basic idea behind it, but TC documentation isn't clear in regards of what exactly is referenced. If I use "reference" field in gameobject_loot_template, is it referencing a different row in gameobject_loot_template or is it referencing a reference_loot_table ?

rektbyfaith
Administrator
0
05-22-2023, 05:11 AM
#2
Archived author: Bench • Posted: 2023-05-22T05:11:01.153000+00:00
Original source

Anything using reference field is using reference_loot_table iirc
rektbyfaith
05-22-2023, 05:11 AM #2

Archived author: Bench • Posted: 2023-05-22T05:11:01.153000+00:00
Original source

Anything using reference field is using reference_loot_table iirc

rektbyfaith
Administrator
0
05-22-2023, 05:11 AM
#3
Archived author: Bench • Posted: 2023-05-22T05:11:10.898000+00:00
Original source

Doesn't matter if it's gobject_loot or creature_loot or whatever
rektbyfaith
05-22-2023, 05:11 AM #3

Archived author: Bench • Posted: 2023-05-22T05:11:10.898000+00:00
Original source

Doesn't matter if it's gobject_loot or creature_loot or whatever

rektbyfaith
Administrator
0
05-22-2023, 05:16 AM
#4
Archived author: Demonic • Posted: 2023-05-22T05:16:30.170000+00:00
Original source

Yeah, that's what I would think, but what confuses me is a warning about selfreferencing. It says you should NOT do this:

INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`) VALUES (21215, 0, 21215);

because it would overflow and crash. But how can THAT be the case, if the referen.... oh.

Now I realised the "not to do" example SQL is specific for reference_loot_template, right, now it makes all sense
rektbyfaith
05-22-2023, 05:16 AM #4

Archived author: Demonic • Posted: 2023-05-22T05:16:30.170000+00:00
Original source

Yeah, that's what I would think, but what confuses me is a warning about selfreferencing. It says you should NOT do this:

INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`) VALUES (21215, 0, 21215);

because it would overflow and crash. But how can THAT be the case, if the referen.... oh.

Now I realised the "not to do" example SQL is specific for reference_loot_template, right, now it makes all sense

rektbyfaith
Administrator
0
05-22-2023, 05:18 AM
#5
Archived author: Bench • Posted: 2023-05-22T05:18:50.535000+00:00
Original source

You got it
rektbyfaith
05-22-2023, 05:18 AM #5

Archived author: Bench • Posted: 2023-05-22T05:18:50.535000+00:00
Original source

You got it

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