[z2419] Improve chat channel code:

- Remove unnecessary calls to GetPlayer
- Invert "if" statements to reduce nesting
- Cleanup code

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

(based on commit [12580] - 30ef9f3)

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

(based on commit [s2072] - d3cd8c8)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2420] Implement 2 chat channel responses

- CHAT_PLAYER_NOT_BANNED_NOTICE
- CHAT_PLAYER_INVITE_BANNED_NOTICE

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

(based on commit [12581] - 7031064)

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

(based on commit [s2073] - 8861b2b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2421] Fix reloading horde controlled capture point

Negative value of 0 (CAPTURE_SLIDER_HORDE) is still 0

Part of cmangos/issues#53

(based on commit [12582] - 7975bf9)

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

(based on commit [s2074] - 7c7cd9e)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2422] Add a configurable delay between when a creature respawns and when it can aggro due to movement.

(based on commit [12583] - b5e19ef)

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

(based on commit [s2075] - f75668c)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2423] Rename m_respawnAggroDelay to make it more generic

(based on commit [12584] - 8496e12)

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

(based on commit [s2076] - 4352da7)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2424] Fixed issue with PCH not working on some versions of GCC

Since some versions of GCC doesn't output patchlevel on -dumpversion the PCH check can fail.
Bug: https://github.com/cmangos/issues/issues/81

(based on commit [12586] - 6ebd805)

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

(based on commit [s2077] - 0378643)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2425] Chat system refactoring All chat function now call same method

I also reworked the packet structure to be more near of original.
Due to havy of code changed this commit need to be applyed carrefully.

Any feedback is welcome here or on cmangos.net

(based on commit [12587] - 1af082e)

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

(based on commit [s2078] - d45708f)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2426] Restore nix build. Also forget to remove one MANGOSASSERT + cosmetic stuff

(based on commit [12588] - bcb98ed)

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

(based on commit [s2079] - 1cc3685)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2427] New nix fix, sorry.

Enum place swap and a new include.

(based on commit [12589] - 0c97ffa)

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

(based on commit [s2080] - be7539d)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2428] Add BuildChatPacket comment, reorder parameters, correct a little bug gm name not showed on general channel (Thank to @Shauren for pointing).

(based on commit [12590] - f970cc5)

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

(based on commit [s2081] - 8365a68)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2429] Fix freeze if opcode.txt file does not exist on .debug send opcode

Idea by @xjose93

Thanks to @evil-at-wow for feedback

(based on commit [12591] - 3772bd3)

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

(based on commit [s2082] - 24ac514)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2430] Fix LANG_ADDON use on Guild Channels and avoid a possible crash.

Part of @rsa work too.

(based on commit [12594] - adcd491)

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

(based on commit [s2085] - e20c2fc)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2431] Imrpove readability of the code and avoid visual studio warning c4996 I don't think this can cause trouble with gcc but let me know if its the case.

(based on commit [12595] - 7e14a6c)

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

(based on commit [s2086] - e9d74dc)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2432] Avoid last Visual Studio warning.

(based on commit [12596] - 9f426bd)

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

(based on commit [s2087] - 5595989)

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