mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- removed web-setup - new CLI parameters --account : create initial account(s) --siteconfig : edit php/aowow config values --dbconfig : set up db connection --sql : create db content from world/dbc-tables --firstrun : [NYI] step by step initial setup - some fixes by the wayside * display required arena bracket for extendedCost * achievement chains are searchable again * category trees for factions should now be correct * trainer tab on spell detail page reapeared * userMenu item 'Settings' no longer breaks the page * display abilities of shapeshift in tab on spell detail page * corrected reading ?_sourcestrings for titles * fixed error on race detail page * added simple descriptions to skill detail page * fixed tab "reward from" (achievement) on title detail page * fixed alphabetical order of some filter-dropdowns * fixed skill colors for spells * fixed power display for rune-based spells, that also cost mana * added more information to zones * also check mail_loot_template for achivements * fixed bug, where loot_template-ids would be reused for multiple templates * display sourcemore for pvp-sources
47 lines
1.6 KiB
PHP
47 lines
1.6 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
if (!CLI)
|
|
die('not in cli mode');
|
|
|
|
|
|
$customData = array(
|
|
null,
|
|
['leader' => 29611, 'factionId' => 72, 'startAreaId' => 12],
|
|
['leader' => 4949, 'factionId' => 76, 'startAreaId' => 14],
|
|
['leader' => 2784, 'factionId' => 47, 'startAreaId' => 1],
|
|
['leader' => 7999, 'factionId' => 96, 'startAreaId' => 141],
|
|
['leader' => 10181, 'factionId' => 68, 'startAreaId' => 85],
|
|
['leader' => 3057, 'factionId' => 81, 'startAreaId' => 215],
|
|
['leader' => 7937, 'factionId' => 54, 'startAreaId' => 1],
|
|
['leader' => 10540, 'factionId' => 530, 'startAreaId' => 14],
|
|
null,
|
|
['leader' => 16802, 'factionId' => 911, 'startAreaId' => 3430],
|
|
['leader' => 17468, 'factionId' => 930, 'startAreaId' => 3524]
|
|
);
|
|
$reqDBC = ['chrraces', 'charbaseinfo'];
|
|
|
|
function races()
|
|
{
|
|
$baseQuery = '
|
|
REPLACE INTO
|
|
?_races
|
|
SELECT
|
|
Id, 0, flags, 0, factionId, 0, 0, baseLanguage, IF(side = 2, 0, side + 1), fileString, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, expansion
|
|
FROM
|
|
dbc_chrraces';
|
|
|
|
DB::Aowow()->query($baseQuery);
|
|
|
|
// add classMask
|
|
DB::Aowow()->query('UPDATE ?_races r JOIN (SELECT BIT_OR(1 << (classId - 1)) as classMask, raceId FROM dbc_charbaseinfo GROUP BY raceId) cbi ON cbi.raceId = r.id SET r.classMask = cbi.classMask');
|
|
|
|
// add cuFlags
|
|
DB::Aowow()->query('UPDATE ?_races SET cuFlags = ?d WHERE flags & ?d', CUSTOM_EXCLUDE_FOR_LISTVIEW, 0x1);
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|