Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: nhinkley on July 11, 2017, 07:00:00 pm
-
Wondering how to set a spell to teach more spells once it is learned. For example, when hunters complete their pet quests, they are taught the spells "Taming Lesson" and "Training Lesson" which teach them all of the spells required for their pets. Anyone know how this works?
-
In world.quest_template, if you look at one of the quests that teaches Training Lesson (for example quest ID 6089 (WotLK)), there's a RewardDisplaySpell column and a RewardSpell column.
RewardDisplaySpell is 23357: Taming Lesson (it only has a dummy effect, so it doesn't do anything)
RewardSpell is 5300: Beast Training which has these two effects:
Effect #1 Learn Spell:
Feed Pet
Effect #2 Learn Spell:
Revive Pet
Dunno why they do this
-
Because there is no system which can actually teach you spell as a quest reward. But there is system which can apply an aura on you, as a quest reward. So what is going on here is that quest rewards you by putting an aura on you - an aura which, as its effect, teaches you a spell (or spells).
Taming Lesson example is a good example. Copy spell which is granted as reward and you are done.
-
If I were to copy the spell, how would I change the values of the spells that are learned?
-
What about actually opening spell.dbc and trying to figure that out? :P
https://wowdev.wiki/DB/Spell
Open spell.dbc. You were already told that spell 5300 does this kind of thing. You also know that it learns spells Feed Pet and Revive Pet. You know what are IDs of those 2 spells? If not, there are many ways of finding those out. Then its just matter of browsing through fields in row 5300 of spell.dbc until you find something what looks like IDs of Feed Pet and Revive Pet spells.
Spoiler alert: fields 118-120. But try to figure such things out on your own, otherwise you won't learn very much.
-
Thanks for the help. I looked through the dbc's at those spells, but I must have missed it. I asked because I thought someone else may have seen something different. I'll look at those spells again and see what I can find.
-
If it's 3.3.5a you are modding you can use my spell editor: https://github.com/stoneharry/Spell-Editor-GUI-V2