[s2063] Remove not required duplicate indexes

See cmangos/mangos-wotlk#124 for details.

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

(based on commit [12562] - 0ae3f88)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2064] Get rid of bounding radius in GetNearPoint[2D] and ObjectPosSelector

This changes how ObjectPosSelector is used.
It changes the way how the functions Object::GetNearPoint and Object::GetNearPoint2d behave.

So you need to check all places where these functions are used if they are still used correctly.

Especially check your scripts!

(based on commit [12563] - 2d034a2)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2065] Improve ObjectPosSelector

Now a spot already occupied by the searcher will be prefered

(based on commit [12564] - 4e31279)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2066] Update git_id to reflect recent sql formatting changes

Devs should make sure to rebuild git_id

(based on commit [12568] - 3b3e3e4)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2067] CMake: Create config.h for windows only when needed

Also, don't use a prepared file but instead just generate it.

This has no effect for Visual Studio, as we still have our hack in place
in the ACE sources which directly include config-win32.h

(based on commit [12570] - 979380b)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2068] Allow server admins to disable GM commands for players entirely.

(based on commit 5fef6f5)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2069] Fix crash in ChatHandler::ParseCommands

Thanks VladimirMangos

(based on commit c8e6d97)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2070] DB Scripts SCRIPT_COMMAND_EMOTE

Add support to display a random emote.
If dataint1..dataintX is set to an emote, a random out of datalong1, dataint1..dataintX will be sued as displayed emote.

Thanks to grz3s for testing

(based on commit [12576] - a9332b5)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2071] Change startup logo. Thank to all involved.

(based on commit [12579] - 7df4f52)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2072] 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>
[s2073] 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>
[s2074] 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>
[s2075] 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>
[s2076] Rename m_respawnAggroDelay to make it more generic

(based on commit [12584] - 8496e12)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2077] 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>
[s2078] 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>
[s2079] Restore nix build. Also forget to remove one MANGOSASSERT + cosmetic stuff

(based on commit [12588] - bcb98ed)

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

Enum place swap and a new include.

(based on commit [12589] - 0c97ffa)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[s2081] 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>
[s2082] 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>