[DiscordArchive] But that pushed uint64 is guid?
[DiscordArchive] But that pushed uint64 is guid?
Archived author: Deleted User • Posted: 2021-05-10T08:45:21.010000+00:00
Original source
But that pushed uint64 is guid?
Archived author: Deleted User • Posted: 2021-05-10T08:45:47.491000+00:00
Original source
I don't understand you
Archived author: Yehonal • Posted: 2021-05-10T08:46:14.790000+00:00
Original source
let's say that in a Lua script you want to use the `OnAddMember` hook from the Group class
Archived author: Yehonal • Posted: 2021-05-10T08:46:57.829000+00:00
Original source
this hook has 2 parameters, the Group (which is a class that you can use in Lua) and the guid that you said is converted to a uint64
Archived author: Yehonal • Posted: 2021-05-10T08:47:20.006000+00:00
Original source
therefore, if you want to access to the "low" part of the uint64 you should do it manually in Lua
Archived author: Yehonal • Posted: 2021-05-10T08:47:23.058000+00:00
Original source
(?)
Archived author: Deleted User • Posted: 2021-05-10T08:47:44.036000+00:00
Original source
If you need low part of guid (and it's ObjectGuid), then use GetCounter
```
uint32 lowGuid = guid.GetCounter()
```
Or
```
uint32 lowGuid = ObjectGuid(uint64(value)).GetCounter()
```
Archived author: Yehonal • Posted: 2021-05-10T08:47:56.685000+00:00
Original source
but this is in c++
Archived author: Deleted User • Posted: 2021-05-10T08:48:48.173000+00:00
Original source
Yep
As I said - there is no difference between low part and raw value of guids for players
Archived author: Deleted User • Posted: 2021-05-10T08:48:54.922000+00:00
Original source
For other objects - hmm