Commit Graph

18892 Commits

Author SHA1 Message Date
Keader
994eab6bae Core/Pet: Fixed pets dont lose auras on join arena (#17185) 2016-06-16 16:51:18 +01:00
mik1893
fd88a67182 Core/Spells: Implement SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER (#17160)
* Core/Spells: Implement SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER
Closes #14972
2016-06-14 20:06:00 +01:00
ariel-
d1d0c64ad1 Core/Scripts: Extended SMART_ACTION_SET_INST_DATA to also set BossStates. (#16739)
Scripts/Dire Maul: Initialize boss states array so it may be called from SmartAI. (Ref #6429)
2016-06-14 17:29:51 +01:00
xjose93
e2c0189927 Core/Commands: Implement .neargraveyard (find nearest graveyard from dbc). (#17301) 2016-06-14 17:23:45 +01:00
Andrew Letson
8e84603090 Core/Scripts: Migrate Professor Dabiri to SAI (#17367)
- removes Professor Dabiri from zone script and adds him to smart_scripts.
- also removes one more line of hardcoded text in core scripts
2016-06-14 16:34:10 +01:00
JamminWidYou
3002839bfe [3.3.5] Core/Quest: A life without regret (#16067)
* Life without Regret

* misc changes to sql

* sql changes
2016-06-14 12:48:28 +01:00
Alan Deutscher
2df6a9126a Adjustment to Player::SetViewpoint to allow for Mind Vision "hops". (#17041)
* Adjustment to Player::SetViewpoint to allow for Mind Vision "hops".

* Dynamic objects should not be a valid viewpoint for spells like Mind Vision.

* Dynamic objects should not be a valid viewpoint for spells like Mind Vision.

* Removed redundant TYPEMASK_PLAYER check.

* Moved SetSeer outside of if statement.
2016-06-14 08:40:14 +01:00
Shauren
f765e8eb73 Core/Spells: Fixed all cases of spells that crash the client when pressing ESC after being cast 2016-06-13 22:02:44 +02:00
treeston
813e33b927 Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331. 2016-06-13 11:29:12 +02:00
ariel-
f03dc79959 Core/Script: moved SAI to cpp for The Etymidian, closes #17053 (#17330) 2016-06-13 09:16:58 +02:00
mik1893
3d31e2a157 Core/Spells: fix issue with Illumination talent (broken in #17122) (#17350) 2016-06-12 10:47:29 +01:00
Aokromes
cc521d49dc Scripts/UtgardePinacle: Adjust King Ymiron boundaries 2016-06-12 09:54:56 +02:00
tkrokli
d6f0e74cdb Core/Scripts: move script 'npc_plucky' to DB/SAI (#17071)
1 more text line removed in the ongoing series: "Remove hardcoded text from core scripts".

Core script for "Plucky" Johnson :
- move the actual gossip handling to DB
- create new gossip_menu_option entry
- link the option to gossip_menu.text_id
- add correct default gossip to the NPC
- create SAI script with alternate emotes
- add condition check for quest taken
- remove the script from zone script
- extra enum cleanup in zone script
2016-06-12 08:36:42 +02:00
tkrokli
28a3c9f652 [3.3.5] Core/Scripts: move druid FP NPC scripts to DB/SAI (#17134)
Move 2 core scripts to DB / SAI:
- npc_bunthen_plainswind (NPC 11798)
- npc_silva_filnaveth (NPC 11800)

Additional result: remove 4 hardcoded text lines.

Target: remove lines from the list http://pastebin.com/x7wZLpxH
2016-06-12 08:32:48 +02:00
Tiuz90
588f0663ce [Core/Spells]Warrior, fixed bladestorm aura remove due to weapon swap (#16873) 2016-06-11 10:02:28 +01:00
SnapperRy
2db9269ec1 Core/Movement: interrupt a creature's current cast when fleeing for assistance, and (if spell is not castable while moving) when running random/fleeing movement generators. (#17271)
Also make sure the creature is alive before updating.

Fixes #12823.
2016-06-10 20:03:30 +01:00
treeston
19fa504ff5 Entities/Unit: Fix speed update packets if player is being moved by something else.
Closes #17184
Closes #17254
2016-06-10 19:17:34 +02:00
mik1893
7db377c7f9 Merge pull request #17266 from SnapperRy/quest_update
Core/Quest: send SMSG_QUESTGIVER_STATUS_MULTIPLE after a quest is rewarded.
2016-06-09 17:00:00 +01:00
mik1893
8457829516 Merge pull request #17312 from Keader/anub
Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell
2016-06-09 16:29:38 +01:00
Keader
3c35ce06af Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell 2016-06-09 09:49:41 -03:00
treeston
c6606b7615 Merge remote-tracking branch 'tkrokli/npc_locksmith' into 3.3.5 (PR #17099) 2016-06-09 13:19:17 +02:00
treeston
fed852e614 Merge remote-tracking branch 'tkrokli/npc_grandmother_gossip' into 3.3.5 (PR #17316) 2016-06-09 13:13:11 +02:00
treeston
270b3100b0 Merge remote-tracking branch 'tkrokli/npc_gregan_brewspewer_gossip' into 3.3.5 (PR #17157) 2016-06-09 13:08:19 +02:00
treeston
b0432eb4bc Merge remote-tracking branch 'tkrokli/npc_sayge' into 3.3.5 (PR #17101) 2016-06-09 13:04:05 +02:00
mik1893
b0e7b45840 Merge pull request #17281 from SnapperRy/delay_flee_for_assist
Core/SmartAI: delay SMART_ACTION_FLEE_FOR_ASSIST if creature is rooted or stunned
2016-06-09 12:01:26 +01:00
treeston
3358e943a2 Merge remote-tracking branch 'tkrokli/boss_majordomo_gossip' into 3.3.5 (PR #16726) 2016-06-09 12:52:22 +02:00
treeston
2910fa67d3 Merge remote-tracking branch 'tkrokli/zone_loch_modan' into 3.3.5 (PR #16715). 2016-06-09 12:45:13 +02:00
tkrokli
c214f987d7 Core/Scripts: npc_grandmother gossip text moved to DB
Removing one more hardcoded text line from core scripts.
Also adding correct gossip to the npc_grandmother script.

Gossip changes in this script:
- remove hardcoded text from core script
- use existing npc_text IDs in gossip enum
- add missing text rows to gossip_menu_option
- use values from gossip_menu_option in enum
- replace spawn coordinates 0.0f with GetPosition()
2016-06-08 21:59:24 +02:00
mik1893
7c25f3cffd Merge pull request #16969 from tkrokli/cant_do_this_while_moving
Core/Movement: enable item use and spell cast when dismounting
2016-06-07 20:45:25 +01:00
Shauren
8716ce2341 build fix 2016-06-07 21:26:46 +02:00
DDuarte
a953b5901a Core/Items: Missing renames 5faaddcf6b 2016-06-07 18:32:05 +01:00
DDuarte
5faaddcf6b Core/Items: Rename some ITEM_PROTO_FLAG
Source: vanilla alpha pdb
2016-06-07 18:28:31 +01:00
Shauren
4b00ca0299 Core/GameObjects: Update GameObjectTemplate structure and defined more GO flags 2016-06-07 18:59:11 +02:00
treeston
e5382ee215 Scripts/Instances: Fix a bug that would cause the Hodir encounter to never properly begin. Tagging issue #17302. 2016-06-07 14:17:11 +02:00
treeston
96c05dbec0 Scripts/Outland: Fix a potential crash. Closes #17308. 2016-06-07 12:41:38 +02:00
Snapper
114f4c9715 Core/Quest: send SMSG_QUESTGIVER_STATUS_MULTIPLE after a quest is rewarded.
This updates the status of nearby questgivers and prevents them from being stuck in a state that's no longer valid (for example, stuck with yellow question mark until area update).
2016-06-07 10:22:23 +02:00
jackpoz
7ff0f3c65f Core/Player: Fix duel edge case crash
Fix a crash that could be triggered if an aura removed after duel finished would have caused damage to one of the players.
2016-06-05 21:53:38 +02:00
treeston
2f0f30b9f7 Revert "PvP/Dueling: Fix an edge case crash that could happen if a duel ended while an aura effect was being removed (Living Bomb, Unstable Affliction and similar). Closes #17177."
This reverts commit 73cfbdcf9f.
2016-06-05 19:18:52 +02:00
treeston
73cfbdcf9f PvP/Dueling: Fix an edge case crash that could happen if a duel ended while an aura effect was being removed (Living Bomb, Unstable Affliction and similar). Closes #17177. 2016-06-05 18:37:48 +02:00
tkrokli
b6d43623a2 Core/Scripts: boss_majordomo hardcoded text
2 more text lines removed in the ongoing series:
"Remove hardcoded text from core scripts".

Core script for boss Majordomo Executus:
- add missing gossip_menu_option entries
- link the options via the table gossip_menu
- remove hardcoded text from the script
- minor enum line order sorting cleanup
- replace OnGossipSelect() with sGossipSelect()

The scripted events are unchanged.
If the script is inaccurate, make a new PR.
2016-06-05 18:29:57 +02:00
treeston
650d7ab596 Scripts/BlackrockMountain: Nefarian. (#16346 f-u) 2016-06-04 22:21:49 +02:00
treeston
83e5df5638 Scripts/MoltenCore: Fix Ragnaros (#16346 follow-up). 2016-06-04 22:17:06 +02:00
treeston
27a3eaab33 Scripts/Instances: More #16346 follow-ups. Fixed this time: Halls of Reflection, Ignis the Furnace Master, Mimiron and Rend Blackhand. 2016-06-04 22:14:32 +02:00
Snapper
aaf10dccb0 Core/SmartAI: delay SMART_ACTION_FLEE_FOR_ASSIST if creature is rooted/stunned.
Prevents creatures from teleporting around when fleeing while stunned/rooted.
2016-06-04 21:17:15 +02:00
Snapper
30313fba8d Core/Player: Added support cast spell for some class spells
(Warrior's Battle Stance and Death Knight's Blood Presence) on first login.

(cherry-picked from commit c8eb69df10)

Closes #17232
2016-06-04 19:31:29 +01:00
jackpoz
1347d7cf7a Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.
2016-06-04 15:01:39 +02:00
Aokromes
069e1c8120 Update worldserver.conf.dist 2016-06-04 12:49:39 +02:00
Duarte Duarte
3ae1016082 Implement real time statistic visualization (#16956)
Docs at https://trinitycore.atlassian.net/wiki/display/tc/Monitoring+a+TrinityCore+server

* Common/Graphs: Initial proof of concept

* Move influx db code to its own class

* Reuse the same socket

* Allow to log values of different categories

* Allow to log events

* Pass the timestamp to influxdb

* Send events in batches

* Send data async

* Log server shutdown.
Fix memory leak.

* Allow to enable/disable Stats in the settings and at runtime

* Read interval between each batch send from config

* Add InfluxDB connection info to configs

* Move each event category to its own table

* Log pathfinding queries

* Move categories table initialization to constructor using enum as key to avoid assigning the table name to the wrong enum value

* Log player login/logout events.
Pass the hostname correctly in the HTTP request.

* Fix linux build

* Handle "Connection: close" HTTP header, reconnecting on next scheduled send.
Disable StatsLogger if connection fails, logging the error.

* Add an enum for categories of logged values, it's still possible to pass a string instead of the enum.

* Don't log the whole batchedData when InfluxDB returns an error, it's too long and unreadable on console.

* Allow to call a function at a specified interval in thread-safe World::Update() context to log data like player count.

* Log map tile load/unload

* Core/StatsLogger: Allow logging more value types other than ints

https://docs.influxdata.com/influxdb/v0.10/write_protocols/write_syntax/

* Fix a typo in string escape of StatsLogger

* Yet more fixes to the escaping in FormatInfluxDBValue

* DB/Gameobject: Fix respawn time of few Quest GameObjects

By Tauriella, closes #16701

* DB/Misc: Fix some engrish

By tkrokli closes #16648

* Tools/MMaps: Add format library linking to mmaps_generator

(Very) partial cherry pick of ed75b0649a

* Core/StatsLogger: Simplify code

Convert values and categories arrays to maps initialized in-place
Remove constructor and destructor

* Core/StatsLogger: Add realm name to the event and value tags

* Log amount of processed packet of each session

* Apply recent singleton changes to sStatsLogger too

* Fix influxdb data format if no realm name is present

* Remove unneeded newlines from request body, fixes response 400 from InfluxDB 0.10

* Rename Reporting folder to Metric

* Rename StatsLogger to Metric

* Rename InfluxDB configs to Metric

* Add Grafana dashboards

* Add a random annoying macro

* Move string formatting to Metric::SendBatch(), reducing performance footprint of Metric::LogEvent() and Metric::LogValue()

* Update grafana graphs refresing tags on load and showing now-15m data, refreshing every minute. These settings can be modified in grafana.

* Rename MetricData fields

* Contrib/Grafana: Rename dashboard files

* Contrib/Grafana: Replace hardcoded Windows/Ubuntu realm names by the default, Trinity

* Config/Worldserver: Add missing section to the index

* Contrib/Grafana: Add singlestat panels with current online players, update diff averages (1 min, 5 mins and 15 mins)

http://i.imgur.com/Zi8lfvS.png

* Core/Metric: Replace the enums MetricEventCategory and MetricValueCategory by strings

For the sake of simplicity and less recompile time when adding new metrics, similar to how TC_LOG_* works

* Contrib/Grafana: Display the current number of online players and not its average

Closes #15075
2016-06-04 11:23:29 +01:00
treeston
123e45c119 AI/SmartScripts: Add action_param3 "disablePathfinding" to SMART_ACTION_MOVE_TO_POS (69). 2016-06-04 00:51:19 +02:00
treeston
7fbd70d4c4 Compiler warning fix. 2016-06-03 22:41:30 +02:00