[DiscordArchive] spell-> pointing to what?
[DiscordArchive] spell-> pointing to what?
Archived author: nixxi • Posted: 2024-05-29T13:54:55.920000+00:00
Original source
spell-> pointing to what?
Archived author: Thulz • Posted: 2024-05-29T13:55:04.041000+00:00
Original source
spell is a pointer to Spell class
Archived author: Thulz • Posted: 2024-05-29T13:55:22.359000+00:00
Original source
So if you want to get the spell ID you must access it's SpellInfo
Archived author: Thulz • Posted: 2024-05-29T13:55:34.927000+00:00
Original source
it will require you to include the header to be able to access that class
Archived author: Thulz • Posted: 2024-05-29T13:55:40.179000+00:00
Original source
so it will be some like this
Archived author: Thulz • Posted: 2024-05-29T13:56:06.178000+00:00
Original source
```
#include "SpellInfo.h"
spell->spellInfo->ID
```
Archived author: Thulz • Posted: 2024-05-29T13:56:26.391000+00:00
Original source
Be sure to check for spellInfo not being a nullptr
Archived author: nixxi • Posted: 2024-05-29T13:57:06.282000+00:00
Original source
thanks a lot i tried to search in trinitycore website but if u put ID it will show a million objects
Archived author: Thulz • Posted: 2024-05-29T14:05:26.296000+00:00
Original source
Feel free to ask me
Archived author: nixxi • Posted: 2024-05-29T14:30:04.445000+00:00
Original source
just a question is saying again theres no member it shouldnt be like GetSpellInfo? or something like that? theres a member in the Spell called GetSpellInfo, sorry to sound like a noob but I not used to do cpp scripts