Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] What ties the individual item to the container? Eluna::Push(L, item->GetGUID().GetCounter()); is ju

[DiscordArchive] What ties the individual item to the container? Eluna::Push(L, item->GetGUID().GetCounter()); is ju

[DiscordArchive] What ties the individual item to the container? Eluna::Push(L, item->GetGUID().GetCounter()); is ju

rektbyfaith
Administrator
0
07-16-2022, 06:59 PM
#1
Archived author: whatwere • Posted: 2022-07-16T18:59:31.885000+00:00
Original source

What ties the individual item to the container? Eluna:Tongueush(L, item->GetGUID().GetCounter()); is just for the return value right?
rektbyfaith
07-16-2022, 06:59 PM #1

Archived author: whatwere • Posted: 2022-07-16T18:59:31.885000+00:00
Original source

What ties the individual item to the container? Eluna:Tongueush(L, item->GetGUID().GetCounter()); is just for the return value right?

rektbyfaith
Administrator
0
07-16-2022, 07:00 PM
#2
Archived author: Honey • Posted: 2022-07-16T19:00:18.774000+00:00
Original source

Drop the world database and let the worldserver re-populate it at the next startup automatically.
rektbyfaith
07-16-2022, 07:00 PM #2

Archived author: Honey • Posted: 2022-07-16T19:00:18.774000+00:00
Original source

Drop the world database and let the worldserver re-populate it at the next startup automatically.

rektbyfaith
Administrator
0
07-16-2022, 07:00 PM
#3
Archived author: Honey • Posted: 2022-07-16T19:00:42.059000+00:00
Original source

Right, that pushes the guid to the eluna script.
rektbyfaith
07-16-2022, 07:00 PM #3

Archived author: Honey • Posted: 2022-07-16T19:00:42.059000+00:00
Original source

Right, that pushes the guid to the eluna script.

rektbyfaith
Administrator
0
07-16-2022, 07:02 PM
#4
Archived author: Honey • Posted: 2022-07-16T19:02:09.049000+00:00
Original source

```cpp
LootStoreItem storeItem(item->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, item->GetCount(), item->GetCount());
go->loot.AddItem(storeItem);
```
`item` is added to the targeted gameobject `go`, which must be empty at this point.
rektbyfaith
07-16-2022, 07:02 PM #4

Archived author: Honey • Posted: 2022-07-16T19:02:09.049000+00:00
Original source

```cpp
LootStoreItem storeItem(item->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, item->GetCount(), item->GetCount());
go->loot.AddItem(storeItem);
```
`item` is added to the targeted gameobject `go`, which must be empty at this point.

rektbyfaith
Administrator
0
07-16-2022, 07:03 PM
#5
Archived author: whatwere • Posted: 2022-07-16T19:03:27.588000+00:00
Original source

Isn't item->GetEntry() the item template? How does that work?
rektbyfaith
07-16-2022, 07:03 PM #5

Archived author: whatwere • Posted: 2022-07-16T19:03:27.588000+00:00
Original source

Isn't item->GetEntry() the item template? How does that work?

rektbyfaith
Administrator
0
07-16-2022, 07:04 PM
#6
Archived author: whatwere • Posted: 2022-07-16T19:04:12.903000+00:00
Original source

Isn't the server saving a completely un-referrenced item in that case?
rektbyfaith
07-16-2022, 07:04 PM #6

Archived author: whatwere • Posted: 2022-07-16T19:04:12.903000+00:00
Original source

Isn't the server saving a completely un-referrenced item in that case?

rektbyfaith
Administrator
0
07-16-2022, 07:08 PM
#7
Archived author: Honey • Posted: 2022-07-16T19:08:21.024000+00:00
Original source

The usage is
`GameObject:AddLoot(go, entry, amount, entry, amount, entry, amount,...)`
the while loop in line 256 assigns these values to `entry` and `amount` and creates the `item`
rektbyfaith
07-16-2022, 07:08 PM #7

Archived author: Honey • Posted: 2022-07-16T19:08:21.024000+00:00
Original source

The usage is
`GameObject:AddLoot(go, entry, amount, entry, amount, entry, amount,...)`
the while loop in line 256 assigns these values to `entry` and `amount` and creates the `item`

rektbyfaith
Administrator
0
07-16-2022, 07:10 PM
#8
Archived author: whatwere • Posted: 2022-07-16T19:10:56.779000+00:00
Original source

I mean item->SaveToDB(trans); it seems to entirely be separate from ```LootStoreItem storeItem(item->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, item->GetCount(), item->GetCount());
go->loot.AddItem(storeItem);```
rektbyfaith
07-16-2022, 07:10 PM #8

Archived author: whatwere • Posted: 2022-07-16T19:10:56.779000+00:00
Original source

I mean item->SaveToDB(trans); it seems to entirely be separate from ```LootStoreItem storeItem(item->GetEntry(), 0, 100, 0, LOOT_MODE_DEFAULT, 0, item->GetCount(), item->GetCount());
go->loot.AddItem(storeItem);```

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