[DiscordArchive] can i change loot id though ?
[DiscordArchive] can i change loot id though ?
Archived author: Rymercyble • Posted: 2023-02-03T22:56:41.247000+00:00
Original source
can i change loot id though ?
Archived author: Rymercyble • Posted: 2023-02-03T22:57:29.172000+00:00
Original source
issue with loot mode is that 15 is simply not enough so in case i would want to go that route i would have to change it to support more
Archived author: Revision • Posted: 2023-02-03T22:57:34.740000+00:00
Original source
You should be able to. I think.
Archived author: Revision • Posted: 2023-02-03T22:58:10.351000+00:00
Original source
The downside, of course, is that the server is going to cry on startup since the lootid isn't used by a creature.
Archived author: Honey • Posted: 2023-02-03T22:58:44.694000+00:00
Original source
i'd consider wiping and creating the loot manually then
Archived author: Honey • Posted: 2023-02-03T23:00:47.975000+00:00
Original source
<https://github.com/55Honey/mod-zone-difficulty/blob/5996ec03b3d5772b84436586e064a12850ebaa06/src/mod_zone_difficulty_scripts.cpp#L785> like that for example
Archived author: Honey • Posted: 2023-02-03T23:01:43.826000+00:00
Original source
or make a hook, which allows to change the lootid while the default loot is generated.
Archived author: Rymercyble • Posted: 2023-02-03T23:02:03.459000+00:00
Original source
wouldnt that be global ?
Archived author: Honey • Posted: 2023-02-03T23:02:18.697000+00:00
Original source
you'd need an event and conditions ofc
Archived author: Rymercyble • Posted: 2023-02-03T23:09:42.556000+00:00
Original source
so use loot mode for quantity and this
```cpp
source->ToCreature()->loot.clear();
source->ToCreature()->loot.FillLoot([different loot id], LootTemplates_Creature, source->ToCreature()->GetLootRecipient(), false, false, source->ToCreature()->GetLootMode(), source->ToCreature());
```
to change between tables