This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: How to create a spell that teaches other spells  (Read 1627 times)

nhinkley

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
How to create a spell that teaches other spells
« 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?

Grymskvll

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 65
    • View Profile
Re: How to create a spell that teaches other spells
« Reply #1 on: July 11, 2017, 10:09:44 pm »
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:
Quote
Effect #1    Learn Spell:
   Feed Pet       
Effect #2    Learn Spell:
   Revive Pet

Dunno why they do this

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: How to create a spell that teaches other spells
« Reply #2 on: July 12, 2017, 07:35:24 am »
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.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

nhinkley

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: How to create a spell that teaches other spells
« Reply #3 on: July 12, 2017, 02:53:52 pm »
If I were to copy the spell, how would I change the values of the spells that are learned?

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: How to create a spell that teaches other spells
« Reply #4 on: July 12, 2017, 07:53:15 pm »
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.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

nhinkley

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: How to create a spell that teaches other spells
« Reply #5 on: July 14, 2017, 03:37:02 am »
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.

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: How to create a spell that teaches other spells
« Reply #6 on: July 26, 2017, 12:51:28 am »
If it's 3.3.5a you are modding you can use my spell editor: https://github.com/stoneharry/Spell-Editor-GUI-V2