Commit Graph
17678 Commits
Author SHA1 Message Date
MitchesD 1de02764c7 Core/SmartScripts: added SMART_ACTION_SET_COUNTER and SMART_EVENT_COUNTER_SET
as per request of DB developers

(cherry picked from commit 23b1c042adbe3a460457aa11f017c90e6600bfa2)

Conflicts:
	src/server/game/AI/SmartScripts/SmartScript.h
2015-04-02 18:30:27 +02:00
click d8ef63040a Core/Packet: Correction to packetsize for SMSG_WEATHER 2015-04-02 02:46:25 +02:00
leak 7010671931 Core/Misc: Remove unused headers 2015-03-30 17:16:50 +02:00
click 50bbfeebb9 Core/Entities: Add player name and ID to GetXPrestBonus calculation-log 2015-03-30 02:06:07 +02:00
jackpoz de1cbf716d Core/Dungeon Finder: Allow to execute "lfg" commands from console 2015-03-29 20:50:17 +02:00
Gacko 1995dcab76 Fix non-pch build. 2015-03-29 20:11:14 +02:00
click e040c56d45 Core/Logger: Add basic account-info to addon-scans to make them a little bit more useful (@Aokromes, you can stop asking for this now...) 2015-03-29 19:19:45 +02:00
jackpoz be9294dc09 Core/Dungeon Finder: Restore ".lfg queue debug" logging additional information
Restore ".lfg queue" behavior to print additional debug informations when an additional argument is passed (any character/word will work).
2015-03-29 18:11:26 +02:00
Naios c386711972 CMake: Use source_groups to represent the source tree
* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471
2015-03-29 16:08:28 +02:00
Naios c61fac843b Core/Database: Return an unknown error code instead of false (0) if mysql_init failed.
* Thanks @et65 for noticing.
* ref #14139

(cherry picked from commit 83bbe00785a7ee7c8141d83bfe94a1415466c64d)
2015-03-29 15:04:51 +02:00
Naios 6486827204 Core/Database: Fix a mistake in 54ee5267244acac16
* Also use proper errno instead of 0 when reconnecting.
* Thanks @et65 for reporting
* ref #14139

(cherry picked from commit 47410157b1d1e51062732696ad5f457a69019ef4)
2015-03-29 14:28:18 +02:00
Naios 832234c47b Core/Log: Improve creation of log prefixes.
* this also fixes non whitespace seperated timestamps in logs after 95ebe4f31cba6b4772cfd19 @Aokromes
* remove an unnecessary stringstream in Log::outCommand
* delete copy constructor of LogMessage to prevent unwanted copies

(cherry picked from commit a2e280c8a8478bbe0652c1850b1a435abba79f93)
2015-03-28 17:29:56 +01:00
Naios 71c0d4f792 Core/Log: Fix linker errors that occur on msvc 12 lower then update 4
* http://stackoverflow.com/questions/4891067/weird-undefined-symbols-of-static-constants-inside-a-struct-class
* http://www-01.ibm.com/support/knowledgecenter/SSGH3R_8.0.0/com.ibm.xlcpp8a.doc/language/ref/cplr038.htm%23cplr038
* closes #14463
* ref #14317

(cherry picked from commit 9b0b1185e4f9eb48cd16237f7622204687b9c01a)

Conflicts:
	src/server/game/Server/WorldSocketMgr.cpp
2015-03-28 17:29:43 +01:00
Naios 11e1f4af60 Core/Database Improve commit 39bdd06446dc
* found a better way where no cast is needed.
* ref #14430

(cherry picked from commit 54ee5267244acac16e4b56342e64c0235ee0599b)
2015-03-28 17:25:16 +01:00
click 058457dda9 Core/Script: Fix non-PCH build 2015-03-27 21:38:23 +01:00
Naios 62a5ee8e2c Core/Database: Prepare statements at reconnect.
* Closes #14430

(cherry picked from commit 39bdd06446dc8ae6f19e017e4390bd2aa7834d03)
2015-03-27 15:38:58 +01:00
MitchesD eced90d4f8 Merge pull request #14149 from Rushor/Ending
Scripts/Bloodmyst Isle: Script Quest: Ending Their World
2015-03-26 15:08:23 +01:00
joschiwald 6777addbee Scripts/Spells: implement some eject passenger spells
(cherry picked from commit 766eb599ea5e7629ac7a98cf914d2877093a14fd)
2015-03-25 17:52:48 +01:00
cr4st 81dcfa4077 Core/Creature: fixed trigger visibility of vehicles
(cherry picked from commit 5cee106524d8d7e0048270042be9fd02ce399a21)
2015-03-25 17:52:10 +01:00
MitchesD 0659f5d823 Merge pull request #14048 from Rushor/Worgen
Scripts/Grizzlyhills: Spell: Infected Worgen Bite - Apply Spellscript and Transformation
2015-03-25 16:27:04 +01:00
Naios 0778cc3332 Core/DBUpdater: Use correct formatter for size_t
* thanks @DDuarte pointing this out.

(cherry picked from commit b2b8de5786364d81fbce643e8f00bcc0129ed760)
2015-03-24 22:02:08 +01:00
Naios 4201ca021b Core/DBUpdater: Add the possibility to limit the remove of orphaned entries.
* This will save you from loosing your update history if you use a repository in bad state (revision or branch) by mistake.
* Also turned 1 error message into a warning

(cherry picked from commit 966282fbed24a0d0cf8cb3e05b1849c3e6a0d1d6)
(cherry picked from commit 3ad7776d5061308d3e2b4ff9e3cbf67d48bffdd6)
2015-03-24 13:03:55 +01:00
tkrokli d1221e3433 [Core/Quest] Update quest Objective status Client side
by @untaught; closes #12172

AreaExploredOrEventHappens does not update client side, only server side.
Before adding this fix, it is necessary to complete the required number of kills
to receive the "discovery" Quest Objective Credit in player's Quest Log and on screen.
2015-03-22 06:32:18 +01:00
Naios 4fd51ab3b9 Core/DBUpdater: Use correct uint64 to store timestamps.
* Thanks @Shauren for pointing out.
* Also removes an invalid argument thanks @jackpoz for noticing.

(cherry picked from commit 8e48ef7863c5018aa185913ce6a616e46ef5b17e)
2015-03-22 01:33:58 +01:00
Rushor 5098aba840 Scripts/HellfireRamparts: Vazruden the Herald - Improve Reset-/ Aggrobehaviour
by @CDawg
2015-03-22 00:56:05 +01:00
Shauren 8bdd94f849 Core/DBUpdater: Fixed compile errors with boost 1.55 and VS 2013
(cherry picked from commit 495af75b7e21a2a84231b0540a6f2b9ed349ea58)
2015-03-22 00:35:05 +01:00
Naios 93457ac9d8 Core/Database: Fix some warnings on gcc
* warning: when initialized here [-Wreorder]
* thanks to @Vincent-Michael

(cherry picked from commit cff3910ec82b9f5ebc462a756ce39cc062120cfa)
2015-03-22 00:34:07 +01:00
jackpoz d888e4c7ad Scripts/Ulduar: Fix some Flame Leviathan issues
Fix some Flame Leviathan issues:
- Fix boss evading all the time due to bad Doors check
- Opened "Lightning Door" to other bosses only after boss dies
- Eject players from the vehicles when boss dies, make them untargetable and despawn them after 5 minutes (adjust the time to the blizzlike time of choice)
2015-03-21 23:57:49 +01:00
Naios 2bd1c8541d Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

(cherry picked from commit 352012e53173372ebc82898e1b6854c983b01b25)
(cherry picked from commit 1f7f9feafc3f5017d617634ae993d2cdf4430920)

For 3.3.5:
* Synchronized ConfigureBoost.cmake with 6.x, libboost-filesystem1.55-dev also added as dependency!

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 20:54:54 +00:00
MitchesD 3af363308a Scripts: remove whitespaces 2015-03-20 13:11:59 +01:00
MitchesD 7d3668b0b9 Merge pull request #14388 from Rushor/Spell
Scripts/Spells: Hand of Reins - Questsupport for 'Mounting Up'
2015-03-20 12:39:47 +01:00
Nyeriah ea78bce592 Scripts/ToC: The Lich King event should only be started by the announcer 2015-03-19 19:07:32 -03:00
ariel- 461daadcaf Split up LANG_MAP_POSITION to fix a crash when issuing .gps command 2015-03-19 06:08:27 -03:00
Nayd 2ac40775a2 Core/Spells: Implement HasAttribute() helper for SpellInfo for easier readability
Original code by @Shocker (6.x branch)
2015-03-18 23:16:39 +00:00
Naios e96676aedd Core/Misc: Fix some issues detected by static analysis
* Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
  -> This argument is passed by value, it makes no sence so set it to null here.

* Member variable 'instance_violet_hold_InstanceMapScript::bWiped' is not initialized in the constructor.

(cherry picked from commit 433bc289c2c82b7377ad0189e415a3ca070d220f)
2015-03-18 20:23:47 +01:00
Naios dfe5e1e561 Core/RemoteAccess: Remove an unused define in RASession
* probably fixes gcc compile after adding cppformat

(cherry picked from commit a610dea85c77da9ce6c2be5b10f8259e3f315227)
2015-03-18 16:38:38 +01:00
Naios fc665b14dc Core/Log: Readd include of <stdarg.h> to fix compile issues under gcc
(cherry picked from commit d64e6ffade392be32f634b32658a6e0353f369c1)
2015-03-18 15:37:43 +01:00
Rushor 588b92ee05 Scripts/Spells: Hand of Reins - Questsupport for 'Mounting Up'
by @untaught closes #3977
2015-03-18 13:11:09 +01:00
Rushor f1101b145b Scripts/Bloodmyst Isle: Script Quest: Ending Their World
closes #1815

* Add missing Waypoint
* Improve Aggrobehaviour
* Add BroascasttextIDs
* Update to current GUID-Handling

Original Patch by @trickerer
2015-03-18 12:11:13 +01:00
Shauren bba8555a29 Build fix 2015-03-18 11:47:30 +01:00
Carbenium 6757ef2217 Core/Authserver: Include cppformat 2015-03-18 03:01:39 +01:00
Carbenium 03176662d1 Merge pull request #14317 from Naios/typesafelog
Type safe logging
(cherry picked from commit cc0c9add5a3f3a17e19029ddcaa7e711040f4fc5)

Conflicts:
	src/server/bnetserver/CMakeLists.txt
	src/server/game/Server/WorldSocketMgr.cpp
	src/server/shared/Logging/AppenderDB.cpp
	src/server/worldserver/CMakeLists.txt
2015-03-18 02:59:40 +01:00
Naios 301ec0be56 Core/Game: Fix some issues detected by static analysis.
* Possible inefficient checking for 'list' emptiness.

* Variable '_scheduledScripts' is assigned in constructor body.
  Consider performing initialization in initialization list.

* Variable 'Text' is assigned in constructor body.
  Consider performing initialization in initialization list.

* Possible inefficient checking for 'm_loadedScripts' emptiness.

(cherry picked from commit 9a61049f88835fd6bdb75905f042583d038d0667)

Conflicts:
	src/server/game/Server/Packets/TicketPackets.cpp
2015-03-18 01:13:47 +00:00
Naios a38945a3b3 Core/Log: Fix some issues detected by static analysis.
* Either inefficient or wrong usage of string::find(). string::compare() will
  be faster if string::find's result is compared with 0, because it will not scan the whole string.
  If your intention is to check that there are no findings in the string,
  you should compare with std::string::npos.

* C-style pointer casting detected. C++ offers four different kinds of casts as replacements:
  static_cast, const_cast, dynamic_cast and reinterpret_cast.

(cherry picked from commit 8882a6ca78e90d2980a3cd8d53acea9d2137f8b8)
2015-03-18 01:13:46 +00:00
Nyeriah a76722ccef Scripts/Undercity: Update Lady Sylvanas' script and also implement few missing things to Journey to Undercity's quest end event
Closes https://github.com/TrinityCore/TrinityCore/pull/14094
Thans to @Killyana @Rushor @jaredjones and all others who helped with this
2015-03-17 20:18:09 -03:00
Duarte Duarte 769acfbd02 Merge pull request #14370 from Kittnz/realm_achievement
Core/Condition: Realm Achievement condition
2015-03-17 12:42:35 +00:00
Rushor f723b18164 Scripts/Borean Tundra: Enable Texts for 'Nesingwary Trapper'
by @Killyana + @danlapps
closes #10234
2015-03-17 00:05:06 +01:00
Kittnz e50489c010 Core/Condition: Added Realm Achievement condition
- Partly Fixes https://github.com/TrinityCore/TrinityCore/issues/5754
@DRJ has SQL examples
2015-03-16 20:03:49 +01:00
joschiwald d3ad87b1cf Core: silence broadcasttext startup errors 2015-03-16 14:18:31 +01:00
click cf14e9051d Merge pull request #14371 from Kittnz/movecirclepath_003
Core: Move FillCirclePath function to MotionMaster
Closes #14371
2015-03-15 21:32:35 +01:00