[s1983] Fix order of gossip menu options. Thanks to X-Savior for testing

(based on commit [12462] - 51b8032)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1984] Handle GO Trap triggering like GO handling is expected

Thanks to Xfurry for testing.
Close cmangos/mangos-wotlk#111

(based on commit [12463] - 09352d8)

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
Add outcommented helper to assign zone/area to gameobject by guid

(based on commit ceb9305)

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
[s1985] Add GO-Casting to SCRIPT_COMMAND_CAST_SPELL

Close cmangos/issues#203

(based on commit [12467] - c10539a)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1986] Use normal cast time for triggered spells by default

Close cmangos/issues#195

Please report problems that might (or might not) arise

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

(based on commit [12468] - 47aa389)

Signed-off-by: Schmoozerd <schmoozerd@cmangos>
[s1987] Improve Waypoint Management

* Allow waypoints that have point-ids not from 1 to n
* Remove possibly bad sql-statements to "fix" the above property
* Simplify code a little bit

Remaining TODO: Bring commands up-to-date and also make things more simple instead of using the database to store visual waypoints

(based on commit [12469] - 382f837)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1988] Let Taunt behave more expectedly in case we have non-generic orientation settings

(based on commit [12470] - cd2e301)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1989] Add an additional wrapper to SetRespawnCoord

(based on [c12630] - 546ffc58bda69102b3e19bf068ed4501a566730d)

(based on commit [12471] - dc79347)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1990] Rework StopMove to not start movement if already stopped

thx to Schmoozerd for hint
thx to rsa for pointing to bug

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

(based on commit [12472] - c937eb7)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1991] Fix MoveGen's interrupting after last commit

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

(based on commit [12473] - baa6525)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1992] AI-Event throwing and receiving implementation

Add new AI hooks to
* SendAIEvent (either around the npc, or to a specified npc)
* ReceiveAIEvent (hook to receive sent events)

(based on commit [12474] - dffd521)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1993] Add ACTION_T_THROW_AI_EVENT and EVENT_T_RECEIVE_AI_EVENT to EventAI

Also introduce new target-type TARGET_T_EVENT_SENDER (only valid with EVENT_T_RECEIVE_AI_EVENT) to know who sent a received event

Note: This system is still in development, but this should already give many nice powers for first improvements and uses

Close cmangos/mangos-wotlk#110

(based on commit [12475] - d0816b7)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1994] Add support for client 1.12.3 (build 6141) to realmd

Note for backporting: part in game/SharedDefine.h might be required in tbc already, see cmangos/mangos-classic#24

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

(based on commit [12476] - dca6ad0)

Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
[s1995] Fix a VC90 compile problem. Also add some const correctness

(based on commit [12477] - 1ea0f45)

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