Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works

[DiscordArchive] Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works

[DiscordArchive] Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works

rektbyfaith
Administrator
0
11-09-2023, 05:03 AM
#1
Archived author: ERINGAR • Posted: 2023-11-09T05:03:58.044000+00:00
Original source

Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works fine. Other players can see new effects, but only if Effect was added, when the player was inside observer player vision distance. And:

1. If observer player logs out and logs in again, he doesn't see any effect on "caster" player.
2. If observer player goes far from "caster" player, all effects are disappear.

Animations by "SetAIAnimKitId" func - work perfect, but spell effects - are not. Can some one of TC devs tell me, what should i do to make this feature works correct?
[Image: image.png?ex=690c2c3d&is=690adabd&hm=4eb...6dcbe8f53&]
rektbyfaith
11-09-2023, 05:03 AM #1

Archived author: ERINGAR • Posted: 2023-11-09T05:03:58.044000+00:00
Original source

Hi guys, i have problem on master. I have made a command adds visual effect to player. And it works fine. Other players can see new effects, but only if Effect was added, when the player was inside observer player vision distance. And:

1. If observer player logs out and logs in again, he doesn't see any effect on "caster" player.
2. If observer player goes far from "caster" player, all effects are disappear.

Animations by "SetAIAnimKitId" func - work perfect, but spell effects - are not. Can some one of TC devs tell me, what should i do to make this feature works correct?
[Image: image.png?ex=690c2c3d&is=690adabd&hm=4eb...6dcbe8f53&]

rektbyfaith
Administrator
0
11-09-2023, 08:45 AM
#2
Archived author: Tea • Posted: 2023-11-09T08:45:02.039000+00:00
Original source

SendPlay*** functions cause non-persistent (and not tracked by server) visuals
rektbyfaith
11-09-2023, 08:45 AM #2

Archived author: Tea • Posted: 2023-11-09T08:45:02.039000+00:00
Original source

SendPlay*** functions cause non-persistent (and not tracked by server) visuals

rektbyfaith
Administrator
0
11-09-2023, 08:48 AM
#3
Archived author: ERINGAR • Posted: 2023-11-09T08:48:50.336000+00:00
Original source

Is there is any other option to set some visual effect to player, that works as i expect?
rektbyfaith
11-09-2023, 08:48 AM #3

Archived author: ERINGAR • Posted: 2023-11-09T08:48:50.336000+00:00
Original source

Is there is any other option to set some visual effect to player, that works as i expect?

rektbyfaith
Administrator
0
11-09-2023, 08:49 AM
#4
Archived author: Tea • Posted: 2023-11-09T08:49:29.726000+00:00
Original source

you could try using StateSpellVisualID in unit updatefields (m_unitData)
rektbyfaith
11-09-2023, 08:49 AM #4

Archived author: Tea • Posted: 2023-11-09T08:49:29.726000+00:00
Original source

you could try using StateSpellVisualID in unit updatefields (m_unitData)

rektbyfaith
Administrator
0
11-09-2023, 08:49 AM
#5
Archived author: Tea • Posted: 2023-11-09T08:49:52.599000+00:00
Original source

but because this field is currently unused, it has no functions to modify it so you would need to write one
rektbyfaith
11-09-2023, 08:49 AM #5

Archived author: Tea • Posted: 2023-11-09T08:49:52.599000+00:00
Original source

but because this field is currently unused, it has no functions to modify it so you would need to write one

rektbyfaith
Administrator
0
11-09-2023, 08:50 AM
#6
Archived author: Tea • Posted: 2023-11-09T08:50:00.903000+00:00
Original source

and it uses visual id, not visual kit id
rektbyfaith
11-09-2023, 08:50 AM #6

Archived author: Tea • Posted: 2023-11-09T08:50:00.903000+00:00
Original source

and it uses visual id, not visual kit id

rektbyfaith
Administrator
0
11-09-2023, 08:51 AM
#7
Archived author: Tea • Posted: 2023-11-09T08:51:15.916000+00:00
Original source

if that doesnt satisfy you then you need to find auras that have the visual you want (and no undesirable other effects)
rektbyfaith
11-09-2023, 08:51 AM #7

Archived author: Tea • Posted: 2023-11-09T08:51:15.916000+00:00
Original source

if that doesnt satisfy you then you need to find auras that have the visual you want (and no undesirable other effects)

rektbyfaith
Administrator
0
11-09-2023, 08:52 AM
#8
Archived author: ERINGAR • Posted: 2023-11-09T08:52:41.732000+00:00
Original source

Hm... Okay, ty, and one more question. Is there is any event, calls when player A becomes visible for player B? Something like "OnPlayerBecomesVisible(Player* p)"?
rektbyfaith
11-09-2023, 08:52 AM #8

Archived author: ERINGAR • Posted: 2023-11-09T08:52:41.732000+00:00
Original source

Hm... Okay, ty, and one more question. Is there is any event, calls when player A becomes visible for player B? Something like "OnPlayerBecomesVisible(Player* p)"?

rektbyfaith
Administrator
0
11-09-2023, 08:53 AM
#9
Archived author: Tea • Posted: 2023-11-09T08:53:36.615000+00:00
Original source

no, there isnt
rektbyfaith
11-09-2023, 08:53 AM #9

Archived author: Tea • Posted: 2023-11-09T08:53:36.615000+00:00
Original source

no, there isnt

rektbyfaith
Administrator
0
11-09-2023, 08:54 AM
#10
Archived author: ERINGAR • Posted: 2023-11-09T08:54:12.467000+00:00
Original source

Sad... Ty anyway. Yo're cool
rektbyfaith
11-09-2023, 08:54 AM #10

Archived author: ERINGAR • Posted: 2023-11-09T08:54:12.467000+00:00
Original source

Sad... Ty anyway. Yo're cool

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)