[DiscordArchive] Can you get the gear item from somewhere else?
[DiscordArchive] Can you get the gear item from somewhere else?
Archived author: Malcrom • Posted: 2023-06-23T21:27:08.962000+00:00
Original source
fill in the blank
Archived author: M'Dic • Posted: 2023-06-23T21:30:51.622000+00:00
Original source
i know a hack fix we did in past projects, we had them spawn a gameobject chest ontop of themselves with a loot table if it was really damming to get working specifically
Archived author: M'Dic • Posted: 2023-06-23T21:30:58.114000+00:00
Original source
but thats just a hack
Archived author: Malcrom • Posted: 2023-06-23T21:31:14.767000+00:00
Original source
Shauren loves hacks
Archived author: ModoX • Posted: 2023-06-23T21:31:45.477000+00:00
Original source
for m_loot:
```c
for (LootItem const& lootItem : me->m_loot->items)
{
if (lootItem.itemid == MY_COOL_ITEM_ID)
// complete quest
}
```
for m_personalLoot its a bit different
```c
for (auto const& [playerGuid, loot] : me->m_personalLoot)
{
for (LootItem const& lootItem : loot->items)
{
if (lootItem.itemid == MY_COOL_ITEM_ID)
// complete quest to playerGuid
}
}
```
im not quite sure which one we need here
Archived author: Malcrom • Posted: 2023-06-23T21:32:21.589000+00:00
Original source
there is no personal loot in conditions
Archived author: Tea • Posted: 2023-06-23T21:32:48.027000+00:00
Original source
there is no difference, normal/personal is only internal in core
Archived author: Tea • Posted: 2023-06-23T21:32:51.703000+00:00
Original source
db doesnt care
Archived author: Tea • Posted: 2023-06-23T21:32:54.499000+00:00
Original source
players dont care