[DiscordArchive] Does anyone know from their head, how and where the ownership of PvP objectives, like Hellfire or Ha
[DiscordArchive] Does anyone know from their head, how and where the ownership of PvP objectives, like Hellfire or Ha
Archived author: Honey • Posted: 2022-12-27T13:42:39.195000+00:00
Original source
Does anyone know from their head, how and where the ownership of PvP objectives, like Hellfire or Halaa is stored/defined?
Archived author: Honey • Posted: 2022-12-27T13:43:18.564000+00:00
Original source
I'm looking for methods like GetOwner or SetOwner for them.
Archived author: Roboto • Posted: 2022-12-27T13:54:47.992000+00:00
Original source
They're world states
Archived author: Roboto • Posted: 2022-12-27T13:55:36.119000+00:00
Original source
take a look at `OutdoorPVPNA.h`
Archived author: Honey • Posted: 2022-12-27T14:02:08.708000+00:00
Original source
Oh dedicated pvp scripts. Thanks!
Archived author: Honey • Posted: 2022-12-27T14:02:18.929000+00:00
Original source
I've been searching zone scripts ♀️
Archived author: Honey • Posted: 2022-12-27T14:13:09.507000+00:00
Original source
Setter seems here:
<https://github.com/azerothcore/azerothcore-wotlk/blob/02140e18a59719f59fb18f6e97925ba82ae22629/src/server/scripts/OutdoorPvP/OutdoorPvPNA.h#L279>
So as for the getter, i need to check a world state?
Archived author: Honey • Posted: 2022-12-27T14:14:02.648000+00:00
Original source
Nvm, it 3 lines before
Archived author: Honey • Posted: 2022-12-27T14:14:05.561000+00:00
Original source
GetControllingFaction()
Archived author: Honey • Posted: 2022-12-27T14:24:04.139000+00:00
Original source
Would i do for example
```cpp
if (OutdoorPvPNA->GetControllingFaction() == 0)
{
// Do stuff for alliance holding it
}
```
And
```cpp
OutdoorPvPNA->FactionTakeOver(1)
```
to make Halaa taken by Horde?