Commit Graph

3995 Commits

Author SHA1 Message Date
Vincent-Michael
797a168f9a Core/Commands: Allowed .server idlerestart / idleshutdown / restart / shutdown to take another parameter structure:
e.g.:
* .server idlerestart 12d3h13m13s
* .server idleshutdown 46m13s
* .server restart 45h56m
* .server shutdown 323m42s

(cherry picked from commit 0940f3e077)
2016-05-08 16:12:03 +02:00
Kito
033f4cddea Scripts/Icecrown Citadel: Sindragosa - Ice Tomb should always deal damage to all other ice tombs too
Closes #7808
Merges #16863
2016-05-04 17:18:57 +02:00
Trond B Krokli
d82534a7bb Core/Scripts/DB: remove hardcoded text from npc_beaten_corpse (#16907)
- remove hardcoded text from script npc_beaten_corpse
- remove OnGossipHello() hook, gossip text moved to DB
- use sGossipSelect() hook instead of OnGossipSelect()
- add npc_text 3557 and 3558 as text_id to gossip_menu
- add gossip_menu_option 2871 to NPC 10668 Beaten Corpse
- add condition for gossip_menu_option 2871 in Quest ID 4921

Tested on 4 different characters/classes, male & female.
Thanks to joschiwald for the sGossipSelect() script change.
2016-05-02 22:22:17 +02:00
Duarte Duarte
7c82f83c0d Scripts/SWP: Remove unused #defines
(cherry picked from commit 71a7f96e22)
2016-05-02 03:12:59 +01:00
Incorrect
1aa30d3cce Core/Spells: Fixed overwriting summon requests
Closes #17049
2016-05-01 12:31:55 +02:00
KarrokDC
775b03bf6f Core/Scripts: Cleanup cs_modify.cpp
* Removed a chunk of duplicate code
* Generalized Message notification
* Generalized checking of resources modification with a min-max
* Generalized checking of single value modification
* Closes #16858
2016-04-30 01:06:05 +02:00
Shauren
bee6525d1b Core/Misc: Fixed -Wmisleading-indentation warnings
(cherry picked from commit 3ac33163db)

# Conflicts:
#	src/server/game/Server/Protocol/PacketLog.cpp
2016-04-28 16:22:51 +01:00
joschiwald
9e371b766c Core/Utils: replaced std::random_shuffle with our own implementation using SFMT random generator 2016-04-24 01:15:56 +02:00
jackpoz
3e73ba9da5 Core/Misc: Fix issues reported by static analysis 2016-04-23 18:20:18 +02:00
DevQuad
5ac000f1e9 Core/Scripts: Process the reset of Mandokir (ZulGurub)
* Closes #16640
2016-04-23 17:20:55 +02:00
joschiwald
029527365f Scripts/Spells: fixed Decahedral Dwarven Dice and Worn Troll Dice
#Closes 16866
2016-04-23 13:53:07 +02:00
DDuarte
91671a26e8 Scripts: Add missing override 2016-04-19 01:31:19 +01:00
Gacko
eda6254d47 Scripts: Add missing overrides.
(cherry picked from commit aac868a6d9)
2016-04-19 00:37:34 +02:00
tkrokli
acdfc36a4e Core/Scripts: zone_shattrath_city cleanup
- restore missing text lines for Sal'salabim and Raliq the Drunk
- replace hardcoded text with DB gossip ID enum sections
- move gossip ID, quest ID, spell ID (and so on) into enum
- remove core script for Ishanah, High Priestess of the Aldor

Closes #16684
2016-04-16 18:58:47 +01:00
Gustavo
d1a053e4f5 Core/Quests Fix Quests Borrowed Technology, Volatility and The Solution Solution (#16968) 2016-04-16 15:42:07 +02:00
treeston
b115458001 Merge branch '3.3.5-gluth' into 3.3.5 (PR #14865) 2016-04-16 11:16:28 +02:00
chaodhib
383cc4d94b Scripts/Naxxramas: Rework of Gluth
1) Gluth should be able to eat zombies close to him, one at the time, during the whole fight.
2) Gluth should be able to eat zombies at an accelerated rate after each Decimate.
3) The zombies should put the "Infected Wound" debuff on their auto-attack targets.
4) Zombies should have a normal threat table before decimate and should loose all kind of aggro behavior and walk toward Gluth after decimate.
5) Gluth shouldn't be affected by the decimate damage.
6) Newly poped zombies should have all players in their aggro list as soon as they spawn. So far, they were not moving and were only aggroed by proximity.
7) and several minor fixes (emotes, useless data in db).
2016-04-16 10:54:13 +02:00
treeston
37067ad390 Merge remote-tracking branch 'sirikfoll/bossAhune' into 3.3.5 (PR #14884) 2016-04-16 01:47:45 +02:00
treeston
75f7b5ae4b Merge remote-tracking branch 'sirikfoll/geddon' into 3.3.5 (PR #16975) 2016-04-16 01:44:42 +02:00
Chaouki Dhib
dc3327f9c5 Core/Movement: Clean up and improvements on Unit::SetSpeed (#16843)
- Clean up of Unit::SetSpeed (mostly cherry picks from the 6.x branch):
- the opcode sent depends on the unit. until now, MSG_MOVE_SET_* were sent for every units which isn't like retail behavior.
- Removed the unused method parameter "forced" from Unit::SetSpeed
- Renamed Unit::SetSpeed to SetSpeedRate
- Removed the unused method parameter "forced" from Unit::UpdateSpeed
- Added utility method Unit::SetSpeed which take the new flat value.
2016-04-16 01:36:32 +02:00
sirikfoll
918b2fafae Core/Spells Fix Spell Inferno, used by boss Baron Geddon
This is based on the cmangos fix 7556165b3e

Also correct the spellId of Armageddon spell
2016-04-15 13:19:19 -03:00
Naios
ff8a54ab92 Core/Build: Provide an interface target for game
* Increases the build time because dependent projects can build
  without waiting for the game project.
2016-04-14 20:30:55 +02:00
r00ty-tc
87b4533046 [Core/Maps] Activate creatures and objects during opening cinematics and other flyby
cameras (sunwell etc).

Requires re-running map extractor to extract camera m2 files from data
files. These are very small.

Closes #4755
Closes #16772
2016-04-14 01:34:17 +02:00
Shauren
e2687b31ed Core/Entities: Ported byte field offset naming from 6.x 2016-04-12 20:06:04 +02:00
Naios
eaf102b3c5 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

(cherry picked from commit 9cc97f226d)
2016-04-11 21:42:28 +02:00
Naios
8660f90bdf 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.

(cherry picked from commit 848b8a4136)
2016-04-11 21:41:58 +02:00
Naios
c5c922da9f Core/Scripts: Move the ragefire chasm scriptloader into the correct file
(cherry picked from commit 4710b1c8fe)
2016-04-11 21:41:33 +02:00
Naios
775e0764e8 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

(cherry picked from commit 59e3cf82ac)
2016-04-11 21:40:38 +02:00
Shauren
702cfefddb Buildsystem: Initial changes to support building with vs clang toolset
(cherry picked from commit 4a3a178d7f)
2016-04-09 12:38:20 +02:00
Shauren
b197163a1d Core/Commands: Prevent creating accounts containing '@' character with .account create command
(cherry picked from commit 4a679ba1be)
2016-04-09 12:36:27 +02:00
Shauren
3f7e6af49e Properly rename the stand state method... 2016-04-08 22:32:15 +02:00
Shauren
6dfc4771a1 Core/Misc: Renamed getStandState to minimize differences between branches 2016-04-08 22:21:13 +02:00
Shauren
e52878b6b5 Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches 2016-04-02 17:05:46 +02:00
Kittnz
8d992a888c Pet/Misc: Implement Baby Blizzard Bear 2016-03-28 12:30:36 +02:00
Shauren
b2bd181a5f Merge pull request #16848 from P-Kito/debuff_remove
[3.3.5/6.x] Scripts/Spells: Add generic spell to handle ClearDebuffs spell
2016-03-27 19:45:23 +02:00
Kito
8de7e12a6e Scripts/Spells: Add generic spell to handle ClearDebuffs spell 2016-03-27 19:30:03 +02:00
treeston
dc39de0141 Scripts/Karazhan: Hackfix the Opera event script to make Wizard of Oz actually completable.
Doing it in script instead of removing the flags from DB because I'm pretty sure that the DB flags are correct and there's some RP event missing before she becomes attackable.
2016-03-26 00:21:21 +01:00
Naios
46ab38c1bb Core/Scripts: Link the script project always statically
(cherry picked from commit 428908b8db)
2016-03-24 02:47:12 +01:00
treeston
f37682b7ed Merge branch '3.3.5-naxxcleanup' into 3.3.5. (PR #16524) 2016-03-23 20:17:17 +01:00
Aokromes
00aeec820a Core/Misc: Remove no longer used code 2016-03-23 16:59:31 +01:00
MitchesD
ecf15a156b Scripts/TheEye: updated Void Reaver to EventMap
(cherry picked from commit 8a7ae9d16c)
2016-03-22 23:36:00 +01:00
joschiwald
ef7a91d193 Scripts: Added combat abilities to trash mobs in Ruby Sanctum
Thx @sirikfoll

SAI by @Keader

Closes #16703
2016-03-20 22:06:03 +01:00
joschiwald
2dda0ed36a fixed warning again :( 2016-03-20 21:27:19 +01:00
joschiwald
052603a7e8 fixed build 2016-03-20 20:49:37 +01:00
joschiwald
c498966d23 Core/Spells: cleanup raise ally code
(partial cherry picked from commit 312e8509dd)
2016-03-20 19:50:11 +01:00
Naios
96bc31924a CMake: Use inherited dependencies in scripts
* Removes the circular dependency between game <-> scripts
2016-03-18 02:53:00 +01:00
Vincent-Michael
5e74c2223b Core: Remove whitespaces 2016-03-16 21:40:15 +01:00
blub
8050f58b21 Merge pull request #16649 from ForesterDev/3.3.5
Scripts/Commands: Modify ".debug anim" command to target any selected unit
2016-03-16 20:56:16 +01:00
joschiwald
3e7b7e415e Merge pull request #16785 from Keader/AlgalonStars
[3.3.5/Core/Scripts] Fix Living Constellation not activating during Algalon encounter
2016-03-15 21:11:16 +01:00
Keader
8a95417fce Fix Living Constellation not activating during Algalon encounter. 2016-03-15 17:09:06 -03:00