aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
AgeCommit message (Collapse)Author
2020-08-09Core/Misc: Code cleanupjackpoz
2020-08-08Scripts/Command: Fix .mmap loc always printing command usagejackpoz
2020-08-08Scripts/BlackwingLair: Suppression Device Room (PR #25199)Jinnaix
Co-authored-by: offl <11556157+offl@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Treeston <treeston.mmoc@gmail.com>
2020-08-06Scripts/Comamnds: Improve ".debug objectcount" command (#25208)Giacomo Pozzoni
* Scripts/Comamnds: Improve ".debug objectcount" command Include the top 5 most common creatures in the map * Use C++ features to copy data * Fix build warnings * Update src/server/scripts/Commands/cs_debug.cpp Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update src/server/scripts/Commands/cs_debug.cpp Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update src/server/scripts/Commands/cs_debug.cpp Co-authored-by: Shauren <shauren.trinity@gmail.com> * Move CreatureCountWorker out of function and use template for unhandled cases * Code cleanup Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-08-05Scripts/Kologarn: Apply CREATURE_FLAG_EXTRA_NO_COMBAT on ↵jackpoz
NPC_ARM_SWEEP_STALKER and NPC_RUBBLE_STALKER
2020-08-05Scripts/Naxxramas: Frogger event improvements (#25202)Gildor
* Scripts/Naxxramas: Frogger event improvements * Prevent Living Poison accumulation * Now Living Poison cast Explode * check for a nearby player * move event to the frogger trigger's AI * Initialize and removing unnecessary things * applying suggestions * remove unnecessary header * Rename 9999_99_99_99_world.sql to 2020_08_05_00_world.sql
2020-08-05Scripts/World: updated Training Dummy script to modern model and removed ↵Ovahlord
pointless GameTime shenanigans
2020-08-04Scripts/AzjolNerub: Fix potential error in pound spell scriptCarbenium
Cast damage spell in AfterEffectApply instead OnEffectHitTarget. This avoids the scenario where we try to apply an aura to a potential dead target. Ref #21856
2020-08-04Core/Misc: Fix static analysis issues (#25194)Giacomo Pozzoni
2020-08-03Scripts/Outland: Convert 'Captain Tyralius' to SAI (#25188)Trond B. Krokli
Closes #24676
2020-08-01Scripts/AzjolNerub: Update Anub'Arak encounter to current coding standards ↵Peter Keresztes Schmidt
(#25192) * Scripts/AzjolNerub: Update Anub'Arak to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Darter to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Assassin to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Guardian to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Venomancer to current coding standards * no functional changes * Scripts/AzjolNerub: Update Anub'Arak Impale Target to current coding standards * Scripts/AzjolNerub: Update Anub'Arak Pound spell to current coding standards * Scripts/AzjolNerub: Update Anub'Arak carrion beetles aura script to current coding standards
2020-08-01Scripts/Gundrak: Update Slad'ran encounter to current coding standards (#25180)Peter Keresztes Schmidt
* Scripts/Gundrak: Update Slad'Ran's script to use TaskScheduler * No functional changes * Scripts/Gundrak: Update Slad'Ran's adds to use TaskScheduler * No functional changes
2020-08-01 Scripts/Gundrak: Update Drakkari Colossus encounter to current coding ↵Peter Keresztes Schmidt
standards (#25182) * Scripts/Gundrak: Update Drakkari Colossus to current coding standards * no functional changes * Scripts/Gundrak: Update Drakkari Elemental to current coding standards * no functional changes * Scripts/Gundrak: Update Living Mojo to current coding standards * no functional changes
2020-08-01Scripts/MoltenCore: Update Golemagg encounter to current coding standards ↵Peter Keresztes Schmidt
(#25183) * Scripts/MoltenCore: Update Golemagg to current coding standards * no functional changes * Scripts/MoltenCore: Update Core Ranger to current coding standards * no functional changes
2020-08-01Scripts/AhnKahet: Update Herald Volazj to current coding standardsCarbenium
* convert to BossAI * no functional changes
2020-08-01Scripts/AV: Update Vanndar's script to use TaskSchedulerCarbenium
* No functional changes
2020-08-01Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
2020-08-01Core/Common: Add a std::chrono interface to TimeTrackerSmallCarbenium
New methods: TimeTrackerSmall(Milliseconds expiry); void Update(Milliseconds diff); void Reset(Milliseconds expiry) Milliseconds GetExpiry() const Removed methods: int32 GetExpiry() const Also add basic unit tests. Core/Scripts: Use std::chrono interface of TimeTrackerSmall
2020-07-31Core/Misc: Fix static analysis issues (#25178)Giacomo Pozzoni
2020-07-31Core/DataStores: Rename TalentTabEntry::CategoryEnumID back to PetTalentMaskShauren
2020-07-31Scripts/BlackrockSpire: Fix encage event of Pyroguard encounter (#25177)Jinnaix
2020-07-30Scripts/Deadmines: Doors after Rhahk'Zor, Sneed and Gilnid (#25107)Somebody
* Fix doors opening after killing Sneed and Gilnid in the Deadmines dungeon * Add SQL file * Update 2020_99_99_00_world.sql SQL conventions * Change SAI door opening into C++ door opening and make it use SetBossState. * Delete 2020_99_99_00_world.sql Replaced by different sql file * Make CircleCI happy * Change const to constexpr for EncounterCount variable * Update src/server/scripts/EasternKingdoms/Deadmines/deadmines.h Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Update src/server/scripts/EasternKingdoms/Deadmines/deadmines.h Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Rename 9999_99_99_00_world.sql to 2020_07_30_00_world.sql Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-07-29Scripts/Quest: Force of Neltharaku quest credit (#24807)Trond B. Krokli
* Scripts/Quest: Force of Neltharaku quest credit **Description:** Suggested solution to resolve the kill credit double cast issue in the quest "The Force of Neltharaku" (10854). by Rushor **Changes proposed:** - Remove duplicate spell casts in the zone quest script - Remove commented-out script section - Set a couple of unit flags (anim/stand/hover) - Move return new creature script override to end of script - Move PlayerGUID, FlyTimer, and Tapped to Private - Add DB flight movement control to Enslaved Netherwing Drake - Add SpellMgr MaxAffectedTargets = 1 for spell 38762 - Add movement enum POINT_MOVE_UP - Add missing enum for quest ID **Target branch(es):** 3.3.5/master - [X] 3.3.5 - [X] master **Issues addressed:** Closes #24796 **Tests performed:** (Does it build, tested in-game, etc.) Pending for now. **Known issues and TODO list:** (add/remove lines as needed) - [X] Open PR in draft mode until testing is cleared - [ ] Compile and create local server - [ ] Test changes on local server * Rename 9999_99_99_99_world.sql to 2020_07_29_00_world.sql Co-authored-by: Rushor <Rushor@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-07-28Core/CreatureAI: std::chrono-ify DoSummon* methodsCarbenium
2020-07-27Core/WorldObject: Replace non-std::chrono SummonGameObject overloadsCarbenium
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest
2020-07-27Core/WorldObject: Replace non-std::chrono SummonTrigger overloadsCarbenium
2020-07-27Core/WorldObject: Remove non-std::chrono SummonCreature overloadCarbenium
Remove TempSummon* SummonCreature(uint32 entry, Position const& pos, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0, uint32 vehId = 0, uint32 spellId = 0);
2020-07-27Core/Creature: Remove non-std::chrono overload of DespawnOrUnsummonCarbenium
2020-07-27Core/EventProcessor: std::chrono-ify the remaining public APICarbenium
2020-07-27Core/EventProcessor: std::chrono-ify CalculateTimeCarbenium
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset). Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
2020-07-26Core/WorldObject: Partially std::chrono-ify SummonCreature overloadsCarbenium
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0); to TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime = 0s);
2020-07-26EventMap: Change GetTimeUntilEvent to return std::chrono typesCarbenium
2020-07-26Scripts/Kalimdor: Use std::chrono overload of Creature::DespawnOrUnsummonCarbenium
2020-07-26Scripts/World+Outland+Spells: Use std::chrono overload of ↵Carbenium
Creature::DespawnOrUnsummon
2020-07-26Scripts/Northrend: Use std::chrono overload of Creature::DespawnOrUnsummonCarbenium
2020-07-26Scripts/EasternKingdoms: Use std::chrono overload of Creature::DespawnOrUnsummonCarbenium
2020-07-26Core/Authserver: Authserver cleanup (PR#25093)Treeston
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber - Get rid of (most of) the C-style arrays in authserver - CryptoRandom as a unified source for cryptographic randomness - Bring our other crypto APIs into 2020 - BigNumber usability improvements - Authserver is now actually readable as a result of all of the above
2020-07-25Core/EscortAI: std::chrono-ify SetPauseTimerCarbenium
2020-07-25Core/EscortAI: std::chrono-ify AddWaypointCarbenium
2020-07-25Core/ScriptedAI: std::chrono-ify DoSpawnCreatureCarbenium
2020-07-25Core/BossAI: Remove _DespawnAtEvade(uint32, Creature*) overloadCarbenium
Use _DespawnAtEvade(Seconds, Creature*) instead
2020-07-25Core/InstanceScript: std::chrono-ify DoRespawnGameObjectCarbenium
2020-07-24Scripts/Borean Tundra: duplicate comment text (#25102)Trond B. Krokli
2020-07-24Core/Metric: Add more metrics about World::Update() loop (#25098)Giacomo Pozzoni
* Core/Metric: Add more metrics about World::Update() loop * Add new Performance profiling grafana dashboard * Add new cmake setting WITHOUT_METRICS that disables all metrics As new metrics are added, someone might want to disable them if unused. * Add more metrics about World::Update() loop * Remove old performance profiling features Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code. The whole UpdateTime class could be removed too. * Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql
2020-07-22Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan ↵Carbenium
encounter The intention here is to add additional 30 seconds of delay to the current delay of EVENT_FLY_TO_RANDOM_PILLAR. Instead of EventMap::GetNextEventTime, EventMap::GetTimeUntilEvent has to be used which returns the currently scheduled delay until the event occurs. EventMap::GetNextEventTime instead exposes the timer value internal to EventMap at which the event should occur.
2020-07-18Build: Enable -Wimplicit-fallthrough on clang (#25056)Peter Keresztes Schmidt
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs Related: #25006 * Misc: Add some missing breaks (no-ops) to satisfy clang Related: #25006 Closes #25055 * Build: Enable -Wimplicit-fallthrough on clang Closes #25006
2020-07-18Misc: Use [[fallthrough]] attribute instead of comment to mark intentional ↵Peter Keresztes Schmidt
fallthroughs (#25054) Related: #25006
2020-07-18Core/Misc: Replace boost::shared_mutex with std::shared_mutex (#24328)Giacomo Pozzoni
* Core/Misc: Replace boost::shared_mutex with std::shared_mutex * Remove std forward declarations
2020-07-17Core/Time: Rename GetGameTime{System, Steady}Point methodsTreeston
The names are a bit unhandy. Rename them (shorter but still meaningful). GetGameTimeSystemPoint() -> GetSystemTime() GetGameTimeSteadyPoint() -> Now() Also add 2 new typedefs: typedef std::chrono::steady_clock::time_point TimePoint; typedef std::chrono::system_clock::time_point SystemTimePoint; Closes #25042
2020-07-16Misc: Remove some unneeded/duplicated includes (#25051)Peter Keresztes Schmidt