Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Still got magic numbers but is this going to be an issue in spell script to check quest objective da

[DiscordArchive] Still got magic numbers but is this going to be an issue in spell script to check quest objective da

[DiscordArchive] Still got magic numbers but is this going to be an issue in spell script to check quest objective da

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
01-14-2024, 10:38 PM
#11
Archived author: Northstrider • Posted: 2024-01-14T22:38:12.808000+00:00
Original source

GetCaster() must be a valid ptr before using ToPlayer()
rektbyfaith
01-14-2024, 10:38 PM #11

Archived author: Northstrider • Posted: 2024-01-14T22:38:12.808000+00:00
Original source

GetCaster() must be a valid ptr before using ToPlayer()

rektbyfaith
Administrator
0
01-14-2024, 10:44 PM
#12
Archived author: Northstrider • Posted: 2024-01-14T22:44:04.148000+00:00
Original source

(this applies to aura scripts only because auras can continue to exist without their caster
rektbyfaith
01-14-2024, 10:44 PM #12

Archived author: Northstrider • Posted: 2024-01-14T22:44:04.148000+00:00
Original source

(this applies to aura scripts only because auras can continue to exist without their caster

rektbyfaith
Administrator
0
01-14-2024, 10:45 PM
#13
Archived author: funjoker • Posted: 2024-01-14T22:45:18.297000+00:00
Original source

```cpp
if (GetCaster() && GetCaster()->ToPlayer())
```
<:kek:868839618898960414>
rektbyfaith
01-14-2024, 10:45 PM #13

Archived author: funjoker • Posted: 2024-01-14T22:45:18.297000+00:00
Original source

```cpp
if (GetCaster() && GetCaster()->ToPlayer())
```
<:kek:868839618898960414>

rektbyfaith
Administrator
0
01-14-2024, 10:49 PM
#14
Archived author: Malcrom • Posted: 2024-01-14T22:49:31.335000+00:00
Original source


[Image: image.png?ex=690c7d3b&is=690b2bbb&hm=334...16c60b732&]
rektbyfaith
01-14-2024, 10:49 PM #14

Archived author: Malcrom • Posted: 2024-01-14T22:49:31.335000+00:00
Original source


[Image: image.png?ex=690c7d3b&is=690b2bbb&hm=334...16c60b732&]

rektbyfaith
Administrator
0
01-14-2024, 10:50 PM
#15
Archived author: Northstrider • Posted: 2024-01-14T22:50:36.693000+00:00
Original source

Player* player = Object::ToPlayer(GetCaster()); is the quick and safe route
rektbyfaith
01-14-2024, 10:50 PM #15

Archived author: Northstrider • Posted: 2024-01-14T22:50:36.693000+00:00
Original source

Player* player = Object::ToPlayer(GetCaster()); is the quick and safe route

rektbyfaith
Administrator
0
01-14-2024, 10:50 PM
#16
Archived author: Malcrom • Posted: 2024-01-14T22:50:50.403000+00:00
Original source

where?
rektbyfaith
01-14-2024, 10:50 PM #16

Archived author: Malcrom • Posted: 2024-01-14T22:50:50.403000+00:00
Original source

where?

rektbyfaith
Administrator
0
01-14-2024, 10:51 PM
#17
Archived author: Northstrider • Posted: 2024-01-14T22:51:27.674000+00:00
Original source

remove Unit* caster completely and just do what I wrote above. Object::ToPlayer(GetCaster()) has a builtin nullptr check so if the caster returns nullptr, the player is also nullptr
rektbyfaith
01-14-2024, 10:51 PM #17

Archived author: Northstrider • Posted: 2024-01-14T22:51:27.674000+00:00
Original source

remove Unit* caster completely and just do what I wrote above. Object::ToPlayer(GetCaster()) has a builtin nullptr check so if the caster returns nullptr, the player is also nullptr

rektbyfaith
Administrator
0
01-14-2024, 10:51 PM
#18
Archived author: Malcrom • Posted: 2024-01-14T22:51:41.616000+00:00
Original source


[Image: image.png?ex=690c7dbd&is=690b2c3d&hm=739...5bff069b5&]
rektbyfaith
01-14-2024, 10:51 PM #18

Archived author: Malcrom • Posted: 2024-01-14T22:51:41.616000+00:00
Original source


[Image: image.png?ex=690c7dbd&is=690b2c3d&hm=739...5bff069b5&]

rektbyfaith
Administrator
0
01-14-2024, 10:51 PM
#19
Archived author: Northstrider • Posted: 2024-01-14T22:51:45.130000+00:00
Original source

Yes
rektbyfaith
01-14-2024, 10:51 PM #19

Archived author: Northstrider • Posted: 2024-01-14T22:51:45.130000+00:00
Original source

Yes

rektbyfaith
Administrator
0
01-14-2024, 10:51 PM
#20
Archived author: Malcrom • Posted: 2024-01-14T22:51:49.840000+00:00
Original source

ok, ty
rektbyfaith
01-14-2024, 10:51 PM #20

Archived author: Malcrom • Posted: 2024-01-14T22:51:49.840000+00:00
Original source

ok, ty

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