Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameOb

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
05-31-2023, 01:10 AM
#21
Archived author: KJack • Posted: 2023-05-31T01:10:17.666000+00:00
Original source

ah! I was making the comment here cover too many lines down.

```
// GUID of container that holds this loot (item_instance.entry), set for items that can be looted
ObjectGuid containerGUID;
ObjectGuid sourceWorldObjectGUID;
GameObject* sourceGameObject{nullptr};
```
rektbyfaith
05-31-2023, 01:10 AM #21

Archived author: KJack • Posted: 2023-05-31T01:10:17.666000+00:00
Original source

ah! I was making the comment here cover too many lines down.

```
// GUID of container that holds this loot (item_instance.entry), set for items that can be looted
ObjectGuid containerGUID;
ObjectGuid sourceWorldObjectGUID;
GameObject* sourceGameObject{nullptr};
```

rektbyfaith
Administrator
0
05-31-2023, 01:10 AM
#22
Archived author: KJack • Posted: 2023-05-31T01:10:24.011000+00:00
Original source

i see now
rektbyfaith
05-31-2023, 01:10 AM #22

Archived author: KJack • Posted: 2023-05-31T01:10:24.011000+00:00
Original source

i see now

rektbyfaith
Administrator
0
05-31-2023, 01:15 AM
#23
Archived author: KJack • Posted: 2023-05-31T01:15:31.445000+00:00
Original source

I don't think I see a method of Loot that would let me figure out what creature it came from. I've got access to Player too, still seeing if anything in there would be helpful.
rektbyfaith
05-31-2023, 01:15 AM #23

Archived author: KJack • Posted: 2023-05-31T01:15:31.445000+00:00
Original source

I don't think I see a method of Loot that would let me figure out what creature it came from. I've got access to Player too, still seeing if anything in there would be helpful.

rektbyfaith
Administrator
0
05-31-2023, 01:16 AM
#24
Archived author: KJack • Posted: 2023-05-31T01:16:10.149000+00:00
Original source

unless the creature gets assigned to `ObjectGuid.containerGUID`
rektbyfaith
05-31-2023, 01:16 AM #24

Archived author: KJack • Posted: 2023-05-31T01:16:10.149000+00:00
Original source

unless the creature gets assigned to `ObjectGuid.containerGUID`

rektbyfaith
Administrator
0
05-31-2023, 01:25 AM
#25
Archived author: KJack • Posted: 2023-05-31T01:25:25.972000+00:00
Original source

nope, still null. didn't think so, but tried anyways.
rektbyfaith
05-31-2023, 01:25 AM #25

Archived author: KJack • Posted: 2023-05-31T01:25:25.972000+00:00
Original source

nope, still null. didn't think so, but tried anyways.

rektbyfaith
Administrator
0
05-31-2023, 01:30 AM
#26
Archived author: KJack • Posted: 2023-05-31T01:30:35.334000+00:00
Original source

I don't see any way to go from a Loot object back to the originating Creature. an item container is tracked and a gameobject is tracked, but not the creature. open if anyone else has ideas!
rektbyfaith
05-31-2023, 01:30 AM #26

Archived author: KJack • Posted: 2023-05-31T01:30:35.334000+00:00
Original source

I don't see any way to go from a Loot object back to the originating Creature. an item container is tracked and a gameobject is tracked, but not the creature. open if anyone else has ideas!

rektbyfaith
Administrator
0
05-31-2023, 01:32 AM
#27
Archived author: Kitzunu • Posted: 2023-05-31T01:32:49.866000+00:00
Original source

Add it into the core
rektbyfaith
05-31-2023, 01:32 AM #27

Archived author: Kitzunu • Posted: 2023-05-31T01:32:49.866000+00:00
Original source

Add it into the core

rektbyfaith
Administrator
0
05-31-2023, 01:34 AM
#28
Archived author: KJack • Posted: 2023-05-31T01:34:46.482000+00:00
Original source

Ugg, but fair. Hate to add functionality to the core to support a module I'm making, but it is genuinely useful I think.
rektbyfaith
05-31-2023, 01:34 AM #28

Archived author: KJack • Posted: 2023-05-31T01:34:46.482000+00:00
Original source

Ugg, but fair. Hate to add functionality to the core to support a module I'm making, but it is genuinely useful I think.

rektbyfaith
Administrator
0
05-31-2023, 01:44 AM
#29
Archived author: KJack • Posted: 2023-05-31T01:44:04.244000+00:00
Original source

hah!
[Image: image.png?ex=690bfd64&is=690aabe4&hm=f15...dabebef08&]
rektbyfaith
05-31-2023, 01:44 AM #29

Archived author: KJack • Posted: 2023-05-31T01:44:04.244000+00:00
Original source

hah!
[Image: image.png?ex=690bfd64&is=690aabe4&hm=f15...dabebef08&]

rektbyfaith
Administrator
0
05-31-2023, 01:44 AM
#30
Archived author: KJack • Posted: 2023-05-31T01:44:19.780000+00:00
Original source

`sourceWorldObjectGUID` can point to a creature too!
rektbyfaith
05-31-2023, 01:44 AM #30

Archived author: KJack • Posted: 2023-05-31T01:44:19.780000+00:00
Original source

`sourceWorldObjectGUID` can point to a creature too!

Pages (4): Previous 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)