Commit Graph

4987 Commits

Author SHA1 Message Date
Vincent-Michael
95a7a88ef0 Core/Commands: Fixed build 2016-09-04 00:19:29 +02:00
xjose93
882453253f Core/Commands: Implement .neargraveyard (find nearest graveyard from dbc). 2016-09-04 00:19:13 +02:00
treeston
77631a8cde Drycoding is bad, mmkay? 2016-09-03 17:30:37 +02:00
treeston
9a829b4761 Scripts/Events: Globally fix all ExecuteEvent loops to check UNIT_STATE_CASTING after each iteration, instead of just checking it once initially 2016-09-03 17:26:20 +02:00
Aokromes
3e00b379f3 Scripts/Misc: Delete no longer used files 2016-08-31 08:44:01 +02:00
treeston
109d87d3c3 Entities/Gossip: The Big One™ that gets rid of all uses of The Bad™ and The Ugly™, e.g. gossip preprocessor macros, and replaces them with the new-and-shiny gossip functions. 2016-08-31 08:39:33 +02:00
tkrokli
ffc47e0c4c Core/Scripts: remove forgotten #define in boss_kalecgos.cpp
This #define was originally supposed to be removed in my PR #17832,
but for some reason it remained undeleted. This commit corrects it.

Also aligned all the enum values to the same column for readability,
based on a common multiple of 4 spaces.
2016-08-31 08:18:51 +02:00
Aokromes
df2c6972c4 Whitespace clean-up 2016-08-29 01:20:31 +02:00
ariel-
4acebe6c91 Core/Scripts: Professor Putricide oozes, reapply passive proc auras on reset, and register them as PP summons since they're summoned by a trigger. (f183ed3c50 follow-up) 2016-08-28 10:20:14 +02:00
ariel-
9b8a4b5fea Core/Scripts: fix math error that would not select points on the entire circle 2016-08-25 15:01:16 +02:00
ariel-
0c3e061b2b Update boss_kelthuzad.cpp 2016-08-25 15:00:25 +02:00
Aokromes
8aaea40f03 travis is lazy 2016-08-25 14:59:54 +02:00
Gustavo
3b2e9d4ca4 Core/Scripts Boss Skadi the Ruthless rework 2016-08-25 14:59:21 +02:00
Aokromes
5de3f3c59f Core/Scripts: move npc_experience hardcoded text to DB 2016-08-25 14:59:00 +02:00
tkrokli
1c80212429 Core/Scripts: move #define to enum in boss_kalecgos.cpp 2016-08-25 14:54:11 +02:00
tkrokli
8d1a2284f5 Core/Scripts: move forge_of_souls gossip to DB 2016-08-25 14:53:46 +02:00
Gustavo
f7667cdda6 Core/Scripts Implement Pit of Saron Cavern event 2016-08-25 14:53:14 +02:00
Gustavo
49d4e22c6a Scripts/Pet Implemented Argent Squire/Gruntling and Argent Pony Bridle 2016-08-25 14:52:56 +02:00
Aokromes
99a5df07e3 Missing overrides 2016-08-24 19:23:13 +02:00
Aokromes
332feace2c Scripts/Naxxramas: Full Kel'thuzad rework.
- Sniffed timers
- Sniffed spawn behavior
- Sniffed everything else
- Sniffed sniff. Mmmm
 - In all seriousness though:
    - Fixed P2 cast behavior, now obeys category cooldowns as intended
    - Fixed P1 pathing and abomination behavior
    - Fixed P1 passive minion aggro logic
    - Fixed P1->P2 transition logic
    - Fixed P3 guardian spawn/despawn logic
    - Fixed all minions' cast behavior
    - Fixed melee hitbox for Kel'thuzad, abominations, banshees and guardians
    - Fixed reset behavior
    - Fixed post-Sapphiron event to no longer open the KT door for a few seconds before slamming it closed again by treeston
2016-08-24 19:20:37 +02:00
treeston
a7c88b1d6b Scripts/HallsOfLightning: Fix Volkhan healing. 2016-08-24 10:25:30 +02:00
tkrokli
5301e4578e Core/Scripts: set correct unit_flags on Scarlet Mine Car (#17844)
Closes #17816
2016-08-24 10:25:08 +02:00
SnapperRy
506b2a4f2a Event/Brewfest: implement relay race (#17603) 2016-08-23 13:54:57 +02:00
tkrokli
efa7a0639c Core/Scripts: npc_wormhole #define text moved to DB (#17805)
Another core script hardcoded text removal:
- removed #define text from script
- added the text to gossip_menu_option
- added and renamed enum to match DB entries
- minor additional adjustments and comments

Closes #6841
2016-08-23 13:54:38 +02:00
Gustavo
83de75e31b Improve scripts for quests Breakfast Of Champions and A Bear of an Appetite (#17780)
Properly despawn the related GameObjects after use of the quest item, avoiding multiple use and summon
2016-08-23 13:54:24 +02:00
SnapperRy
1cd71ca5cd Scripts/ArgentTournament: improve training dummy script
Now the ranged and charge target dummies will cast their spells and behave correctly for the related quests
2016-08-23 13:54:10 +02:00
Aokromes
4433501213 Core/Misc: Fix static analysis issues 2016-08-22 14:22:56 +02:00
Treeston
a29913187b Core/Spells: Fix orientation- and targeting-related issues if the creature isn't currently engaged in combat. (#17120)
Also disable spell focus system for vehicle control auras.

Closes #16572
Closes #17016
2016-08-21 13:16:30 +02:00
Alan Deutscher
372ef5e5a2 Scripts: UNIT_FLAG_REMOVE_CLIENT_CONTROL no longer used as a method for preventing a unit from moving
UNIT_FLAG_REMOVE_CLIENT_CONTROL (formerly UNIT_FLAG_DISABLE_MOVE) is a client-only feature that should not be used for NPC scripting. All applications of this flag in scripts/ have been replaced with applications/removals of the UNIT_STATE_ROOT state.

Closes #17311
2016-08-21 13:16:10 +02:00
jackpoz
58e4568c36 Core/Commands: Code cleanup
Remove commented out code
2016-08-21 13:14:27 +02:00
Aokromes
5023384dab Update boss_jedoga_shadowseeker.cpp 2016-08-20 12:33:28 +02:00
Aokromes
56b3f461fe Core/Scripts: move Pet Trainer gossip to DB
SQL content based  on issue 14719 by Killyana,
conditions output from Malcrom's Condition Creator

- remove hardcoded #define gossip options
- enum gossip menu IDs from DB
- remove outdated SD comments at the top of the file
2016-08-20 12:22:58 +02:00
treeston
190ef9fc54 Pet/DK: Make Risen Ghoul and Bloodworms no longer suicidally charge into not-yet-engaged mob packs. 2016-08-20 06:22:42 +02:00
ariel-
30e0460306 Core/Scripts: allow ".debug arena" and ".debug battleground" commands to be issued in the console 2016-08-16 12:26:33 +02:00
Aokromes
960c22e602 Core/Scripts: remove script npc_timothy_daniels
The core script `npc_timothy_daniels` is no longer needed,
all the gossip handling is already present in the database.

- remove core script npc_timothy_daniels
- remove ScriptName from c_t entry in DB
2016-08-14 23:57:06 +02:00
tkrokli
d847bcdac4 Core/Scripts: move npc_mortog_steamhead to DB
Move core script npc_mortog_steamhead to database
- script contains gossip handling + 1 condition
- both actions can be handled in DB settings
2016-08-14 10:16:43 +02:00
Aokromes
31dea6b435 Compile fix 2016-08-12 12:46:28 +02:00
ForesterDev
f59e00b85c Core/Command: Check account password max length 2016-08-12 12:19:19 +02:00
tkrokli
c425b91368 Core/Scripts: remove 2 unused scripts (#17759)
These scripts are no longer in use:
- generic_creature
- trigger_death
2016-08-12 12:19:02 +02:00
Naios
e23d063f5a Core/Game: Rewrote the ScriptMgr to support script reloading.
* Finally this commit enables dynamic script hotswapping
  and finished the PR #15671.
* Split the storage layout to use optimized storages
  for database bound and unbound scripts.
* Add several unload workers to reload scripts correctly
  -> Requires further investigation.
* Fixes memory leaks in ScriptMgr when dropping invalid scripts.
* Fixes VehicleScripts
* Makes OutdoorPvP scripts reloadable
* Makes InstanceMapScripts reloadable
* Makes CommandScripts reloadable
2016-08-10 08:40:44 +02:00
Aokromes
436cdfd7c9 Core/Game: Move scheduled map scripts counter methods into MapManager
* Since those have nothing to do with core scripts and are
  not wished inside the ScriptMgr
2016-08-10 06:40:03 +02:00
Aokromes
9078085595 Core/Scripts: Split script subdirectories into independent modules
* Makes it possible to define the linkage for every module
* Move the ScriptPCH into the root directory
* Changes the SCRIPTS cmake variable to a string type:
  -> -DSCRIPTS=0 is -DSCRIPTS="minimal-static" now
     (builds commands and spells statically)
  -> -DSCRIPTS=1 is -DSCRIPTS="static" now
     (builds all modules statically)
  -> -DSCRIPTS="dynamic"
     (builds all modules dynamically)
  -> Also the default value which is provided by the SCRIPTS
     variable is overwriteable through the SCRIPTS_COMMANDS,
     SCRIPTS_SPELLS... variable.
2016-08-10 05:14:53 +02:00
Aokromes
4905073101 Buildsystem: Initial changes to support building with vs clang toolset 2016-08-10 04:43:29 +02:00
Naios
aece2b85da Core/Scripts: Link the script project always statically
(cherry picked from commit 428908b8db)
2016-08-10 04:18:41 +02:00
Aokromes
e27a5b7816 Core/Build: Provide an interface target for game
* Increases the build time because dependent projects can build
  without waiting for the game project.
2016-08-10 01:22:56 +02:00
Aokromes
7ef9b246b5 CMake: Use inherited dependencies in scripts
* Removes the circular dependency between game <-> scripts
2016-08-10 00:33:48 +02:00
Aokromes
a5a60286fa Scripts/Commands: Some adjustments to make shutdown commands more user-friendly.
- New error message if a shutdown is delayed due to force threshold.
- New status message indicating that a server shutdown was successfully cancelled.
2016-08-07 21:41:10 +02:00
Aokromes
58499f9488 another override 2016-08-05 02:42:30 +02:00
Aokromes
2e3db272e3 more missing overrides 2016-08-05 02:14:51 +02:00
Aokromes
1ec3b04951 More overrides 2016-08-05 01:56:50 +02:00