[s1998]  Add some safety to rare case of target-selection for unreachable target

Thanks to Atari for reporting and researching this problem

(based on commit [12478] - ae2a837)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1999]  Enable using table creature_linking with empty table creature_linking_template

Note: Guids are evil!
Close cmangos/issues#148

(based on commit [12479] - 4e65ae9)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2000] 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>
[s2001] Fix a stupid mistake from me introduced in [s1990]

Thanks to boxa for pointing

(based on commit [12484] - bffff06)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2002] Improve WaypointMMGen

* Add correct Reset position (Npc will evade now to the last reached waypoint, and not to the next waypoint)
* Add proper return value for the CONDITION_LAST_WAYPOINT

* Let WaypointMMGen behave better after evading (keep PAUSED state, keep waittimer

(based on commit [12485] - 3d41af5)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2003] Change Debug Output to EventAIError output if no target is found

(based on commit c698466)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2004] Stop movement of dead npcs

Close cmangos/issues#213
Also thanks to pyromaniac for posting this bug on the forums (and a few users for confirming)

(based on commit [12489] - 204838e)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2005] Keep CombatMovement, Running and Waypoint-Paused states after evade

(based on commit [12490] - 40d014a)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2006] Add additional miscValue to AIEvent throwing

(based on commit [12491] - dfb0b55)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2007] Rearrange code for Aura::HandleAuraModIncreaseHealth

* Also fix some behaviour with SetHealth/SetPower if set to max health/power

(based on commit [12492] - dd0633c)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s2008] Fix onefalse positive startup errors

* Fix startup-error related to quest 10162

(based on commit [12493] - be0e810)

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