aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/MapScripts.cpp
AgeCommit message (Collapse)Author
2016-04-11Core/Game: Move MapScripts to game/MapsNaios
* Since this class implements methods of the Map class
2016-01-26Core/Scripts: SMSG_PLAY_ONE_SHOT_ANIM_KIT corrections. Thx to ArciLopfest
2016-01-26Core/Scripts: SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scriptsLopfest
2016-01-01Update copyright note for 2016Vincent-Michael
Happy new year (Again new year with idiots ...)
2015-07-25Core: Header cleanup in game/*/*.cppVincent-Michael
2015-06-15Core/PacketIO: Fixed chat packet building in CreatureTextMgrShauren
Closes #14871
2015-06-08Core/Maps: Removed dbguid/spawnid grid searchers, they are no longer neccessaryShauren
2015-05-03Fix warningGacko
2015-04-28Core/Entities: Reworked guid scopesShauren
* Added ObjectGuid traits to easily access whether guid type can be generated globally (ObjectMgr) or not * This adds separate (per map) guid sequences depending on object type * Ported map object container from cmangos/mangos-wotlk@a2d396eb0bb195efc460944dd4e0fab2a858b300 * Added type container visitor for TypeUnorderedMapContainer * Implemented helper function to erase unique pairs from multimap containers * Moved object storage of all objects except players and transports to map level * Added containers linking database spawn id with creature/gameobject in world * Renamed DBTableGuid to spawnId * Added a separate spawn id sequence generator for creatures and gameobjects - this will be used in db tables * Moved building SMSG_UPDATE_OBJECT - updatefields changes broadcast to map update
2015-01-01Update copyright note for 2015Vincent-Michael
Happy new year
2014-10-29Core/Entites: Updated GUID formatShauren
2014-10-27Core: Fix warnings, mostly wrong printf formattersDDuarte
2014-10-27Core/Entities: Updated HighGuid valuesShauren
2014-10-26Core/Entities: Changed object lowguid to uint64Shauren
2014-10-23Core/Entities: Second part of required database changes for migrating guids ↵Shauren
to 128 bit - all fields storing lowguid must be extended to uint64
2014-10-22Core/Entities: Sixth part of removing GetGUIDLow() usesShauren
2014-10-21Core/Entities: Second batch of removing implicit conversions of ObjectGuid ↵Shauren
to uint64
2014-09-19Core/MapScripts: Use proper enum value for boss whisper in SCRIPT_COMMAND_TALKDDuarte
2014-09-19Core/MapScripts: Use proper source unit in SCRIPT_COMMAND_TALKDDuarte
Closes #13161
2014-09-16Merge branch 'ObjectGuid' of https://github.com/TrinityCore/TrinityCoreShauren
Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Player/Player.h src/server/game/Scripting/MapScripts.cpp src/server/scripts/Northrend/Naxxramas/instance_naxxramas.cpp src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp src/server/scripts/Northrend/Nexus/Nexus/boss_anomalus.cpp src/server/scripts/Northrend/Nexus/Nexus/boss_magus_telestra.cpp src/server/scripts/Northrend/Nexus/Oculus/boss_varos.cpp src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp src/server/scripts/Northrend/Ulduar/Ulduar/boss_auriaya.cpp src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp src/server/scripts/Northrend/Ulduar/Ulduar/boss_hodir.cpp src/server/scripts/Northrend/Ulduar/Ulduar/boss_ignis.cpp src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_skadi.cpp src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_svala.cpp src/server/scripts/Northrend/UtgardeKeep/UtgardePinnacle/boss_ymiron.cpp
2014-09-14Core/Entities: Use ObjectGuid class in game projectShauren
2014-09-13Core/Chat: cleanup MonsterText methodsjoschiwald
2014-09-13Core/Scripts: Nuke db_script_string table and make SCRIPT_COMMAND_TALK with ↵DDuarte
broadcast_text instead Original code by @Ascathor with modifications Closes #13092
2014-08-06Core/Scripts: Fix possible crashjackpoz
Fix possible NULL dereference crash spotted by Coverity.
2014-07-17Buildsystem/MSVC: Warning fixesShauren
C4800 'type' : forcing value to bool 'true' or 'false' (performance warning) C4127 conditional expression is constant
2014-01-01Update copyright note for 2014.Vincent_Michael
Happy new year.
2013-12-25Core/Scripting: Replace casted with cast as casted is not a word.Malcrom
2013-12-23Core/Chat: Refactored building chat packetsShauren
* Moved everything into one specialized method instead of being scattered all over the place * Allow localizing creature names in chat messages (when using $N) * Send SMSG_GM_MESSAGECHAT for gm messages
2013-11-29Core/Scripts: Fix possible NULL dereferencesjackpoz
Fix possible NULL dereferences probably caused by a typo.
2013-11-08Core/Logging: Remove LOG_FILTER_XXX defines with it's value (remember logger ↵Spp
names are case-sensitive)
2013-10-16Core/TransportsShauren
* Rewritten path generation, now uses splines - timers are a lot more accurate now * Implemented stopping transports * Implemented spawning transports in instances * Implemented spawning gameobjects as transport passengers * Transport passengers are now stored in creature/gameobject table using gameobject_template.data6 from transport's template as map id
2013-06-30Core/Units: Removed most calls to SendMovementFlagUpdate for creaturesShauren
2013-06-11Core: Some function renaming.Malcrom
2013-05-13Core/Logging: Performance-related tweaks to logging systemSpp
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros. Memleak fix
2013-03-08First step of comment style refactoring to doxygen-style.Nefarion
2013-01-14Core/Misc: Apply codestyle to multiple filesSpp
2013-01-01Update copyright note for 2013.Vincent_Michael
Happy new year.
2012-11-27Core/Misc: Set mode 0644 for filesSpp
2012-11-20Core/Misc: Reduction of header dependencies - Step IISpp
2012-08-03Core/Logging: Add Asyncronous logging with Loggers ("What to log") and ↵Spp
Appenders ("Where to log") system. Will allow to select to full log some parts of core while others are not even logged. - Logging System is asyncronous to improve performance. - Each msg and Logger has a Log Type and Log Level assigned. Each msg is assigned the Logger of same Log Type or "root" Logger is selected if there is no Logger configured for the given Log Type - Loggers have a list of Appenders to send the msg to. The Msg in the Logger is not sent to Appenders if the msg LogLevel is lower than Logger LogLevel. - There are three (at the moment) types of Appenders: Console, File or DB (this is WIP, not working ATM). Msg is not written to the resource if msg LogLevel is lower than Appender LogLevel. - Appender and Console Log levels can be changed while server is active with command '.set loglevel (a/l) name level' Explanation of use with Sample config: Appender.Console.Type=1 (1 = Console) Appender.Console.Level=2 (2 = Debug) Appender.Server.Type=2 (2 = File) Appender.Server.Level=3 (3 = Info) Appender.Server.File=Server.log Appender.SQL.Type=2 (2 = File) Appender.SQL.Level=1 (1 = Trace) Appender.SQL.File=sql.log Appenders=Console Server (NOTE: SQL has not been included here... that will make core ignore the config for "SQL" as it's not in this list) Logger.root.Type=0 (0 = Default - if it's not created by config, server will create it with LogLevel = DISABLED) Logger.root.Level=5 (5 = Error) Logger.root.Appenders=Console Logger.SQL.Type=26 (26 = SQL) Logger.SQL.Level=3 (2 = Debug) Logger.SQL.Appenders=Console Server SQL Logger.SomeRandomName.Type=24 (24 = Guild) Logger.SomeRandomName.Level=5 (5 = Error) Loggers=root SQL SomeRandomName * At loading Appender SQL will be ignored, as it's not present on "Appenders" * sLog->outDebug(LOG_FILTER_GUILD, "Some log msg related to Guilds") - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomName is found but it's LogLevel = 5 and Msg LogLevel=2... Msg is not logged * sLog->outError(LOG_FILTER_GUILD, "Some error log msg related to Guilds") - Msg is sent to Logger of Type LOG_FILTER_GUILD (24). Logger with name SomeRandomeName is found with proper LogLevel but Logger does not have any Appenders assigned to that logger... Msg is not logged * sLog->outDebug(LOG_FILTER_SQL, "Some msg related to SQLs") - Msg is sent to Logger SQL (matches type), as it matches LogLevel the msg is sent to Appenders Console, Server and SQL - Appender Console has lower Log Level: Msg is logged to Console - Appender Server has higher Log Level: Msg is not logged to file - Appender SQL has lower Log Level: Msg is logged to file sql.log * sLog->outDebug(LOG_FILTER_BATTLEGROUND, "Some msg related to Battelgrounds") - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). As Logger has higher LogLevel msg is not sent to any appender * sLog->outError(LOG_FILTER_BATTLEGROUND, "Some error msg related to Battelgrounds") - Msg is sent to Logger root (Type 0) as no Logger was found with Type LOG_FILTER_BATTLEGROUND (13). Msg has lower LogLevel and is sent to Appender Console - Appender Console has lower LogLevel: Msg is logged to Console
2012-03-29Core/Game: Code style.Gyx
Signed-off-by: Gyx <2359980687@qq.com>
2012-03-07Warning fixes and some random cleanup here and thereSpp
2012-02-23Core: Random cleanup + compile fixShauren
2012-01-14Core/Movement: Implement spline movement subsystem.Machiavelli
Spline movement controls movements of server-side controlled units (monster movement, taxi movement, etc). Proper implementation of effects such as charge, jump, cyclic movement will rely on it. However, need improve our states system before. Technical changes: * Added linear, catmullrom and bezier3 splines which based on client's algorthims. They can be reused for proper transport position interpolation. * Precission increased. There are no more position desync issues since client's position calculation formulas used. * Now possible to move by paths with multiple points, send whole path to client. -- Original author of research and implementation: SilverIce. Massive kudos. Original port for Trinity (ref #4629) Chaplain and Venugh With the following incremental fixes during my review: - Restore flightmaster end grid pre-loading - Fix uninitialized Creature::m_path_id - Add missing trinity_string entries for .movegens command - Fix a bug in WaypointMovementGenerator that would trigger unexpected pausing at waypoints for various amounts of time Known issues: - Errors like WaypointMovementGenerator::LoadPath creature XXX (Entry: YYYYY GUID: ZZZZZZ) doesn't have waypoint path id: 0. This is caused by bad DB data. This commit didn't "break" it. Do not forget to re-run CMake before compiling.
2012-01-01Update headers for 2012. HAPPY NEW YEAR!!!kiper
2011-11-23Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of ↵Shauren
the same name in outer scope. from previous commit
2011-10-19Core/Grid:kaelima
- Simplified CellArea calculation (Original author: SilverIce) - Removed unused code in Cell class (Original author: SilverIce) - Improve some Visit functions.
2011-10-18Rename some classes in grid system.megamage
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-11Core/MapScripts: Fixed SCRIPT_COMMAND_QUEST_EXPLORED again after ↵kaelima
26869bda30b5fb2ec5abb98bb90d4ed4f87085ab.
2011-10-10Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for ↵megamage
better management.