Commit Graph

1498 Commits

Author SHA1 Message Date
GuybrushGit c29504e843 Horde Field Duty event: Prevent timer reset when boss despawns. (#1152) 2018-01-04 01:21:34 +02:00
brotalnia 8aaa64ffc2 Update comments in shadowfang_keep.cpp 2018-01-02 23:28:59 +02:00
brotalnia 36e37f205b Rework some SFK scripts. 2018-01-02 23:22:12 +02:00
brotalnia 3db48f9a72 Remove unused local variable in war effort code. 2017-12-29 20:16:15 +02:00
brotalnia dacba5f6ac Remove unused AI function CanCast. 2017-12-29 20:13:57 +02:00
brotalnia f399b57819 Disable interaction if npc is in combat. 2017-12-29 20:04:50 +02:00
GuybrushGit e392feea8b Adjust yearly events for leap days (#381)
* Adjust yearly events for leap days

* Adjust yearly events for leap days

* Merge branch 'development' into leapDays
2017-12-29 18:06:37 +02:00
Ryan Cheung e47ac8cea4 Scripts/NAXX: Fix broken instance encounter in progress check (#963) 2017-12-29 18:05:59 +02:00
brotalnia f83bbcadbe Change creature spell scripts loading order. 2017-12-29 17:58:36 +02:00
brotalnia 377b2cb246 Moved Azuregos script to database.
-Added scripts to creature spells

Removed manual loot distance adjustment from scripts.

Set loot and xp credit distance of bosses to 150 yards by default.
2017-12-28 21:56:50 +02:00
brotalnia 29c288acc1 Add missing include to fix linux build. 2017-12-28 03:05:18 +02:00
brotalnia 3f9ac5f32c Fix gameobject spawn saving query. 2017-12-28 02:58:03 +02:00
brotalnia bcc30a0446 Preserve spawned by default. 2017-12-28 02:24:01 +02:00
brotalnia e350579f25 Add minimum and maximum to respawn time. 2017-12-28 02:18:08 +02:00
Prithu Parker 17b4233b33 Destroy charter after guild creation to prevent the Petition being deleted prematurely 2017-12-27 21:25:12 +11:00
bladez d35ad1ee39 Misc fixes re: Regthar Deathgate & GM lookup limits (#1085)
* Stop showing accounts once we've hit the character limit in character lookups

* Don't clear Counterattack! variables on Regthar reset (i.e. someone attacks him or drags a mob close)

* Increase banner despawn radius
2017-12-27 19:34:11 +11:00
brotalnia 11ab55a2c8 Implement Creature Spells system. (#1057)
* Implement creature spells system.

* Tabs to spaces.

* Use creature spells for Varimathas and Defias Pillager.

* Try to fix linux compile.

* Some refactoring.

* Add EventAI command to set creature_spells template.

* Correct undercity.cpp comments.

* Add command to reload table.

* GetPatchName should not be static.

* Add missing const.
2017-12-26 19:43:11 +02:00
bladez 7a9ded7b44 Added missing return in Petition::GetSignatureForPlayer (#1081) 2017-12-26 21:35:26 +11:00
dimefox 2e5a6320c7 Fixes for Cork Gizelton escort and add escort show/hide wp commands (#1004) 2017-12-26 19:43:54 +11:00
dimefox 97e61bc648 add waypoints for saurfang nef head turn-in (#1011) 2017-12-26 19:29:35 +11:00
bladez add00735b9 Resolve a crash in events triggered by delayed spells (#1080)
* Now pass target/used GO for EffectSendEvent when using one (and no focus is required)

* Check target, source and instance validity in spell event handlers

* Add a note warning about delayed GO spell casts

* Check target and source validity in more event scripts

* Dynamic cast
2017-12-26 18:55:37 +11:00
bladez 48d7d5ac08 Perform charter check before actual item deletion (pItem may be dangling) (#1079)
* Perform charter check before actual item deletion (pItem may be dangling)

* Update Player.cpp
2017-12-26 18:50:08 +11:00
bladez d01096b893 Cache player position, remove more blocking queries where possible (#1066)
* Now cache player map and position

* Update player cached position on logout

* Use cached data where possible in lookups rather than directly querying the DB

* Use player cache data for multi-faction character check and cinematic skipping
Update cache position on login/logout
2017-12-26 15:42:17 +11:00
GuybrushGit 4ecc92f651 AV honor gains (#876)
* Moved honor gain calculations to Formulas.h
Removed invalid hk_honor_at_level

* AV honor gains
2017-12-26 05:30:38 +11:00
GuybrushGit fdd3eb25a6 Fix to Lava Spout Totem (#788) 2017-12-24 17:21:18 +02:00
brotalnia 3eb5db1b79 Make Totems unable to parry. 2017-12-21 19:56:30 +02:00
Prithu Parker d48149508f Fix ban reason display output when using Linux 2017-12-20 22:21:55 +11:00
bladez c727e59e39 Refactored petition handling (#1037)
* Now load petitions into memory and manage them directly

* Reworked petition handling to utilize memory stored petitions rather than directly querying the database

* Add support for reloading petitions

* Now store charterguid in DB with petition info

* Now send a valid message when a player has already signed a charter on the same account
Re-added SendPetitionShowList
Corrected debug message formatting

* Reset petition pointer after deletion

* Now delete petitions when charters are deleted

* Add guards to guild mappings

* Forward decl Petition

* Include GuildMgr

* Move Player* constructor of PetitionSignature to TU rather than header

* Include GuildMgr in Item
2017-12-20 17:24:24 +11:00
bladez 8bcfeca049 Added more Kalimdor instances (#1039)
* Delay dyn object los checks further, and let creatures cheat

* Split Orgrimmar from Durotar, and split Southern Kalimdor, when using continent instanciation

* Minor refactor
2017-12-20 16:20:19 +11:00
bladez ad7f495463 Move long-blocking GM command queries to async operations (#1036)
* Remove % prefix on IP lookup so table indexes can be utilized

* Add template functions for performing delayed query holders and unsafe async queries with static methods as callbacks

* Implemented async handling of PInfo command and extracted to separate TU for futher async command handling

* Add support for static delay holder with no extra params

* Remove a number of wildcard prefixes from lookups (cannot use indexes with wildcard prefix)
WIP move character lookups to async

* Make adding to async tasks threadsafe, remove arbitrator on task execution and allow them to be run when a thread is ready

* Remove non-templated declarations and definitions of delayed query holder methods, it breaks builds. Just use a dummy var instead

* Move display for lookups to async tasks
Don't delete queries inside ShowPlayerListHelper

* Use async queries for player character name lookup and account character lookup

* Disable console output for async lookup commands (pending console output support)

* Move account lookup to async

* Remove all concat3 and wildcard prefixes from frequently used GM commands so that table indexes are utilized

* Moved offline gold removal to async

* Remove bad delete

* Move banaccount lookup queries to async

* Add a simple async task for sending packets to specific sessions

* Pass data by ref in SessionPacketSendTask

* Include for WorldPacket def

* Remove class qualifier
2017-12-20 16:19:30 +11:00
GuybrushGit 3b382aba87 Fix to weapon damage while shapeshifted (#371) 2017-12-20 16:14:02 +11:00
GuybrushGit 928bbb2f2b Fix to Black Qiraji mount (#224)
* Fix to Black Qiraji mount

* Fix to Black Qiraji mount

* Fix to Black Qiraji mount
2017-12-20 16:07:44 +11:00
GuybrushGit eb8103970e Winter Veil fixes (#1023) 2017-12-17 18:06:54 +11:00
zelazrgn e0705b669a fix chain multiplier modifiers not benefiting from spell power or healing power (#933)
* fix chain multiplier modifiers not benefiting from spell
power or healing power

* addressed pr comments - only applying spell mod SPELLMOD_EFFECT_PAST_FIRST when targetnum > 1

* addressed pr comments - flipped around order of "if" statements
2017-12-14 22:30:54 +11:00
brotalnia 0cfc5eac41 Improve Test of Lore quest chain. 2017-12-10 14:06:36 +02:00
brotalnia dd92c22363 Add gossip menu for Estelle Gendry. 2017-12-09 10:08:05 +02:00
brotalnia 7d4c305a26 Finished replacing hardcoded texts in AV scripts. 2017-12-09 09:18:51 +02:00
brotalnia 996c54dad4 Replace some hardcoded texts in AV scripts. 2017-12-08 14:20:22 +02:00
brotalnia b4fe86c6be Replace some texts in AV scripts with broadcast texts. 2017-12-07 12:53:03 +02:00
brotalnia bda11aece8 Add broadcast texts to gossip menu options. (#926)
* Add broadcast texts to gossip menu options.

* Add deleted teleport npc in custom patch.
2017-12-07 08:59:31 +02:00
Prithu Parker 8b60809d8d Remove unsummon call on ForcedDespawn of TemporarySummon. They'll still despawn properly if not a manual spawn 2017-12-07 02:46:36 +11:00
bladez d8c1d5331d Adjust War Effort autocompletion params and prevent adding to completed resources (#924)
* Limit autocomplete contributions to the resource's required amount
Now use config rate directly rather than multiplier in autocomplete

* Move the interval at which auto completion occurs to a configurable param
2017-12-06 21:18:19 +11:00
bladez 43f95c3d82 Minor TemporarySummon changes & event cleanups (#923)
* Cleanup Regthar Deathgate properly if the boss cannot be summoned
Fix despawn time on boss
Despawn banners on Kromzar death

* Despawn temporary summons via UnSummon if ForcedDespawn is called on them

* Minor refactor

* Use wrapper for Windsor despawn
2017-12-06 20:07:07 +11:00
GuybrushGit 4d33e2450f Winter Veil fixes (#900)
* Metzen's gossip and quest completion

* Add Snowball knockdown

* Winter's Presents quest relations

* Snowball knockdown

* Winter Veil fixes
2017-12-06 10:13:17 +02:00
brotalnia 69e41ec0e4 Remove custom teleport ability from King Gordok. 2017-12-06 06:53:31 +02:00
Prithu Parker 4fab00df3c Now propagate USE_SENDGRID to subtargets, and link realmd against libcurl 2017-12-04 21:58:26 +11:00
bladez 2d60efb153 Arcane Concentration (Clearcasting) proc flags (#880)
* Only proc on damaging spells

* Correct family check for blizzard CC trigger - was proccing on any frost AoE
2017-12-03 17:17:43 +11:00
GuybrushGit 0340ab1bde Remove pvp flag when starting a flight (#865) 2017-12-02 18:27:12 +11:00
GuybrushGit e612cf5607 Fixed Razuvious Disrupting Shout (#874) 2017-12-02 18:24:59 +11:00
GuybrushGit f76c71af72 Fix to Viscidus death (#660)
* Fix to Viscidus death

* Fix to Viscidus death
2017-12-01 15:17:34 +11:00