Setup/Creatures

* hide creatures for internal use from listviews
 * correct Nightelf Player faction
 * trying to enforce strict line endings
This commit is contained in:
Sarjuuk
2017-02-25 23:25:51 +01:00
parent 3b1bcfe1a5
commit d73557ee5e
44 changed files with 6995 additions and 6979 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
*.php text eol=lf
*.js text eol=lf
*.css text eol=lf

View File

@@ -149,6 +149,9 @@ function creature(array $ids = [])
// apply cuFlag: excludeFromListview [for trigger-creatures]
DB::Aowow()->query('UPDATE ?_creature SET cuFlags = cuFlags | ?d WHERE flagsExtra & ?d', CUSTOM_EXCLUDE_FOR_LISTVIEW, 0x80);
// apply cuFlag: exCludeFromListview [for nameparts indicating internal usage]
DB::Aowow()->query('UPDATE ?_creature SET cuFlags = cuFlags | ?d WHERE name_loc0 LIKE "%[%" OR name_loc0 LIKE "%(%" OR name_loc0 LIKE "%visual%" OR name_loc0 LIKE "%trigger%" OR name_loc0 LIKE "%credit%" OR name_loc0 LIKE "%marker%"', CUSTOM_EXCLUDE_FOR_LISTVIEW);
return true;
}

View File

@@ -12,7 +12,7 @@ $customData = array(
['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' => 7999, 'factionId' => 69, 'startAreaId' => 141],
['leader' => 10181, 'factionId' => 68, 'startAreaId' => 85],
['leader' => 3057, 'factionId' => 81, 'startAreaId' => 215],
['leader' => 7937, 'factionId' => 54, 'startAreaId' => 1],

View File

@@ -0,0 +1,9 @@
UPDATE aowow_races SET factionId = 69 WHERE id = 4; -- was 96 *sigh*
UPDATE aowow_creature SET cuFlags = cuFlags | 0x40000000 WHERE
name_loc0 LIKE '%[%' OR
name_loc0 LIKE '%(%' OR
name_loc0 LIKE '%visual%' OR
name_loc0 LIKE '%trigger%' OR
name_loc0 LIKE '%credit%' OR
name_loc0 LIKE '%marker%';