[7117] Implement explicit recipe discovery abilities.

* Implement SPELL_EFFECT_CREATE_ITEM_2 (157). This alos let work many item creating spells.
* Add `skill_discovery_template`.`reqClass` for allow clas specific racipes storing in table.
* Make primary key for `skill_discovery_template` pair (spellId,reqSpell) that allow have duplicate recipes for different reqSpells.
* Implement SPELL_EFFECT_SCRIPT (77) cases for explicit recipe discovery spells with learn spell selected by `skill_discovery_template` data.
Note: as expected explicit recipe discovery abilities always return some spell while exist any not learned yet for player class.
This commit is contained in:
VladimirMangos 2009-01-19 23:51:07 +03:00
parent ac9b14d70c
commit ee6072f232
10 changed files with 118 additions and 26 deletions

View file

@ -142,6 +142,7 @@ pkgdata_DATA = \
7100_01_characters_character_spell.sql \
7107_01_mangos_string.sql \
7113_01_characters_character_achievement_progress.sql \
7117_01_mangos_skill_discovery_template.sql \
README
## Additional files to include when running 'make dist'
@ -264,4 +265,5 @@ EXTRA_DIST = \
7100_01_characters_character_spell.sql \
7107_01_mangos_string.sql \
7113_01_characters_character_achievement_progress.sql \
7117_01_mangos_skill_discovery_template.sql \
README