Downgrade mechanic of spell 27819 to TBC times
[s1570] Improve support for wild summoned GOs

* Support GetGameObject for wild summoned GOs
* Proper delete WildSummoned GOs after they are used

(based on commit 4784c49)
[s1571] Fix targeting of most pet spells. They expect to target alive pets

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 65e675e)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1572] Fix DB_STRICTED_CHECK output for gossip

This fixes to integrity check to report unused gossip_menu entries. Before only menus used by creatures with gossip_menu_items were reported

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 7f06eff)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1573] Add new SCRIPT_COMMAND_SEND_TAXI_PATH to trigger a taxi path

Idea for this patch by Klark20 (maybe he also was the author of this patch as well, I cannot check in this moment)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 11d92a9)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1574] Implement support for go_template_scripts

Add a new table `gameobject_template_scripts` to start scripts for any type gameobject.
Scripts in this table are triggered for all gameobjects on GameObject::Use

Note: The table `gameobject_scripts` is expected to not be required very much longer, and will most likely be removed someday

(based on commit 62a00dc)
[s1575] Improve targeting for spells with TARGET_TOTEM_* targets

(based on commit b6db6c7)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1576] Fix possible memory leak in .gameobject add command

Thanks to Kid10 for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 74e9f84)
[s1577] Fix a bug in SCRIPT_COMMAND_TEMP_SUMMON_CREATURE

Now despawn-time will be treated as TEMPSUMMON_DEAD_DESPAWN as expected. Thanks to Xfurry for pointing.
Also make the DB-scripts work only with players on the map. This might affect a few rare scripts, especially related to far-teleport

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 6ba045b)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1578] Add support to call spell_scripts in more cases

* Support to script Dummy spells with spell_scripts
* Support to script TriggerSpell spells which have no existing triggered spell
Note that the order which spell-effect actually triggers the DB script is well-defined (SCRIPT_EFFECT before DUMMY before other)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit bbd49f6)
(based on commit 804741c)
[s1579] More db-script command changes

* Allow SCRIPT_COMMAND_KILL_CREDIT to give the kill of an involved npc.
  This is marked by datalong (creature-entry) == 0
* Remove immediate execution of commands. This will prevent infinite loops when db-scripts trigger db-scripts which are executed immediately
* Add check for SCRIPT_COMMAND_PLAY_SOUND
* Add check to catch an invalid command

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 1bf4280)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1580] Use unMaxTargets for GO-target fills

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 8129ca3)
[s1581] Fix some spell targeting

* Implement Target Type 51 as TARGET_AREAEFFECT_GO_AROUND_SOURCE
* Support spells that fill AoE targets based on source location
Thanks to Reamer for discussing these changes

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 534a25d)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1582] Implement creature_linking by guid

(based on commit 519842b)
[s1583] Fix following for guid linked npcs on evade

Thanks to grz3s for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit e515ced)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1584] cleanup EffectResurrect

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(based on commit 871a29a)

Signed-off-by: Nighoo <nighoo@gmail.com>
[s1585] Implement spell 45204

Original author Wowka321, thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
Signed-off-by: Nighoo <nighoo@gmail.com>
Merge git://github.com/mangos-one/server