[DiscordArchive] What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameOb
[DiscordArchive] What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameOb
Archived author: KJack • Posted: 2023-05-31T00:55:57.677000+00:00
Original source
let me see if i can do something with that sourceWorldObjectGUID or containerGUID. just trying to figure out what creature dropped the money.
Archived author: Travven • Posted: 2023-05-31T01:05:24.696000+00:00
Original source
Bro i solve my problem. Thank you so much for the recomendation. I need to mod pvpdifficulty.dbc
Archived author: Travven • Posted: 2023-05-31T01:06:12.049000+00:00
Original source
Me neither
Archived author: Kitzunu • Posted: 2023-05-31T01:06:26.952000+00:00
Original source
Also you can never get a Creature out of a GameObject. Because they are different things
Archived author: Kitzunu • Posted: 2023-05-31T01:06:31.340000+00:00
Original source
Therefore seg
Archived author: KJack • Posted: 2023-05-31T01:07:11.418000+00:00
Original source
okay, didn't realize that Creature wasn't a subclass of GameObject. I'll take a closer look at the Loot class and figure out how to divine which creature actually dropped the loot. Thanks for the hints.
Archived author: Kitzunu • Posted: 2023-05-31T01:07:21.276000+00:00
Original source
Creature is sub of Unit
Archived author: Travven • Posted: 2023-05-31T01:08:23.613000+00:00
Original source
Creature, GO, Player are the sons of Unit.h, they are all brothers and sisters
Archived author: KJack • Posted: 2023-05-31T01:09:08.044000+00:00
Original source
makes sense. so i guess sourceGameObject is only going to be set when it's loot from an item/container, not from a creature.
Archived author: Kitzunu • Posted: 2023-05-31T01:09:45.064000+00:00
Original source
Not item, only gob