Commit Graph

4347 Commits

Author SHA1 Message Date
xinef1
86da1a19bb Core/Misc: Fix various crashes, also related to multithreading (#19012)
* When iterating groups we have to either do it not in multithreaded context (map updates) or start with checking maps (they are guaranteed to change in single thread update).
* Properly clear ComboPoint references on player remove 
* remove some possible references item may have when it is deleted during save. 
* Also clear all hostile references when unit is removed from map.
2017-02-04 22:37:16 +01:00
Gustavo
ad8a71c084 Core/Scripts: boss Nightbane rework (Karazhan) (#18899)
Closes #10017
2017-02-04 11:56:00 -03:00
Keader
ce774918a7 Core/Scripts: Updated Ruby Sanctum instance model 2017-02-04 10:13:22 -03:00
Keader
c58dd6c166 Core/Ruby Sanctum: Improved General Zarithrian encounter
* Fixed spell timers
* Improved Codestyle
* Fixed minions number in 25 man
* Fixed movement
* Implemented DespawnAtEvade
*
2017-02-03 22:28:20 -03:00
ariel-
5e46bb3e8c Core/Scripts: fix penance procs with Unchained magic
Closes #19005
2017-01-30 02:43:24 -03:00
Gerhood
bab59b28fa Core/Spells: implement Mad/Crazy Alchemist's potions 2017-01-29 14:06:40 +01:00
ariel-
317efd51ec Core/Scripts: remove GMs from Sindragosa's Fury's targetlist
By Keader
Ref #18452
2017-01-28 01:42:50 -03:00
ariel-
6f9e8b6c91 Core: add some missing Player Name normalization on input data 2017-01-28 01:27:39 -03:00
xinef1
b955456008 Few small optimizations here and there (#18684)
Changes list:
- Added CharacterGuidByNameContainer which contains name -> guid unordered map (updated along CharacterInfo)
- Extended CharacterInfo structure with GuildId
- Extended CharacterInfo structure with ArenaTeamId[3], for all possible teams (2v2, 3v3, 5v5)
- Removed CHAR_SEL_GUID_BY_NAME and CHAR_SEL_CHAR_GUID_BY_NAME synchronous queries, name -> guid can be now retrieved in World::GetCharacterGuidByName
- Removed CHAR_SEL_GUID_RACE_ACC_BY_NAME synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid
- Removed CHAR_SEL_CHAR_LEVEL synchronous query, level can be retrieved by guid
- Changed CHAR_SEL_CHARACTER_ACTIONS_SPEC to asynchronous query, action bars are now loaded asynchronously
- Removed CHAR_SEL_CHARACTER_NAME_CLASS synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid
- Removed CHAR_SEL_PLAYER_ARENA_TEAMS and CHAR_SEL_ARENA_TEAM_ID_BY_PLAYER_GUID synchronous queries, arena teams are now stored in CharacterInfo
- Replaced synchronous db calls with CharacterInfo lookups
- Removed ObjectMgr::GetPlayerGUIDByName, as it used db query
- Replaced some unnecessary UpdateObjectVisibility() calls because they were either duplicated (called few lines above in other function) or it is enough to call DestroyForNearbyPlayers because object is being removed or should be invisible and DestroyForNearbyPlayers is faster
- Corrected typo in Player::DestroyForPlayer, only items in slots 0 to EQUIPMENT_SLOT_END are sent to other players
- Renamed Player::GetGuildIdFromDB to Player::GetGuildIdFromCharacterInfo and changed the function to use CharacterInfo structure
- Renamed Player::GetArenaTeamIdFromDB to Player::GetArenaTeamIdFromCharacterInfo and changed the function to use CharacterInfo structure
- Renamed Player::GetLevelFromDB to Player::GetLevelFromCharacterInfo and changed the function to use CharacterInfo structure
- Removed GameEventMgr::_questToEventLinks and associated functions, eventId is now stored in Quest class under _eventIdForQuest variable
- Changed some functions checking quest status to use other functions for quest status check instead of duplicating code
- Removed callback from add friend, because we can get the guid from appropriate storage, no need to make db query
- Removed callback from add ignore, because we can get the guid from appropriate storage, no need to make db query
- Added callback to unwrap wrapped items asynchronously
- Removed synchronous select in tutorials to check if we have any entries in db, if any entry exists in db, m_TutorialsChanged variable will have TUTORIALS_FLAG_LOADED_FROM_DB flag added and it is no longer necessary to query database
2017-01-28 01:00:28 -03:00
Keader
3c4dc3ec4f Core/Scripts: Removed double check of CheckRequiredBosses in Sindragosa 2017-01-27 23:42:25 -03:00
Keader
15ea5b1b8d Core/Entities: Implemented CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE (#18980) 2017-01-27 20:47:54 -02:00
Gustavo
f57132b795 Core/Scripts Fix issue with Lady Deathwhisper's door 2017-01-26 00:17:46 +01:00
ariel-
2db3e86d9b Core/Scripts: implemented Gnomish Harm Prevention Belt
Updates #18542
2017-01-23 22:03:24 -03:00
ariel-
e33f0e0606 Core/Scripts: implement lightwell aura removal at 30% damaged
Ref #18542
2017-01-23 15:02:12 -03:00
ariel-
a8c2d59864 Core/Scripts: Fix Lock and Load proc with Frost trap 2017-01-21 23:48:04 -03:00
Keader
591a25500d Core/Scripts: Fixed Crok event not starting
[*] Fixed Svalna entering in combat with people ouside of room
Closes #8186
2017-01-21 11:03:26 -03:00
Rushor
a3c6880579 Revert "[3.3.5][master] Core/Movement: Smooth movement #13467 (#18020)" (#18888)
This reverts commit 28050f338d.

Conflicts:
	src/server/game/AI/SmartScripts/SmartAI.cpp
	src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
2017-01-20 14:16:47 +01:00
Keader
55c3eb66d7 Core/Scripts: Removed unneeded check in Blood Prince Council 2017-01-13 17:07:03 -03:00
Keader
a884660d50 Core/Scripts: Fixed issues in Gal'darah fight
Closes #16219

* Added DespawnAtEvadeMethod
* Fixed Agro
* Implemented Stampede
* Fixed Rhino Spirit flags
* Updated codestyle
2017-01-09 11:36:51 -03:00
Keader
bef8a6dee5 Core/RubySanctum: Updates in Saviana Ragefire encounter
* Fixed Codestyle
* Fixed Spell timers
* Added DespawnAtEvade Method
2017-01-08 23:44:36 -03:00
Rochet2
117d1c31c9 Scripts/Commands: Fix guid usage and enhance commands (#18278)
- Fix targeting gameobjects and creatures for .dist and .gps. The old code used DB guid to search from core generated guid lists.
- Fix some error messages saying 'no player found' even if creatures and gameobjects and players were searched
- Change atoi to atoul when receiving lowguids as string or other uint32 values
- Use ObjectGuid::LowType instead of uint32 for lowguid type
- Allow .gob info to take in gameobject guid link as well as entry link in addition to gameobject entry and update the documentation of the command
- Change .gob delete to post the spawnid (dbguid) instead of the ingame generated guid (which is basically never seen or used by the player in any other commands that I see)
- Allow spawntimesecs to be negative when spawning a gameobject
- Disable searching by ingame spawn id in commands. (it makes little sense for a user to provide a number which is then attempted to be used as DB guid and non DB guid when both could have a match)
- Update .gob turn documentation to tell about possibility to provide orientation in command
- Correct the types in .gob add command result trinity_string
- Correct the creature search for .npc del
- Change .event to .event info
- Add .go offset command
- Remove the .go command for empty string (no subcommand given) because it just used .go xyz
- Extend .gob info to show size, faction, flags and model dimensions
- Remove some unnecessary casts
- Document .wp show better (first and last were not documented)
- Insert spawnid to .wp show info error message
- Fix spawntime printing for .gobject target
- Fix guid targetting for .npc set movetype
- Fix query by spawnid for .wp show info
- Fix deleting of existing waypoints when twice doing the command .wp show on
- Fix deleting of existing waypoints when doing the command .wp show off
- Change wpguid column in DB and in core to uint32, which is what the spawnid type is in core and db.
2017-01-08 04:55:22 +01:00
ariel-
f6dc66e55f Core/Script: PCH issues 2017-01-07 13:27:43 -03:00
ariel-
db34f6480f DB/Script: The Only Cure is More Green Glow
Closes #1723

SQL by Staleness89, corrections by Killyana
Script by Keader, corrections by sirikfoll and me
2017-01-07 13:23:20 -03:00
Keader
ba1df45d36 Core/Scripts: Palehoof rewritten & Utgarde Pinnacle updated (#18712)
Closes #15405
2017-01-06 20:47:36 -02:00
ariel-
f7f865f818 Core/Scripts: added command to move characters across accounts 2017-01-06 02:34:52 -03:00
ariel-
829deec2bd Core/Scripts: kill one ugly char buffer 2017-01-06 00:45:58 -03:00
Keader
cf6fc37771 Core/Scripts: Missing break and added ZBoundary in Blood Queen Lana Thel 2017-01-02 17:26:39 -03:00
Rushor
1551738c55 Scripts/TrialOfTheCrusader: Anub'Arak Enable Emerge Emote (#18721) 2017-01-02 17:37:35 -02:00
tkrokli
6a51a88767 Update Copyright notice for 2017
Happy new year!
2017-01-02 19:52:45 +01:00
Gustavo
d6a5477407 Core/Scripts: Implement Boss Coren Direbrew (#18137) 2017-01-02 10:55:39 -02:00
Gildor
7a6c47704b Build Fix (#18719)
Closes #18718
2017-01-02 11:53:16 +00:00
Keader
be15beebdc Build Fix 2017-01-01 21:07:59 -03:00
Keader
64f6f2a0ae Core/Scripts: Blood Prince Council refactored and fixed reported issues (#18632)
Closes #7150
2017-01-01 21:19:25 -02:00
Keader
5af1fa2273 Core/Scripts: Illidari Council Rewrite (#18546)
Thanks to Sirikfoll, Krudor and Offl for all help
2017-01-01 21:11:15 -02:00
Killyana
10f4138f6c Merge pull request #18702 from Rushor/peon
Scripts/Quest: Work Work! Move Lazy Peon script to SAI
2017-01-01 15:05:06 +01:00
Rushor
bee2975e4b Scripts/Quest: Work Work! Move Lazy Peon script to SAI 2017-01-01 14:22:58 +01:00
ariel-
81f16b201b Core/Spell: Fixed Arcane Potency
- Removed old workaround in SpellAuras.cpp

Closes #18417
2016-12-30 02:29:34 -03:00
ariel-
f5e08885b7 Core/Script: Kill one startup error 2016-12-29 23:30:54 -03:00
ariel-
584d347b70 Core/Spell: Prevent NO_TARGET auras from actually selecting target (same as caster)
- Fixes an issue with generic mount scripts where the dummy aura was applied and removed then the real mount was applied
- Pets would be unsummoned, resummoned and unsummoned again in an instant

Closes #16783
2016-12-29 03:34:54 -03:00
ariel-
0bb1c03fbf Core/Scripts: fixed ground/fly mounts on non-flyable zones of Outland map
Closes #18627
2016-12-29 02:43:02 -03:00
ariel-
29827855d0 Core/Spell: Fix Turn the Tables
Closes #5134
2016-12-29 02:06:53 -03:00
Keader
db426ed0f9 Core/Scripts: Fixed chase movement in Palehoof encounter
Closes #15405
2016-12-28 11:09:34 -03:00
Keader
3b4521bb29 Build fix 2016-12-27 22:09:11 -03:00
Keader
ca21779864 Core/Scripts: Black Temple misc fixes
Closes #18176
* Implemented faction change of Ashtongues when Shade of Akama dies
* Moved factions to black_temple.h
* Removed explicit from EnslavedSoulEvent (Reliquary of Souls)
* Fixed a typo in Skeram Script (followup 5f44890049)
* Fixed spell Shadow Inferno (Illidari Nightlord)
2016-12-27 22:05:06 -03:00
Keader
5f44890049 Core/Scripts: Added missing spells in Skeram (#18486) 2016-12-27 17:36:32 -03:00
Kittnz
591fba5810 Core/Events: Fixed logic for Fireworks Show at New Years Adjustments 2016-12-27 17:17:47 +01:00
Kittnz
ef4b8da56b Core/Events: Adjust timings and occurrence for Fireworks Show at New Years Eve 2016-12-27 17:05:15 +01:00
sirikfoll
0b33a8281f Core/Ruby: Minor fixes in Halion encounter
* Some codestyle fixes
* Fixed wrong Halion summon with Hotswap system
* Fixed evade issue
* Fixed emblem frost exploit
2016-12-24 00:19:02 -03:00
Keader
554c28d56b Core/Ulduar: Fixed XT002 Heart phase
Closes #18557
Thanks to xinef1
* Fixed Heart Phase
* Fixed Combat bug with Heart after wipe
* Added DespawnAtEvadeMethod
2016-12-23 18:02:31 -03:00
Keader
dbd567799f Core/Scripts: Fixed Suppresser behavior in Valithria Dreamwalker encounter
Closes #18530
* Fixed range issue
* Fixed weave spawn when Summon Timmer Suppresser(70912) is casted
* Fixed spawn count
2016-12-22 17:40:24 -03:00