[DiscordArchive] how does phasing work? that the player enters another phase after sending a quest, for example? or N
[DiscordArchive] how does phasing work? that the player enters another phase after sending a quest, for example? or N
Archived author: <o> • Posted: 2022-10-11T10:19:39.297000+00:00
Original source
that's because there isn't a single way to do it. I'm not 100% sure if it works, but I think you can use `spell_dbc` to create custom spells with the set mask effect and then apply it through `spell_area`, which should be enough for what you're trying to do.
Archived author: <o> • Posted: 2022-10-11T10:21:21.892000+00:00
Original source
the easiest is to just look at a quest that does this and check what tables it uses or what spells it applies and what its effects are. I usually don't use phases for quests myself so i rarely use them like that, instead I use the core function `WorldObject::SetPhaseMask`
Archived author: Krutok • Posted: 2022-10-11T10:27:09.252000+00:00
Original source
Example quest: https://www.wowhead.com/quest=13086/the-...of-defense when you've done this, the undead won't walk around anymore, but I have no idea how it was done.
[Embed: The Last Line Of Defense]
Use an Argent Cannon to destroy 100 Scourge attackers. You must also kill 3 Frostbrood Destroyers.Return to Siegemaster Fezzik should you succeed.
https://www.wowhead.com/quest=13086/the-...of-defense
Archived author: <o> • Posted: 2022-10-11T10:30:32.778000+00:00
Original source
maybe you're just not confident on how to use spell auras or create custom spells, so try looking into learning that first. `SPELL_AURA_PHASE`, or 261, is the aura type you're looking for. Then look at the tables I gave you and I think it'll start to make sense how you can use them, you have all the pieces for quest-style phasing there
Archived author: <o> • Posted: 2022-10-11T10:31:40.995000+00:00
Original source
auras have this great property that you can add them and remove them and it'll mostly behave consistently like you'd expect, whereas manually handling `WorldObject::SetPhaseMask` is much more error prone since you're ultimately responsible for both setting and unsetting the players phase
Archived author: Krutok • Posted: 2022-10-11T10:34:39.621000+00:00
Original source
In order to replicate it, I first have to understand how it works
Archived author: <o> • Posted: 2022-10-11T10:36:42.163000+00:00
Original source
and it works using spell auras that stack phase masks on the player. if you learn how to create a custom spell aura that applies `SPELL_AURA_PHASE`, you can make sure that aura applies to only to the player in certain areas after/before completing certain quests in the `spell_area` table.
Archived author: <o> • Posted: 2022-10-11T10:40:10.602000+00:00
Original source
<https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130105/spell+area>
i'm not sure where there are spell creation tutorials if you need that, we wrote about it for tswow but it doesn't use any of the normal tools though it might explain some of the theory necessary. maybe search youtube for spell editor tutorials
Archived author: Krutok • Posted: 2022-10-11T10:49:59.499000+00:00
Original source
<@787614711738138634>that's really complicated with the spells. I just wanted to exchange quest-related NPCs in 2 zones, who then say something different.
Archived author: Jinnai • Posted: 2022-10-11T10:51:43.576000+00:00
Original source
you can also use sai to modify phase masks