[DiscordArchive] You have two onLogin functions.
[DiscordArchive] You have two onLogin functions.
Archived author: Aldori • Posted: 2025-09-09T14:46:57.109000+00:00
Original source
Put the spell IDs in it
Archived author: Band • Posted: 2025-09-09T14:49:05.481000+00:00
Original source
Roger that, I will definitely do that! Thank you so much
Archived author: Aldori • Posted: 2025-09-09T14:50:44.447000+00:00
Original source
Then once you have that table, your removeAllRacials function can be simplified to this
```
local function removeAllRacials(p)
for _, spellId in ipairs(SPELLS_TO_REMOVE) do
p:RemoveSpell(spellId)
end
end
```
Archived author: Terenas Menethil • Posted: 2025-09-09T17:45:40.346000+00:00
Original source
It might be interesting to consider editing the skillLineAbility.dbc to remove the entries for racial abilities, so you can add and remove them without major issues. It also makes it unnecessary to keep removing the abilities from the player who changed racial spells.
Archived author: Band • Posted: 2025-09-09T17:52:09.704000+00:00
Original source
I have tried to look at this but honestly I am kind of a noob, not really sure where to start. I would have assumed with something like mod-racial-trait-swap, that would be an easy fix included in a SQL file for that module