aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
AgeCommit message (Collapse)Author
2020-08-03Core/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 (cherry picked from commit 210176fd915cf4ba16f428d3c1a249a71f4aa7a7)
2020-07-31Core/Creatures: Fix typoAokromes
2020-07-31Core/Creatures: Move gossip trainer assignment to creature_trainer table - ↵Shauren
same gossip can open different trainers depending on which creature it is assigned to Closes #21723
2020-07-16Combat/threat rewrite prep - merge RBAC/DB changes.treeston
(cherry picked from commit e35092c6a164e929f9684b350093b2beefee5d86)
2020-07-16Core/Scripts: Fixed GAMEOBJECT_TYPE_DOOR closing automatically after being ↵S.V
opened with .gobj act (#19342) Closes #19261. (cherry picked from commit 3eba0937047a1586d42f813ee21fb1752ae85853)
2020-07-16Core/Scripts: fix array out of bounds in Pit of Saron doorDataariel-
(cherry picked from commit 08d01053969fe0c243e214d49adf7ca7513e76ea)
2020-07-16Correct some missing auth DB changes from b59ca1c.treeston
(cherry picked from commit 41eddd59aa3c911ba77f9ffbb85af42a4e6c2b53)
2020-07-16Rename .debug uws to .debug worldstate (clarity change).treeston
(cherry picked from commit b59ca1cc81c08bbe043f8974f41fee191e7fd6ad)
2020-07-16Add new command 'npc showloot'. Does exactly what it says on the tin.treeston
(cherry picked from commit 6f29aac93626ce37922c3c9a85d20b2e4d9d3bbc)
2020-07-16- Add new commands .group set assistant, .group set maintank and .group set ↵treeston
mainassist to toggle raid member flags. - Fix 2017_05_29_00_auth.sql to be reapply safe. (cherry picked from commit ac0f76f8c57bba195b773a6a31ade2e8e2318aeb)
2020-07-16Removed a now-unused local (ca02629 follow-up)treeston
(cherry picked from commit 4e41d3e6bd90047e2f9e228b6f3adc52012d7b08)
2020-07-16Make some adjustments to .summon and .group summon behavior to make them ↵treeston
more permissive: - Now only requires the either target's group leader or target itself to be on your map - Now summons all applicable group members even if one member fails checks - No longer has some truly weird edge case instance unbind code that could cause exploit behavior (Really, I have no idea why this existed, because it certainly didn't do what it might've been meant to do.) (cherry picked from commit ca0262995053e0e5baef7e97211fec8f81664ea7)
2020-07-16Core/Scripts: fix some /W4 warningsariel-
(cherry picked from commit d6cae113c64f1024b11493ee68e06d9b3052bfab)
2020-07-16Core/OutdoorPvP: fix another warningariel-
(cherry picked from commit 6b493808068d293aaae1fa50b6acbc1abee7b81f)
2020-07-16Core/OutdoorPvP: fix warningariel-
(cherry picked from commit a05e1095c6edb2b9717a217f785499778901a2ae)
2020-07-16Core/OutdoorPvP: refactor using Position and Quat to pack parametersariel-
- Moved statics to cpp - Save scriptids into an array (cherry picked from commit 3e7b64b2f765bebc722c1194b7fc2f749fae77f7)
2020-07-16Core/Scripts: remove non-player objects (ie corpses) from Sindragosa's Fury ↵ariel-
targetlist (cherry picked from commit b3336cf9433f14dbcc2e9a7eecb4062a936401b2)
2020-07-16So, I came in trying to fix gameobject LoS. So I restructured some stuff.treeston
Then it turned out that gameobject LoS is already fixed. So all this does, really, is restructure some stuff. And remove the hack from Sapphiron because I could. (cherry picked from commit d57307f63d8deb51003d61163adccce4e2c1bd47)
2020-07-16Core/Scripts: Simplify codejackpoz
Partially revert 753e7074d84b5a2e8d3c3e92d25c54bb25ba477e and 12c680f9b1f1068099c3b19443d93d456690ac56 to simplify the code and to only remove GMs from the target list. (cherry picked from commit f9cfc202e90ded24fe0dcf5d06035d2aab2cf6af)
2020-07-16Core/Scripts: filter out corpses from Sindragosa's Fury targetlistariel-
- This would incur in a crash after attempting to convert the Corpse object into Player Closes #19227 Closes #19862 (cherry picked from commit 753e7074d84b5a2e8d3c3e92d25c54bb25ba477e)
2020-07-16[3.3.5] Get zone/area IDs from vmap data in the liquid update (#19840)Treeston
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup * Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject * Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields * Clean up liquid state handling on Unit and Player * Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject. Closes #16489 (cherry picked from commit f6c849729b27b77228704b595de3adaf24da2c10)
2020-07-16Pet/Guardian AI hook re-organizing (#19824)Treeston
* Pet/Guardian AI hook re-organizing: - Adjust OwnerAttacked/OwnerAttackedBy hooks on CreatureAI to fire for all owned units, not just player pets. This should allow guardians to more reliably recognize valid targets. - Kill off the AttackedBy hook. While it was defined in CreatureAI.h as virtual, it was only ever invoked for player pets in specific situations. This makes it classic developer bait. - Adjust PetAI to use DamageTaken instead of AttackedBy. - Adjust behavior of AttackStart on PetAI to compensate. (cherry picked from commit 1660bb7d27d6f42b49012a6b57e3c2b2eab20fd3)
2020-07-16Core/AI: segregate GameObject ReportUse from normal Use (lock open/normal click)ariel-
Closes #19819 (cherry picked from commit 2335b9de1a46a409c714a1dc89cbd0565545e70e)
2020-07-16Core/Scripts: simplify speech for DK races questsTecDian
(cherry picked from commit 3f34c2f5ebe8d0d9f97b169d1ace07d6ab3f3102)
2020-07-16Core/Scripts: Updated Sunwell Plateau instance modelsirikfoll
(cherry picked from commit 2984def452b2106fc3409ccdcc411028efaceb01)
2020-07-16Some improvements to .debug raidreset command. Now supports heroic ↵treeston
difficulty 5-man dungeons and outputs sensible text, as opposed to silently doing (or not doing) stuff. (cherry picked from commit a3b198c7e19d6627e6078702ffcbaa67969e4943)
2020-06-27Core/DataStores: Simplified string memory allocation in db2 files, dropped ↵Shauren
unneccessary level of indirection
2020-06-25Core/Players: Remove deprecated skill related config AlwaysMaxWeaponSkill ↵Shauren
and command .maxskill
2020-06-22DB/Account: update account_access table (#24788)ForesterDev
* DB/Account: update account_access table: - rename fields id -> AccountID, gmlevel -> SecurityLevel - add Comment field - rename command .acc set gmlevel to .acc set seclevel * Update auth database * Fix primary key * Temporary restore old command account set gmlevel with same handler as account set seclevel Use Optional for realmID - if not set, use -1 (for all realms) * Rename 2020_XX_XX_00_auth.sql to 2020_06_20_00_auth.sql * Update auth_database.sql * Rename 2020_XX_XX_00_world.sql to 2020_06_20_06_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 8e0365d8a6ca5628ad17e6684743d9ab2138c068)
2020-06-14Core/Scripts: moved Wild Growth calculation to script and fixed formulaariel-
Thanks ccrs for the formula (cherry picked from commit 96ee23487fe2a5fc2cf79e5d2ec4ec38b965e70d)
2020-06-14Scripts/Gossip: fix go_ahune_ice_stone (#19835)ForesterDev
(cherry picked from commit f9a01c4b691c5d179acd55bfe8db36f21a327dfb)
2020-06-14Core/Scripts: Fixed some events that not should triggered by non-players on ↵Keader
Illidan encounter (cherry picked from commit 0c6829f7f22f32e602ea6ed440d50f2f596ba998)
2020-06-14Core/Scripts Properly set Freya's BossState do DONE and avoid some loot exploitssirikfoll
Closes #19823 (cherry picked from commit 1cc0458b114490238ff9cfed78b1932df67def29)
2020-06-14Scripts/Command: implement .debug play music commandForesterDev
Closes #19809 (cherry picked from commit dd4ff1fe5458c89fc1d988fcc6ba5792ee482dcf)
2020-06-14Instances/Ulduar: Fix a super edge case bug where Algalon would evade if his ↵treeston
tank successfully tanked a Cosmic Smash and got knocked up. Shadow priests everywhere rejoiced. (cherry picked from commit b6a4e9f3f9aca8e82e4b8cc1868e4b24dd2bba6f)
2020-06-14Scripts/VioletHold: fix stack overflow when reflecting 'Splash'ariel-
Closes #19514 (cherry picked from commit d9a1c82ab44254c280083e6297b8aec6350ab363)
2020-06-14Fix buildAokromes
(cherry picked from commit 195db7c7bb7137f3ebadefa81fabdcf66672711a)
2020-06-14Core/Defines: define faction templates and replace magic numbers from scriptsForesterDev
(cherry picked from commit abea8bf4cb3034f56d833982f951a0742dc36fc7)
2020-06-14Scripts/ICC: add missing cases for Dark Martyrdom difficulty entriesccrs
how come nobody noticed this? (cherry picked from commit 7afe0b7fb005999dfb8bfae45b7d22abbec29b93)
2020-06-14Core/Scripts: improvements on the Thorim scriptariel-
Improvements done to initial work by joschiwald: - Fixed stormhammer casting and visuals - Fixed spell credits - Implemented removal of Impale when HP is higher than 90% - Corrected faction templates for the pre combat creatures - Implemeted Leap on the arena adds (thanks to joschiwald for implementing conditions) - Scripted lighting charge using AuraScript periodic - Fixed timings - Corrections on the hallway encounters (added knockback immunity to minibosses too) - Fixed multiple blizzards issue - Lever will now reset properly, should players fail to get inside. This allows the door to be opened more than once during the combat - Corrections in the outro event - Implemented paralytic field traps on the hallway. - Implemented Ancient Gate of the Keepers opening. - Changed blizzard bunny targetting to conditions entirely. - Removed obsolete scripts - Standards: delete spell script names by ScriptName instead of spell_id - Swapped factions for pre-adds (alliance should get horde trash and vs) - Fixed Leap setting home position for adds - Removed a bunch of magic numbers - Runic Colossus should finish current Runic Explosion before beginning to attack - Fixed UpdateAI logic to put it in line with other scripts (ie don't stop casts) Special thanks to: - chaodhib for the blizzard trigger waypoints and investigation on spell radius - Malcrom for creating the Conditions Creator :P Closes #15008 Closes #17072 (cherry picked from commit 4a69f5bda58fe3af5ec6000e0ec10a3b0732969a)
2020-06-14Scripts/Ulduar: Initial implementation of the Thorim Encounterjoschiwald
Closes #7651 Fix logic fail in achievement: SPELL_LIGHTNING_CHARGE aka 62279 is casted on Thorim itself to buff him, not the damage spell tracked by the achievement. (cherry picked from commit 5e90c76fd44e81e01e7bd5274867864d082059d2)
2020-06-14Scripts/Events: Add missing line for "Love is in the air" boss fight (#19521)TecDian
(cherry picked from commit 4b8644d6e6581f13dcb2a965ce77a846017c1431)
2020-06-14Scripts/Commands: Update reload commands namesChazy Chaz
(cherry picked from commit 4843544c217800ba56b3084a8b1ca2fcf62cb091)
2020-06-14Core/Creature: drop method SetPositionccrs
eeeevil, use UpdatePosition. It was there just for old scripts compatibility. (cherry picked from commit 17579f8d91e0dcc6990fe581de9ca51ed444b754)
2020-06-12Core/Spells: Implement using different difficulty data from all spell ↵Shauren
related db2s, not just SpellEffect and SpellPower
2020-06-04Core/Misc: Ensure that query used for .reload creature_template command ↵Shauren
always matches the one used for loading during startup
2020-05-24Core/Maps: Improvements to terrain swap handlingShauren
* Fixed memory leak when unloading grids * Handle child maps being entered * Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-05-21Core/Misc: GCC build and warning fixesShauren
2020-05-03Core/Misc: build fixesShauren
Merges #24550
2020-05-03Core/Misc: build fixesariel-
(cherry picked from commit aa0b7dd1529a5c9cf666d569a54f024d28955c5b)