Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or Spel

[DiscordArchive] i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or Spel

[DiscordArchive] i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or Spel

rektbyfaith
Administrator
0
09-19-2021, 03:38 PM
#1
Archived author: Dejavù • Posted: 2021-09-19T15:38:25.902000+00:00
Original source

i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or SpellAuraEffects.cpp?
rektbyfaith
09-19-2021, 03:38 PM #1

Archived author: Dejavù • Posted: 2021-09-19T15:38:25.902000+00:00
Original source

i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or SpellAuraEffects.cpp?

rektbyfaith
Administrator
0
09-19-2021, 03:42 PM
#2
Archived author: <o> • Posted: 2021-09-19T15:42:53.692000+00:00
Original source

in your spell viewer program, you should be able to find something like an "effect id" or "effect type". This type id is used as a lookup in this list (each row points to a handler function, the numbers on the right is the index corresponding to the effect id)
<https://github.com/TrinityCore/TrinityCore/blob/0b882b2fa4305c8554d675d6c5ba46457c5188e4/src/server/game/Spells/SpellEffects.cpp#L81>
rektbyfaith
09-19-2021, 03:42 PM #2

Archived author: <o> • Posted: 2021-09-19T15:42:53.692000+00:00
Original source

in your spell viewer program, you should be able to find something like an "effect id" or "effect type". This type id is used as a lookup in this list (each row points to a handler function, the numbers on the right is the index corresponding to the effect id)
<https://github.com/TrinityCore/TrinityCore/blob/0b882b2fa4305c8554d675d6c5ba46457c5188e4/src/server/game/Spells/SpellEffects.cpp#L81>

rektbyfaith
Administrator
0
09-19-2021, 03:46 PM
#3
Archived author: <o> • Posted: 2021-09-19T15:46:17.651000+00:00
Original source

if you can't find effect ids for your spell, maybe someone else can give you a pointer because i don't know a whole lot about the master branch
rektbyfaith
09-19-2021, 03:46 PM #3

Archived author: <o> • Posted: 2021-09-19T15:46:17.651000+00:00
Original source

if you can't find effect ids for your spell, maybe someone else can give you a pointer because i don't know a whole lot about the master branch

rektbyfaith
Administrator
0
09-19-2021, 04:20 PM
#4
Archived author: Dejavù • Posted: 2021-09-19T16:20:25.734000+00:00
Original source

for watershield i found in spellwork that effect1 is SPELL_AURA_MOD_POWER_REGEN i found in AuraSpellEffects.cpp this handler: HandleModPowerRegen
rektbyfaith
09-19-2021, 04:20 PM #4

Archived author: Dejavù • Posted: 2021-09-19T16:20:25.734000+00:00
Original source

for watershield i found in spellwork that effect1 is SPELL_AURA_MOD_POWER_REGEN i found in AuraSpellEffects.cpp this handler: HandleModPowerRegen

rektbyfaith
Administrator
0
09-19-2021, 04:20 PM
#5
Archived author: Dejavù • Posted: 2021-09-19T16:20:56.290000+00:00
Original source

so this function handle indirectly the behaviour of the effect1 of water shield?
rektbyfaith
09-19-2021, 04:20 PM #5

Archived author: Dejavù • Posted: 2021-09-19T16:20:56.290000+00:00
Original source

so this function handle indirectly the behaviour of the effect1 of water shield?

rektbyfaith
Administrator
0
09-19-2021, 04:21 PM
#6
Archived author: Dejavù • Posted: 2021-09-19T16:21:20.456000+00:00
Original source

i ask to you this, to understand if i understand XD
rektbyfaith
09-19-2021, 04:21 PM #6

Archived author: Dejavù • Posted: 2021-09-19T16:21:20.456000+00:00
Original source

i ask to you this, to understand if i understand XD

rektbyfaith
Administrator
0
09-19-2021, 04:22 PM
#7
Archived author: <o> • Posted: 2021-09-19T16:22:35.763000+00:00
Original source

correct
rektbyfaith
09-19-2021, 04:22 PM #7

Archived author: <o> • Posted: 2021-09-19T16:22:35.763000+00:00
Original source

correct

rektbyfaith
Administrator
0
09-19-2021, 04:23 PM
#8
Archived author: <o> • Posted: 2021-09-19T16:23:08.622000+00:00
Original source

but it also handles the behavior of many other spells with the same effect, that's the point of generic effect handlers
rektbyfaith
09-19-2021, 04:23 PM #8

Archived author: <o> • Posted: 2021-09-19T16:23:08.622000+00:00
Original source

but it also handles the behavior of many other spells with the same effect, that's the point of generic effect handlers

rektbyfaith
Administrator
0
09-19-2021, 04:31 PM
#9
Archived author: Spoony • Posted: 2021-09-19T16:31:47.349000+00:00
Original source

i fixed it, should have checked the good ole interweb first
rektbyfaith
09-19-2021, 04:31 PM #9

Archived author: Spoony • Posted: 2021-09-19T16:31:47.349000+00:00
Original source

i fixed it, should have checked the good ole interweb first

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