Commit Graph

26466 Commits

Author SHA1 Message Date
MitchesD
c7dded13a7 Rename 2016_03_03_00_world.sql to 2016_03_03_00_world.sql 2016-03-03 17:37:16 +01:00
Dr-J
8aabb087f0 DB/Quest: Troll Patrol: Can You Dig it?
Script http://www.wowhead.com/quest=12588/troll-patrol-can-you-dig-it
Also fixes http://www.wowhead.com/quest=12519/troll-patrol-whatdya-want-a-medal
And fixes some issues with http://www.wowhead.com/quest=12568/troll-patrol-done-to-death

Also fixes run time error 'able `event_scripts` has gameobject type (175584) unsupported by command SCRIPT_COMMAND_RESPAWN_GAMEOBJECT for script id 4845'
2016-03-03 15:28:35 +00:00
Naios
62815c6e1c Core/Database: Use RAII for resource management in MySQLConnection
* Prevents double deletion of MySQLConnection after errors
* The object stays valid after an error and will wait for a reconnect
* Also crash the server if 5 reconnects fail
* Corrects an issue where the server was crashed after one reconnect
  because mysql_thread_id was invoked with an invalid handle
2016-03-03 01:19:58 +01:00
Naios
09fa0ab46a Core/Database: Move DatabaseWorkerPool into it's own translation unit 2016-03-03 01:06:13 +01:00
Naios
5ed0180994 Core/Database: Use RAII instead of raw pointers for resource management
* Corrects dirty usage of vectors with array indexes
* Removes _connectionCount which is now handled through the vector size
* Rename magic identifier "t" to "connection"
2016-03-03 01:06:13 +01:00
Naios
7d3cffc297 Core/Database: Close the databases correctly when the DBUpdater fails
* Also fixes a memory leak spotted by Aokromes
2016-03-03 01:06:13 +01:00
Treeston
472e78d682 Merge pull request #16676 from ccrs/summonsinit
Core/TempSummons: avoid use MoveInLineOfSight before InitSummon
2016-03-02 23:54:37 +01:00
Shauren
0e9b34ff05 Merge pull request #16711 from ariel-/conditionmerge
[3.3.5 only] Core/Conditions: Improved mergeability between branches
2016-03-02 16:55:22 +01:00
ariel-
2f1451f188 Rename 2016_99_99_99_world_335.sql to 2016_03_02_00_world_335.sql 2016-03-02 12:23:05 -03:00
ariel-
d573bd2fe7 Core/Conditions: Improved mergeability between branches 2016-03-02 10:57:14 -03:00
treeston
224b42c53a Util/Random: Add randtime(Milliseconds const&, Milliseconds const&) to supersede urandms(uint32,uint32) for scripts being ported to std::chrono. 2016-03-01 23:09:25 +01:00
ccrs
6a339ed5c9 Core/TempSummons: avoid use MoveInLineOfSight before InitSummon 2016-03-01 21:20:47 +01:00
Dr-J
45c911ba94 DB/Quest: Troll Patrol / Congratulations
* Congratulations only available if a version of troll patrol is complete
* Pooling for Troll Patrol quests
2016-03-01 20:03:36 +00:00
treeston
89e2afb8f9 Core/Creature: Prevent friendly vehicles from trying to attack their rider after dismounting. 2016-03-01 20:12:46 +01:00
Nyeriah
ecd9dec384 Scripts/Karazhan: Use the correct method to access Opera's side entrance door 2016-03-01 12:38:09 -03:00
joschiwald
47f628353b Merge pull request #16706 from tkrokli/zulaman_sound_duplicates
Core/Scripts/Zul'Aman: sound handled in creature_text
2016-02-29 23:58:44 +01:00
tkrokli
c897988a7e Core/Scripts/Zul'Aman: sound handled in creature_text
- Sound playback is handled via creature_text
- remove `DoPlaySoundToSet()` to avoid duplicate playback
- remove redundant 'me' parameter from `Talk()` entries
2016-02-29 19:31:47 +01:00
Kittnz
3b389b7a5c DB/Event: Removed remaining gameobject that are no longer present ingame 2016-02-29 17:56:25 +01:00
Aokromes
b646bcbb91 Update boss_nalorakk.cpp 2016-02-29 03:45:14 +01:00
Aokromes
24e996811d Rename 2016_02_29_ZULAMAN_world.sql to 2016_02_29_00_world.sql 2016-02-29 03:43:11 +01:00
Aokromes
1359a55aa2 Merge pull request #16704 from tkrokli/zul_aman_text_cleanup
Core/Scripts: Zul'Aman boss script text cleanup
2016-02-29 03:40:24 +01:00
tkrokli
9806f7812a Core/Scripts: Zul'Aman boss script text cleanup
Replacing more hardcoded text with DB entries.
A little bit extra enum alignment and sorting.
2016-02-29 03:16:23 +01:00
Nyeriah
f9eff81388 Scripts/Karazhan: Clean up instance script
Closes: #16533
2016-02-28 11:49:48 -03:00
Aokromes
5accd69863 Merge pull request #16692 from tkrokli/headless_horseman_emote
Core/Scripts/boss_headless_horseman: remove hardcoded text
2016-02-28 13:32:54 +01:00
Aokromes
3abfbeae6f Rename 2016_02_28_CLEAN-UP_world.sql to 2016_02_28_00_world.sql 2016-02-28 13:09:15 +01:00
Aokromes
2387dbdda9 Merge pull request #16699 from tkrokli/triple_zone_cleanup
Core/Scripts: triple zone cleanup
2016-02-28 13:07:43 +01:00
tkrokli
6ffac018dd Core/Scripts: triple zone cleanup
Remove hardcoded (as well as deprecated) text in the following places:
- blackrock_depths.cpp
- zone_burning_steppes.cpp
- zone_stormwind_city.cpp

Updates https://github.com/velinath/TrinityCore/issues/2
2016-02-28 12:25:23 +01:00
treeston
59d02322a7 Unit/AI: Making Nayd happy. 2016-02-28 03:45:21 +01:00
tkrokli
1602be1253 Core/Scripts/boss_headless_horseman: remove hardcoded text
Remove the old
`#define EMOTE_LAUGHS    "Headless Horseman laughs"`

No emote is ever used on retail. It would have created log spam.
2016-02-28 03:23:36 +01:00
treeston
bfac62c5c9 Fix some behavioral weirdness resulting from 79a945d5 - thanks ccrs. 2016-02-28 01:56:13 +01:00
treeston
5354b585e3 Unit/AI: Move CharmedPlayerAI logic from the SetCharmedBy/RemoveCharmedBy hooks to Player::Update -> Unit::UpdateCharmAI to guarantee thread safety and prevent race condition crashes. 2016-02-27 23:48:10 +01:00
joschiwald
ffdf75a233 Scripts/Spells: Glyph of Arcane Shot is affected by own debuffs on target only 2016-02-27 17:55:43 +01:00
joschiwald
9beeca79ac Core/Logging: fixed default logger (partial reverts 0904858624) 2016-02-27 17:47:35 +01:00
joschiwald
75511d0e0a Core/Gossips: fixed long time not seen typo in c81d6e9b4b 2016-02-27 17:32:06 +01:00
Treeston
79a945d5e5 Merge pull request #16666 from Treeston/3.3.5-bodypull
[3.3.5] Fix bosses losing interest in the person running at them
2016-02-27 15:59:43 +01:00
jackpoz
31cd082833 Scripts/Ulduar: Fix crash
Change an assert to a NULL check on Flame Leviathan vehicle kit, it can be NULL on map unload.
Close #16662
2016-02-27 12:02:32 +01:00
treeston
8267e493d1 DB/Spells: "Val'anyr, Hammer of Ancient Kings" now properly shields targets healed by Glyph of Holy Light, Earth Shield and others.
Fixes & closes #16478.
2016-02-27 01:22:59 +01:00
r00ty-tc
10550fe8cf Solve many of the creature falling through floor issues.
This seems entirely wrong to discount the returned map height if we're
already below it. In many cases this is exactly why we want the height!
2016-02-26 22:02:20 +00:00
Nyeriah
1c86d286d4 DB/EventScripts: Clean up the Scryer's Orb no longer used event script
* Ref #13208
2016-02-26 17:54:46 -03:00
Dr-J
50223ea04f DB/Quest: Bombard the Ballistae
Add missing visuals for http://www.wowhead.com/quest=12232/bombard-the-ballistae
2016-02-26 16:21:26 +00:00
Dr-J
a3b2144750 DB/Quest: Fire Upon the Waters
Properly script http://www.wowhead.com/quest=12243/fire-upon-the-waters 
1) Delete the kill credit npcs which do not exist in sniff
2) Spawn the proper bunnies for this quest
3) Add missing burning effect
2016-02-25 23:29:52 +00:00
Shauren
85c912c404 Core/Misc: Added Convenience methods removing auras by predicate
(cherry picked from commit 0953bcf73f)
2016-02-25 21:01:38 +01:00
treeston
d1a9d7765c Merge remote-tracking branch 'tkrokli/redemption_tirions_tale' into 3.3.5 (PR #16680) 2016-02-25 20:47:54 +01:00
MitchesD
dff12f837f Rename 2016_02_29_29_world.sql to 2016_02_25_00_world.sql 2016-02-25 20:42:15 +01:00
MitchesD
b7e93f68c3 Merge pull request #16671 from tkrokli/zone_terokkar_forest
Core/Scripts: zone_terokkar_forest cleanup
2016-02-25 20:41:39 +01:00
tkrokli
7c9a26c608 Core/Scripts: move npc_tirion_fordring to DB/SAI
This removes the current core script npc_tirion_fordring
and replaces it with database entries in:

- `conditions` 9 (quest taken) + 41 (unit_state)
- `gossip_menu_option` (3502,3681,3682,3683)
- `smart_scripts` (SmartAI)

Gossip text / `npc_text` is already in the database.

Closes  #16430 (my old attempt at removing hardcoded text)
2016-02-25 20:06:16 +01:00
Treeston
b6720af4cb Merge pull request #16457 from Treeston/3.3.5-standstatecondition
[3.3.5] Add condition for unit sitting/standing
2016-02-25 19:00:20 +01:00
treeston
ea53f79aaf DB/Conditions: Add new CONDITION_STAND_STATE (41). value1 selects the type of state check to apply, value2 specifies the particular state we are looking for.
Valuing: 0,x: has exactly state x; 1,0: any standing state; 1,1: any sitting state;
2016-02-25 19:01:21 +01:00
Aokromes
2eb9621f19 Core/Misc: fix header 2016-02-25 09:34:24 +01:00
Aokromes
b1eff7c1f8 Core/Misc: fix header 2016-02-25 09:33:39 +01:00