Setup/Source

* get starter spells from playercreateinfo_skill instead of playercreateinfo_spell
   (changed in 2a3546ca36)

thanks @Toshik for pointing that out
This commit is contained in:
Sarjuuk
2015-08-19 16:45:44 +02:00
parent c9aa0b3f6d
commit af7015097b
2 changed files with 5 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ class SqlGen
'zones' => [null, null, null, ['access_requirement']], 'zones' => [null, null, null, ['access_requirement']],
'itemset' => [null, null, ['spell'], ['item_template', 'game_event']], 'itemset' => [null, null, ['spell'], ['item_template', 'game_event']],
'item_stats' /* + ench */ => [null, null, ['items', 'spell'], null], 'item_stats' /* + ench */ => [null, null, ['items', 'spell'], null],
'source' => [null, null, ['spell', 'achievement'], ['npc_vendor', 'game_event_npc_vendor', 'creature', 'quest_template', 'playercreateinfo_item', 'npc_trainer', 'skill_discovery_template', 'playercreateinfo_spell', 'achievement_reward']] 'source' => [null, null, ['spell', 'achievement'], ['npc_vendor', 'game_event_npc_vendor', 'creature', 'quest_template', 'playercreateinfo_item', 'npc_trainer', 'skill_discovery_template', 'playercreateinfo_skill', 'achievement_reward']]
); );
public static $cliOpts = []; public static $cliOpts = [];

View File

@@ -31,7 +31,7 @@ if (!CLI)
* creature * creature
* playercreateinfo_item * playercreateinfo_item
* playercreateinfo_spell * playercreateinfo_skill
* achievement_reward * achievement_reward
* skill_discovery_template * skill_discovery_template
*/ */
@@ -1149,15 +1149,13 @@ function source(array $ids = [])
CLISetup::log(' * #10 Starter'); CLISetup::log(' * #10 Starter');
/* acquireMethod /* acquireMethod
ABILITY_LEARNED_ON_GET_PROFESSION_SKILL = 1, learnedAt = 1 && source10 = 1 ABILITY_LEARNED_ON_GET_PROFESSION_SKILL = 1, learnedAt = 1 && source10 = 1
ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL = 2 not used for now ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL = 2
*/ */
$subSkills = DB::Aowow()->subquery('SELECT ?d, spellId, 1, NULL AS m, NULL AS mt FROM dbc_skilllineability WHERE acquireMethod = 1 AND (reqSkillLevel = 1 OR skillLineId = 129) GROUP BY spellId', TYPE_SPELL); $pcis = DB::World()->selectCol('SELECT DISTINCT skill FROM playercreateinfo_skills');
$subSkills = DB::Aowow()->subquery('SELECT ?d, spellId, 1, NULL AS m, NULL AS mt FROM dbc_skilllineability WHERE {(skillLineId IN (?a) AND acquireMethod = 2) OR} (acquireMethod = 1 AND (reqSkillLevel = 1 OR skillLineId = 129)) GROUP BY spellId', $pcis ?: DBSIMPLE_SKIP, TYPE_SPELL);
DB::Aowow()->query($insSub, 10, $subSkills, 10, 10); DB::Aowow()->query($insSub, 10, $subSkills, 10, 10);
if ($pcis = DB::World()->select('SELECT ?d, Spell, 1 FROM playercreateinfo_spell', TYPE_SPELL))
DB::Aowow()->query(queryfy('[V]', $pcis, $insBasic), 10, 10, 10);
/**********/ /**********/
/* Titles */ /* Titles */