Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Would this work fine, or is there a better way?

[DiscordArchive] Would this work fine, or is there a better way?

[DiscordArchive] Would this work fine, or is there a better way?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
05-19-2024, 11:46 AM
#11
Archived author: Sylian • Posted: 2024-05-19T11:46:02.462000+00:00
Original source

Will do that now.
rektbyfaith
05-19-2024, 11:46 AM #11

Archived author: Sylian • Posted: 2024-05-19T11:46:02.462000+00:00
Original source

Will do that now.

rektbyfaith
Administrator
0
05-19-2024, 12:47 PM
#12
Archived author: Sylian • Posted: 2024-05-19T12:47:06.183000+00:00
Original source

So, now I am stuck again.
How can I hook a function that is connected to the Unit script when I need to return a player back to it somehow.
rektbyfaith
05-19-2024, 12:47 PM #12

Archived author: Sylian • Posted: 2024-05-19T12:47:06.183000+00:00
Original source

So, now I am stuck again.
How can I hook a function that is connected to the Unit script when I need to return a player back to it somehow.

rektbyfaith
Administrator
0
05-19-2024, 12:50 PM
#13
Archived author: Sylian • Posted: 2024-05-19T12:50:04.774000+00:00
Original source

Since I would need to make the event trigger here, and not in the UpdateAllStats, since here I would be able to do it before everything else gets added onto it.
Also, sometimes it doesnt call the UpdateAllStats when working with adding buffs and so on. So I guess it would be important to add it here.
[Image: image.png?ex=690bf0bc&is=690a9f3c&hm=109...4c02bbcb1&]
rektbyfaith
05-19-2024, 12:50 PM #13

Archived author: Sylian • Posted: 2024-05-19T12:50:04.774000+00:00
Original source

Since I would need to make the event trigger here, and not in the UpdateAllStats, since here I would be able to do it before everything else gets added onto it.
Also, sometimes it doesnt call the UpdateAllStats when working with adding buffs and so on. So I guess it would be important to add it here.
[Image: image.png?ex=690bf0bc&is=690a9f3c&hm=109...4c02bbcb1&]

rektbyfaith
Administrator
0
05-19-2024, 12:51 PM
#14
Archived author: Sylian • Posted: 2024-05-19T12:51:29.382000+00:00
Original source

But since this is a unit script and not a player script, I cant just return the player. I know the player also has everything from the unit,
But how would I add new events for it for Eluna, since I cant seem to find anywhere you can add events for just units.
rektbyfaith
05-19-2024, 12:51 PM #14

Archived author: Sylian • Posted: 2024-05-19T12:51:29.382000+00:00
Original source

But since this is a unit script and not a player script, I cant just return the player. I know the player also has everything from the unit,
But how would I add new events for it for Eluna, since I cant seem to find anywhere you can add events for just units.

rektbyfaith
Administrator
0
05-19-2024, 12:51 PM
#15
Archived author: Sylian • Posted: 2024-05-19T12:51:52.080000+00:00
Original source


[Image: image.png?ex=690bf128&is=690a9fa8&hm=c38...3c8c182de&]
rektbyfaith
05-19-2024, 12:51 PM #15

Archived author: Sylian • Posted: 2024-05-19T12:51:52.080000+00:00
Original source


[Image: image.png?ex=690bf128&is=690a9fa8&hm=c38...3c8c182de&]

rektbyfaith
Administrator
0
05-19-2024, 12:52 PM
#16
Archived author: Sylian • Posted: 2024-05-19T12:52:14.386000+00:00
Original source

Like I cant see any "enum Unit", so where would I place my event for it?
rektbyfaith
05-19-2024, 12:52 PM #16

Archived author: Sylian • Posted: 2024-05-19T12:52:14.386000+00:00
Original source

Like I cant see any "enum Unit", so where would I place my event for it?

rektbyfaith
Administrator
0
05-19-2024, 12:52 PM
#17
Archived author: Foe • Posted: 2024-05-19T12:52:21.897000+00:00
Original source

A player is a unit
rektbyfaith
05-19-2024, 12:52 PM #17

Archived author: Foe • Posted: 2024-05-19T12:52:21.897000+00:00
Original source

A player is a unit

rektbyfaith
Administrator
0
05-19-2024, 12:52 PM
#18
Archived author: Sylian • Posted: 2024-05-19T12:52:55.242000+00:00
Original source

Yes, I know that, but isnt it a bad idea to place the event inside the enum for the playerevents?
rektbyfaith
05-19-2024, 12:52 PM #18

Archived author: Sylian • Posted: 2024-05-19T12:52:55.242000+00:00
Original source

Yes, I know that, but isnt it a bad idea to place the event inside the enum for the playerevents?

rektbyfaith
Administrator
0
05-19-2024, 12:52 PM
#19
Archived author: Foe • Posted: 2024-05-19T12:52:55.744000+00:00
Original source

Just cast it to a player
rektbyfaith
05-19-2024, 12:52 PM #19

Archived author: Foe • Posted: 2024-05-19T12:52:55.744000+00:00
Original source

Just cast it to a player

rektbyfaith
Administrator
0
05-19-2024, 12:53 PM
#20
Archived author: Foe • Posted: 2024-05-19T12:53:02.972000+00:00
Original source

No, it doesn't matter
rektbyfaith
05-19-2024, 12:53 PM #20

Archived author: Foe • Posted: 2024-05-19T12:53:02.972000+00:00
Original source

No, it doesn't matter

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