Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I'm looking at <https://github.com/azerothcore/azerothcore-wotlk/blob/2ef8d2e1e21e4c3b40850ae9513a31

[DiscordArchive] I'm looking at <https://github.com/azerothcore/azerothcore-wotlk/blob/2ef8d2e1e21e4c3b40850ae9513a31

[DiscordArchive] I'm looking at <https://github.com/azerothcore/azerothcore-wotlk/blob/2ef8d2e1e21e4c3b40850ae9513a31

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-12-2022, 09:05 PM
#1
Archived author: Honey • Posted: 2022-09-12T21:05:07.469000+00:00
Original source

I'm looking at <https://github.com/azerothcore/azerothcore-wotlk/blob/2ef8d2e1e21e4c3b40850ae9513a316024cf649d/src/server/game/Entities/Player/PlayerUpdates.cpp#L1163>
which from i understand is a hook i can use to execute code right when that line happens to be executed.

Let's say i us the hook to execute
```cpp
UpdateFFAPvPState(true);
```
just a few lines later the core would override that back to false.

Is there a way to prevent parts of the code being executed, e.g. if a hook returns a boolean?
rektbyfaith
09-12-2022, 09:05 PM #1

Archived author: Honey • Posted: 2022-09-12T21:05:07.469000+00:00
Original source

I'm looking at <https://github.com/azerothcore/azerothcore-wotlk/blob/2ef8d2e1e21e4c3b40850ae9513a316024cf649d/src/server/game/Entities/Player/PlayerUpdates.cpp#L1163>
which from i understand is a hook i can use to execute code right when that line happens to be executed.

Let's say i us the hook to execute
```cpp
UpdateFFAPvPState(true);
```
just a few lines later the core would override that back to false.

Is there a way to prevent parts of the code being executed, e.g. if a hook returns a boolean?

rektbyfaith
Administrator
0
09-12-2022, 09:06 PM
#2
Archived author: Honey • Posted: 2022-09-12T21:06:07.215000+00:00
Original source

I've been using the workaround to create an event tied to a player and execute is 10ms later. But it's a mess and keeps breaking.
rektbyfaith
09-12-2022, 09:06 PM #2

Archived author: Honey • Posted: 2022-09-12T21:06:07.215000+00:00
Original source

I've been using the workaround to create an event tied to a player and execute is 10ms later. But it's a mess and keeps breaking.

rektbyfaith
Administrator
0
09-12-2022, 09:23 PM
#3
Archived author: DavuKnight • Posted: 2022-09-12T21:23:12.370000+00:00
Original source

Almost sounds like we need a new event. If you need to know it happened I'd think we'd add a OnAfterUpdateFFAPvPState()
rektbyfaith
09-12-2022, 09:23 PM #3

Archived author: DavuKnight • Posted: 2022-09-12T21:23:12.370000+00:00
Original source

Almost sounds like we need a new event. If you need to know it happened I'd think we'd add a OnAfterUpdateFFAPvPState()

rektbyfaith
Administrator
0
09-12-2022, 09:46 PM
#4
Archived author: Anhanga • Posted: 2022-09-12T21:46:37.847000+00:00
Original source

Does How to Win Friends and Influence Enemies work? (DK quest) - i'm smack'n the crusaders around with the persuaders and nothing is happening
rektbyfaith
09-12-2022, 09:46 PM #4

Archived author: Anhanga • Posted: 2022-09-12T21:46:37.847000+00:00
Original source

Does How to Win Friends and Influence Enemies work? (DK quest) - i'm smack'n the crusaders around with the persuaders and nothing is happening

rektbyfaith
Administrator
0
09-12-2022, 09:47 PM
#5
Archived author: Anhanga • Posted: 2022-09-12T21:47:40.133000+00:00
Original source

oh. it just ... went from nothing to boom - done. I thought you got a couple peple that refused to tell you stuff
rektbyfaith
09-12-2022, 09:47 PM #5

Archived author: Anhanga • Posted: 2022-09-12T21:47:40.133000+00:00
Original source

oh. it just ... went from nothing to boom - done. I thought you got a couple peple that refused to tell you stuff

rektbyfaith
Administrator
0
09-12-2022, 09:55 PM
#6
Archived author: Nyeriah • Posted: 2022-09-12T21:55:48.075000+00:00
Original source

Yeah random chance every time you fork them
rektbyfaith
09-12-2022, 09:55 PM #6

Archived author: Nyeriah • Posted: 2022-09-12T21:55:48.075000+00:00
Original source

Yeah random chance every time you fork them

rektbyfaith
Administrator
0
09-13-2022, 12:05 PM
#7
Archived author: blakesha • Posted: 2022-09-13T12:05:01.940000+00:00
Original source

Was more I was trying to compile it with Ubuntu 22 and it was being a pain.
rektbyfaith
09-13-2022, 12:05 PM #7

Archived author: blakesha • Posted: 2022-09-13T12:05:01.940000+00:00
Original source

Was more I was trying to compile it with Ubuntu 22 and it was being a pain.

rektbyfaith
Administrator
0
09-13-2022, 12:05 PM
#8
Archived author: blakesha • Posted: 2022-09-13T12:05:22.053000+00:00
Original source

So, could I fix it so we didnt have to worry about the OSSL dependency
rektbyfaith
09-13-2022, 12:05 PM #8

Archived author: blakesha • Posted: 2022-09-13T12:05:22.053000+00:00
Original source

So, could I fix it so we didnt have to worry about the OSSL dependency

rektbyfaith
Administrator
0
09-13-2022, 12:06 PM
#9
Archived author: blakesha • Posted: 2022-09-13T12:06:57.689000+00:00
Original source

Does that still need to be done? I thought they have fixed up the threading issues in a 2.2 update
rektbyfaith
09-13-2022, 12:06 PM #9

Archived author: blakesha • Posted: 2022-09-13T12:06:57.689000+00:00
Original source

Does that still need to be done? I thought they have fixed up the threading issues in a 2.2 update

rektbyfaith
Administrator
0
09-13-2022, 12:14 PM
#10
Archived author: Anchy • Posted: 2022-09-13T12:14:49.338000+00:00
Original source

i dont know, but thats what that line of code does
rektbyfaith
09-13-2022, 12:14 PM #10

Archived author: Anchy • Posted: 2022-09-13T12:14:49.338000+00:00
Original source

i dont know, but thats what that line of code does

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)