Commit Graph

21456 Commits

Author SHA1 Message Date
Sorikoff
90d4254a87 Scripts: Minor improvements to recently migrated scripts (#23189)
Ref: 2cfaeb1400
2019-04-21 11:22:39 -03:00
Keader
961bc9d829 Scripts/Spells: Fixed a console error inspell_dru_lifebloom
Closes #23192
2019-04-21 11:01:59 -03:00
Trond B. Krokli
f9b1e4a032 Core/conf: conf.dist typo & grammar corrections (#23190)
- Typo and spelling corrections
- Grammar corrections, English grammar
- Minor adjustments in example code readability
- Capitalization adjustments to keep consistency
  with existing idioms, phrases and concepts
2019-04-21 15:59:48 +02:00
jackpoz
b33934f6ce Core/Calendar: Improve calendar timezone handling
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is.
2019-04-19 23:45:07 +02:00
Aokromes
63aa5d1e35 Core/SmartScripts: Implement SMART_ACTION_PLAY_CINEMATIC
By Malcrom
2019-04-17 23:59:02 +02:00
Aokromes
91bcf20b02 Core/SmartScripts: Reserve SMART_ACTION_PLAY_CINEMATIC 2019-04-17 22:10:08 +02:00
jackpoz
f88a5b12bd Core/Database: Delete gameobject_addon data when deleting a GameObject from the database
Close #23076
2019-04-17 21:01:32 +02:00
Killyana
c318b3e16d Spell/Script: Kill logs spam for spell_ioc_parachute_ic
Closes #23163
2019-04-17 16:40:25 +02:00
ccrs
6e011c974d Core/Movement: replace multiset::find with std::find in MotionMaster
same reasoning as 11de6b5
Container's find uses the defined custom comparator
2019-04-17 00:06:06 +02:00
ccrs
11de6b5f86 Core/Movement: implement and use new remove method in MotionMaster
All erases within MotionMaster are now done by itr.
Previous impl used value erase which uses the custom comparator which does not identify elements uniquely --> wrong values were deleted

ref #23187#discussion_r275791179
2019-04-16 23:29:04 +02:00
Sorikoff
2cfaeb1400 Scripts/Spells: Migrate Some Scripted Spells to Scripts (#23185)
* Migrate spells to scripts

* Simplify code

* I need to sleep

* Update chapter1.cpp

* Use actual damage

* No need in null check here
2019-04-16 09:49:39 +02:00
Chaouki Dhib
50d32fe493 Core/Movement: fix mistake in previous commit
975f1e364a
2019-04-15 23:47:23 +02:00
Chaouki Dhib
975f1e364a Core/Movement: Add time synchronisation (#18189) 2019-04-15 23:31:25 +02:00
ForesterDev
2a6eef76e2 Core/Social: Separated checks for friend and ignored limits (#23181)
* Core/Conditions: implement CONDITION_GAMEMASTER

* Core/Social: Separated checks for friend and ignored limits

* Prevent duplication of contacts

* Limit values should be included in counters

* Codestyle and comments
2019-04-15 15:25:08 +02:00
jackpoz
17bb608a5e Core/MMaps: Fix crash added in 386b5a6fd9 2019-04-14 11:46:51 +02:00
Shauren
d56c671064 Core/Dep: Boost 1.70 compatibility
(cherry picked from commit bcda8dd742)
2019-04-14 01:04:02 +02:00
jackpoz
386b5a6fd9 Core/MMaps: Simplify d182e5f7e7 and handle PATHFIND_INCOMPLETE in ChaseMovementGenerator as "cannot reach the target" 2019-04-12 23:56:29 +02:00
jackpoz
d182e5f7e7 Core/MMaps: Fallback to shortcut for flying units if Detour returned an incomplete path.
Fallback to shortcut for flying units if Detour returned an incomplete path. This is needed when a flying unit should fly to the floor below to reach the target, but since Recastnavigation doesn't support "jumping down" the unit would not find a path to the target.
2019-04-12 23:23:31 +02:00
Giacomo Pozzoni
3230ca74d2 Core/Database: Close the MySQL connection only after getting the last error code 2019-04-12 08:08:57 +02:00
Jozef Dúc
f221fcdd4b Core/Creatures: Filter out trainer spells that belong to a skill that can never be learned by a player with given class and race combination (#23176)
Closes #23172
2019-04-11 21:06:53 +02:00
PolarCookie
5ed77113b6 Core support for breadcrumb quests (#23157)
* Breadcrumb quests support in core

* To Winterspring! & Starfall

* translating ZenoX92's list, part 1

* Carendin Summons is Blood Elf only

* Breadcrumb to an exclusive group

* translating ZenoX92's list, part 2

* class quests

* breadcrumb trails

* better prevquest check

* less harsh error warnings

* minor optimization

* Rename 9999_99_99_99_world.sql to 2019_04_10_00_world.sql
2019-04-10 12:58:40 +02:00
Aokromes
1374658d72 Core/Spell: Move a log to category 2019-04-07 20:29:08 +02:00
Jeremy
9fcbd8f15d Core/Movement: Fix some undermap issues with random movement/fear/blink (#22937)
* Core/Movement:
- Only move to point if there is a path that is not a shortcut (which will make the unit move through terrain)
- Added new function to check if there is a vmap floor without search distance
- Units that can fly, are underground but far above the vmap floor will stay underground (bronze drakes in tanaris)
- Don't remove PATHFIND_SHORTCUT from path type in some cases

* Core/Object: Ignore UpdateAllowedPositionZ for flying units.

- This will make flying units go through mountains instead of going to the top and back to the bottom to reach you.

* Core/Object: Revert some changes and let MovePositionToFirstCollision deal with a position without ground

* Missing groundZ change for objects on transport

* use CanFly instead of IsFlying
2019-04-07 20:15:40 +02:00
PolarCookie
73e3fdc8b4 Core: VehicleJoinEvent crash fix (#23136) 2019-04-07 20:04:14 +02:00
Ovah
b9e9ccf93c Core/Objects: use the actual collision height of players and creatures to get more accurate liquid status results (#23070) 2019-04-06 17:39:04 +02:00
r00ty-tc
8bb88657f8 Core/GameEventMgr: Log error if loading GO/Creature into event that is part of pool
- Only warn, still load the GO/Creature
 - These should be added to game_event_pool by pool ID instead
2019-04-05 22:01:14 +01:00
r00ty-tc
2a7a1b27d5 Core/Database: Correction for later MariaDB version
- Removed unused define CR_INVALID_CONN_HANDLE which was removed entirely in more modern MariaDB versions
2019-04-05 21:51:20 +01:00
Killyana
97edfcb367 Core/Trainers: Fix DB error log
Closes #23167
2019-04-05 15:43:07 +02:00
Killyana
c52eb49f71 Core: Remove wrong emotes played in combat
Ref #23152
2019-04-04 15:36:29 +02:00
Gustavo
cc3293c002 Core/Scripts: Fix Blood summon position (#23088)
* Core/Scripts: Fix Blood summon position

Updates #13162
2019-04-04 00:30:25 -03:00
Gustavo
50f122de77 Core/Misc: Warning fixes (/W4) (#23149)
* Core/Misc: Warning fixes (/W4)
2019-04-03 23:36:26 -03:00
jackpoz
750d89beed Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan
2019-04-02 21:40:30 +02:00
jackpoz
a12ea482f3 Core/Misc: Fix static analysis issues
Fix static analysis issues spotted by Coverity Scan
2019-04-02 20:11:27 +02:00
Shauren
daf9e1be03 Add missing fclose
(cherry picked from commit a71d4b70ff)
2019-04-02 19:53:05 +02:00
jackpoz
1d04a3b216 Core/Misc: Fix GCC 8 warnings 2019-03-31 17:34:28 +02:00
sirikfoll
dbfc6ce773 Core/GameObject: Properly dismount players on GameObject Use
Closes #23124
2019-03-30 21:30:58 -03:00
Shauren
fe0abfe985 Core/PacketIO: Fixed mistake in setting packet value for SMSG_MULTIPLE_MOVES 2019-03-30 15:44:56 +01:00
Shauren
c5ab22b6ed Core/PacketIO: Send movement state change packets only once, not for each player whose visibility we enter
Closes #23141
2019-03-29 23:26:51 +01:00
jackpoz
129ba15378 Core/ObjectMgr: Make LoadCreatureTemplates() easier to maintain
Change how LoadCreatureTemplates() declares the SQL query by putting each field on its own line, making it easier to add/remove fields
2019-03-24 17:44:04 +01:00
ForesterDev
262ddaf819 Core/Conditions: implement CONDITION_GAMEMASTER (#23108) 2019-03-23 17:51:36 +01:00
PolarCookie
a926a3088d Core/Item: Item Signature (#23119) 2019-03-23 14:34:37 +01:00
Trond B. Krokli
a040d48443 Scripts/Wailing Caverns: make Disciple of Naralex say Mutanus, not $n (#23122)
* Scripts/Wailing Caverns: make Disciple of Naralex say Mutanus the Devourer

Disciple of Naralex should say
"This Mutanus the Devourer is a minion from Naralex's nightmare no doubt!"
instead of using $n caused by a missing target in the Talk() script command.
2019-03-22 12:09:41 +01:00
Killyana
5f04c829a8 Core/GameObject: Remove summoned game objects from the map after calling SetSpawnedByDefault(false) (#23120)
Closes #23115
2019-03-18 01:04:38 +01:00
jackpoz
92bf5b1ba7 Core/Misc: Add console option to update databases only
Add "--update-databases-only" console argument to stop worldserver execution after having updated all databases (if specified in config file)
2019-03-17 21:34:13 +01:00
Trond B. Krokli
7cb31aa482 Scripts/Borean Tundra: link gossip content for NPC Iruk from DB (#23118)
- remove hardcoded text (deprecated method)
- add already existing DB gossip content to enum
- correct spell enum from spell_creature_ to spell_create_
- replace case switch with if statement (only one boolean case)

Extra script file update:
- remove SD comment line 22 (outdated info, replaced by SAI)
2019-03-17 20:02:05 +01:00
Jozef Dúc
62f621fcd7 Check player conditions to enter instance (#23117)
Check player conditions to enter before party condition.
2019-03-17 19:52:46 +01:00
Killyana
9ab05e2b6d Core/SAI: Fix Move to position and Set run if used after a waypoint
Closes #22976
2019-03-13 23:29:52 +01:00
Killyana
75a8639242 Core/SAI: Fix the respawn event for GameObjects (#23112)
Closes #22612
2019-03-13 23:24:51 +01:00
Giacomo Pozzoni
fa8c0dd534 Revert "Core/AuctionHouse: use DisableMgr to disable specific items (#19289)"
This reverts commit f6d3a5b9b9.
2019-03-12 16:09:45 +01:00
ForesterDev
f6d3a5b9b9 Core/AuctionHouse: use DisableMgr to disable specific items (#19289)
* Core/AuctionHouse: use DisableMgr to disable specific item for AuctionHouse or AuctionHouseBot
2019-03-12 09:34:34 +01:00