[z2381] Add database changes to support more data for DB Script texts

(based on commit [12522] - 2728e04)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2034] - 1684025)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2382] Add const-correctness to Text related functions

(based on commit [12523] - b32291d)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2035] - 335e834)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2383] Add generic DoDisplayText function and use additional data of dbscripts table

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [12524] - d2fd4ba)
(based on commit [12528] - d8584fe)
(based on commit [12529] - 20e5abb)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2036] - e447515)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2384] EventAI: Use generic DoDisplayText and loading of additional text data

(based on commit [12525] - f4e0af6)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2037] - 94d9a02)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2385] Store how many texts are loaded for validity checks. Use this with EventAI

See cmangos/issues#202

(based on commit [12526] - f83ed99)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2038] - e51e65e)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
Fix some warnings

(based on commit 95dae9f)
(based on commit 17ac34c)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2386] Fix a bug with vmap extraction

This bug appears to have no real impact in wotlk

(based on commit [12481] - c444465)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>

(based on commit [s2000] - a67553c)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2387] Use possible changed model names with vmap extraction

Special thanks to vladimir for figuring this bug

Fix and close cmangos/issues#189

Also huge thanks to @evil-at-wow for serious testing and feedback

(based on commit [12527] - 94c2a73)
(based on commit [s2039] - d61876c)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[z2388] Modify VMAP extractor to give priority to models in patch MPQs.

This fixes VMAPs/MoveMaps in certain locations (e.g. Blackwing Lair).

VMAPs and MoveMaps should be rebuilt completely to ensure that the correct
model data has been used everywhere.

Close cmangos/mangos-classic#33

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>