Merge pull request #10 from wowpsp/master

Merge branch 'master' of https://github.com/cmangos/mangos-classic
[z2403] Fix crash due to bad compiler

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

(based on commit [12551] - 0f2ff2f)

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

(based on commit [s2056] - 29eaeff)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2404] Unify text-display functions

Remove MonsterText, MonsterYell, MonsterEmote, MonsterWhisper functions (int32 entry versions) and replace with a generic MonsterText function

Partly implement cmangos/mangos-wotlk#123

(based on commit [12552] - 0af90d6)

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

(based on commit [s2057] - 25bc9f6)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2405] Fix some target-type handling for EventAI

Also increase log-output for bad target-types

(based on commit [12553] - b3402a7)

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

(based on commit [s2058] - 195891c)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2406] EventAI - Add more developing error output

(based on commit [12554] - 8af1dcf)

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

(based on commit [s2059] - 69ab9e8)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2407] FindOpenSSL.cmake already ships with CMake

No reason for us to ship it too. Also, we had an outdated version which
had not been used anyway, because we set the include path in such a way,
that the CMake delivered version is always found first.

(based on commit [12555] - 1e6a4a5)

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

(based on commit [s2060] - 0560c23)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2408] FindGit.cmake already ships with CMake

No reason for us to ship it too. Also, we had an outdated version which
had not been used anyway, because we set the include path in such a way,
that the CMake delivered version is always found first.

(based on commit [12556] - a7eece3)

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

(based on commit [s2061] - d164416)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
[z2409] EventAI - Ingame output of script state

With this the command .npc aiinfo will give more output about the current state.
Remark that this output is only given if the LogFilter for EventAIDev mode is disabled

(based on commit [12557] - 1b791bc)

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

(based on commit [s2062] - a559d7c)

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

(based on commit [s2063] - 0907fd5)

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

(based on commit [s2064] - 742a166)

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

(based on commit [s2065] - 066b0d9)

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

(based on commit [s2066] - 71f4196)

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

(based on commit [s2067] - 8e90412)

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

(based on commit 5fef6f5)

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

(based on commit [s2068] - fd09b3a)

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

Thanks VladimirMangos

(based on commit c8e6d97)

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

(based on commit [s2069] - 167e166)

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

(based on commit [s2070] - e2c9ce6)

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

(based on commit [12579] - 7df4f52)

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

(based on commit [s2071] - 5f42ab5)

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