[DiscordArchive] Hey, I am trying to figure out how spells know where they can be used... but I don't find anything.
[DiscordArchive] Hey, I am trying to figure out how spells know where they can be used... but I don't find anything.
Archived author: Saty • Posted: 2023-03-08T02:51:59.939000+00:00
Original source
Hey, I am trying to figure out how spells know where they can be used... but I don't find anything.
Can anyone point me maybe in the right direction?
Archived author: HelloKitty • Posted: 2023-03-08T03:31:19.163000+00:00
Original source
In the 3.3.5 spell DBC there is a field refered to as RequiredAreaGroupId which is an optional FK to the DBC table AreaGroup. The entry in this table can then be used to create a set of areas a spell is allowed to be cast: <https://wowdev.wiki/DB/AreaGroup>.
Archived author: Saty • Posted: 2023-03-08T03:52:31.204000+00:00
Original source
I am looking at this spell: https://www.wowhead.com/wotlk/spell=4976/filling
But it seems like the "RequiredAreaGroupId" is empty
[Embed: Filling]
Right-click to fill the Crystal Phial at the Shadowglen moonwell. In the Uncategorized Spells category. Added in Classic World of Warcraft. Always up to date.
https://www.wowhead.com/wotlk/spell=4976/filling
Archived author: HelloKitty • Posted: 2023-03-08T03:54:19.997000+00:00
Original source
That one is implemented as "Spell Focus".
Archived author: HelloKitty • Posted: 2023-03-08T03:54:54.876000+00:00
Original source
Here is a copy paste of the wiki for spell focus: ```SpellFocusObject: Spell focus needed by spell to be casted. Player needs to be within range of apropriate gameobject with type=8.```
Archived author: HelloKitty • Posted: 2023-03-08T03:55:14.527000+00:00
Original source
It's a column on the Spell DBC table.
Archived author: Saty • Posted: 2023-03-08T03:55:43.402000+00:00
Original source
Ah okay... thats 11 for that spell
Archived author: HelloKitty • Posted: 2023-03-08T03:55:44.422000+00:00
Original source
Annoyingly they don't use an gameobject id, they point to another DBC: <https://wowdev.wiki/DB/SpellFocusObject>
Archived author: HelloKitty • Posted: 2023-03-08T03:56:15.417000+00:00
Original source
Or maybe it is the GameobjectID, I never opened the DBC lol.
Archived author: Saty • Posted: 2023-03-08T03:57:09.065000+00:00
Original source
Hmm... it's not the ID it looks like, only points to a name in the SpellFocusObject table