[z2455] Pet stats are not modified by owner stats in vanilla.

http://www.wowwiki.com/Patch_2.0.1 : All pets will now receive a percentage of their master's armor, spell damage, spell resistances, attack power, and stamina.
[z2456] Improve handling of TargetMMGen

This will have impact on Chase and Follow Movement.

* Refactor code to check if a new position is required for the MMGen into the new function RequiresNewPosition
* Refactor code to get the current targeted distance into function GetDynamicTargetDistance
* Change ChaseMMGen (angle = 0.0f case) chase to best contact point, not zero angle.

Thanks to Cala and X-Savior for testing. Special thanks to cala for also suggesting improved values for the magic numbers

(based on commit [12565] - 897ed82)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2094] - 118962b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2457] Correct some BG chat message missing target name. Thank to @CamilleMoon for pointing.

(based on commit [12601] - 8ce25e0)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2095] - a0338ec)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2458] Set max gossip menu items to 32

Client does not show more than that.

Signed-off-by: stfx <stfx@hotmail.de>

(based on commit [12602] - 5e15f3b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2096] - 4ecc508)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2459] Update all stats after creature respawn. That fix the stats were not correct when creature could have more than one level.

(based on commit [12609] - 1c83096)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2099] - f819095)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2460] Remove unused argument in CalculateMeleeDamage

(based on commit [12610] - 078f88d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2100] - d095e4b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2461] This is used to prevent creatures from pulling too many nearby monsters, for example during certain scripted events.

A good example is Mr. Smite in the Deadmines. There are two guards at the
bottom of his bridge which trigger aggro for him, but if he is missing
this flag he will also pull nearby mobs on the ship, which is not expected
behavior.

(based on commit [12612] - cc137f6)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2101] - 066c3b6)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2462] Add ACTION_T_SET_STAND_STATE for EventAI

This will allow changing the stand state of the current creature

(based on commit [12613] - bbb6f0e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2102] - 128b238)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2463] Reserve more DB_SCRIPT_STRING_ID. It seem that could be usefull.

(based on commit [12614] - 43f0d77)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2103] - f687f77)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2464] Fix creature loose target while rooted.

(based on commit [12617] - 34d4083)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2105] - d9cfdb3)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2465] Remove unused constructor overloads

(based on commit [12618] - 0ec52a4)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2106] - 0fb337e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2466] Fix conflicting typedef error in ACE Prevent assert on platforms where we cannot change thread priority

(based on commit [12619] - 93de196)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2107] - 6cd82e0)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2467] Fix creature flee dont loose target. Also Feared creature will loose correctly target then target will be restored.

(based on commit [12620] - b3877ed)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2108] - 2728e69)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2468] Hotfix broken ACE configure script of [z2466]

Note: This will reintroduce problems for MacOS. So a proper patch is still pending.

(based on commit [12625] - 218db48)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2109] - a848e1d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2469] Improve "NPCs gets stuck in melee animation while casting".

(based on commit [12626] - ff4734d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2110] - 2226a45)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2470] Improve  random movement by permit randomly no wait time to next waypoint

Thank to @dev-intra for this proposal.
Thank to @Schmoozerd for his improvement.
Slightly modified version of https://github.com/mangoszero/server/commit/0feaee0d5a34489a756a46d24d318bf885b23318

(based on commit [12627] - 3afdf8f)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2111] - 48c1a58)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2471] Remove a compile warning and better test with float

(based on commit [12632] - ed0c7ca)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2115] - 8c2d2d7)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2472] Reorder and unify the config's stat modifier handling

(based on commit [12633] - c7c346e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2116] - a3e9681)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2473] Fix some unused parameter warnings

(based on commit [12634] - 5fb0c37)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2117] - 189a6c1)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2474] Fix tiny bug introduced in [8390] in an unused function

(based on commit [12635] - 50eaf03)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>

(based on commit [s2118] - 7a2eb2c)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>