Commit Graph
80 Commits
Author SHA1 Message Date
treeston 9da4e304ae Scripts/SmartScripts: Fix charmed behavior for SmartAI. For real this time.
- Core AI logic will no longer issue attack/movement commands while under player control.
- Add new SMART_EVENT_FLAG_WHILE_CHARMED (0x200). Any event without this flag won't run while charmed.
- Add SMART_EVENT_FLAG_WHILE_CHARMED to existing actions, except a select subset (movement, talking, and nontriggered casts, pretty much).
2016-09-03 01:21:03 +02:00
Aokromes 8bbdb048ea ddf 2016-08-25 15:07:47 +02:00
Gustavo 3b2e9d4ca4 Core/Scripts Boss Skadi the Ruthless rework 2016-08-25 14:59:21 +02:00
tkrokli 8d1a2284f5 Core/Scripts: move forge_of_souls gossip to DB 2016-08-25 14:53:46 +02:00
Gustavo f7667cdda6 Core/Scripts Implement Pit of Saron Cavern event 2016-08-25 14:53:14 +02:00
Gustavo 49d4e22c6a Scripts/Pet Implemented Argent Squire/Gruntling and Argent Pony Bridle 2016-08-25 14:52:56 +02:00
Aokromes 6a34559fc6 DB/Misc: 3.3.5a fixes 2016-08-24 10:31:58 +02:00
tkrokli 5301e4578e Core/Scripts: set correct unit_flags on Scarlet Mine Car (#17844)
Closes #17816
2016-08-24 10:25:08 +02:00
Aokromes f2556864a2 ddf 2016-08-23 13:56:36 +02:00
SnapperRy 506b2a4f2a Event/Brewfest: implement relay race (#17603) 2016-08-23 13:54:57 +02:00
tkrokli efa7a0639c Core/Scripts: npc_wormhole #define text moved to DB (#17805)
Another core script hardcoded text removal:
- removed #define text from script
- added the text to gossip_menu_option
- added and renamed enum to match DB entries
- minor additional adjustments and comments

Closes #6841
2016-08-23 13:54:38 +02:00
Gustavo 83de75e31b Improve scripts for quests Breakfast Of Champions and A Bear of an Appetite (#17780)
Properly despawn the related GameObjects after use of the quest item, avoiding multiple use and summon
2016-08-23 13:54:24 +02:00
Aokromes b0594862e2 ddf 2016-08-20 06:23:31 +02:00
treeston 190ef9fc54 Pet/DK: Make Risen Ghoul and Bloodworms no longer suicidally charge into not-yet-engaged mob packs. 2016-08-20 06:22:42 +02:00
treeston 5b819fa0f1 AI/SmartScripts: SMART_ACTION_ADD_QUEST -> SMART_ACTION_OFFER_QUEST. Open quest offer instead of adding straight to log - old behavior can be requested using action_param2. Closes #17735. 2016-08-20 06:22:19 +02:00
treeston 7b036961f3 AI/SmartScripts: Add param3 to SMART_ACTION_CAST and SMART_ACTION_INVOKER_CAST that allows specific triggered flags to be set (rather than all-or-nothing). Ignored if SMARTCAST_TRIGGERED is not set. 2016-08-20 06:19:54 +02:00
treeston c2fd73c95d Core/SmartScripts: Add SMART_TARGET_LOOT_RECIPIENTS. Does what it says on the tin.
Use this new target type to fix The Rider of Blood, The Rider of Frost, The Rider of the Unholy. Closes #17817.
2016-08-20 06:19:26 +02:00
Aokromes e08028bc6b Rename file 2016-08-14 10:18:12 +02:00
tkrokli d847bcdac4 Core/Scripts: move npc_mortog_steamhead to DB
Move core script npc_mortog_steamhead to database
- script contains gossip handling + 1 condition
- both actions can be handled in DB settings
2016-08-14 10:16:43 +02:00
Aokromes e1d34cabc9 Core/Dynamic: Reduce differences between 3.3.5 and 6.x branches
Code functionality shouldn't have been modified.
2016-08-12 12:21:55 +02:00
ForesterDev f59e00b85c Core/Command: Check account password max length 2016-08-12 12:19:19 +02:00
Aokromes 54975aef46 rename file. 2016-08-04 02:46:04 +02:00
tkrokli de2ad7d38c Core/Scripts: move npc_kharan_mighthammer to DB/SAI
This PR affects the following 2 quests:
Quest ID 4001 "What Is Going On?" - part 2 (Horde)
Quest ID 4342 "Kharan's Tale" (Alliance)

Target of this PR:
Move core script npc_kharan_mighthammer to DB/SAI
(thereby removing 10 lines of hardcoded text).

* DB/conditions: extra gossip conditions

- added conditions for gossip before quest taken and after quest completed.
- removed redundant core script SAY_GET_ME_OUT_OF_HERE comment

* DB/creature: add more text to Kharan

- add all missing creature_text lines to entry 9021 Kharan Mighthammer
- add SAI duration to wait before TEXT_OVER is triggered (3000 ms)
2016-08-04 02:42:00 +02:00
Aokromes 75cd39b66d ddf 2016-08-03 11:45:29 +02:00
Keader e8c31ba61a Core/Scripts Shade of Akama Rewrite (#17567) 2016-08-03 11:43:27 +02:00
Aokromes b29d998044 ddf 2016-07-30 12:26:05 +02:00
tkrokli e0e4510e38 Core/Scripts: zone_silithus.cpp cleanup
By tkrokli
2016-07-30 12:18:34 +02:00
Nyeriah e9613e6659 Scripts/Karazhan: Rework Attumen the Huntsman's script
Change log:
- Timers are more accurate
- Corrected Charge ability ID based on 6.x researches
- Added Midnight's missing emotes
- Fixed issue with instance being stuck in combat in case of wipes
- Solved the rare scenario where Attumen would be summoned multiple times
- Visual spell on 3rd phase transition added
- Attumen and Midnight can now be damaged during 3rd phase transition
- Midnight calls for the aid of every horse still alive in the stables
- Use proper spells to summon Attumen and handle transitions
- Now despawns on evade
Video of encounter after changes: https://www.youtube.com/watch?v=KX0rqaBeSzw
2016-07-30 12:13:48 +02:00
Aokromes 42eba318de ddf 2016-07-20 19:46:59 +02:00
SnapperRy 836b9180fe Core/Mail: implement a way to specify NPC sender for mails when they should be different from the quest ender (#17601) 2016-07-20 19:46:37 +02:00
Aokromes 9643f2033a ddf 2016-07-20 19:35:27 +02:00
Keader 6759266253 Core/Scripts: Hallow's End Pumpkin Treat
Add all 6 spells available from item 20557,
Hallow's End Pumpkin Treat:
- Hallow's End Candy, Orange Giant (24924)
- Hallow's End Candy, Skeleton (24925)
- Hallow's End Candy, Pirate (24926)
- Hallow's End Candy, Ghost (24927)
- Hallow's End Candy, Female Defias Pirate (44742)
- Hallow's End Candy, Male Defias Pirate (44743)

Thanks @Keader for creating the new spell scripts & SQL,
 saved me a lot of time! :-)
2016-07-20 19:35:07 +02:00
Aokromes d979a98d4b ddf 2016-07-20 19:34:23 +02:00
Shauren 792f48b554 Core/Commands: Allow .cooldown command to work on player pets 2016-07-20 19:34:04 +02:00
Aokromes 00814e247b ddf 2016-07-20 18:37:52 +02:00
SnapperRy 2e02320302 Event/Midsummer: improve pole ribbon functionality (#17464)
Event/Midsummer: improve pole ribbon functionality:

- Bunny creature should hover, which puts it in the intended position.
- Use correct visual and internal spells to handle cosmetics and timers.
2016-07-20 18:37:26 +02:00
Aokromes 2bd38e6b4a ddf 2016-07-20 18:15:15 +02:00
Gustavo d1d8840ce6 Core/Scripts Boss Ahune Clean-up (#17320)
Remove use of flags UNIT_FLAG_NON_ATTACKABLE and UNIT_FLAG_REMOVE_CLIENT_CONTROL
Replace with correct one, UNIT_FLAG_UNK_31, imunity part now is fully handled by auras
Fix a problem with bugged orientation while casting SPELL_SYNCH_HEALTH
Use std::crono notations
Remove unneeded code

Move one spell_linked_spell to SpellScript
Fix Loot issue
Fix Possible Crash
2016-07-20 18:14:58 +02:00
Aokromes ea24f369fd ddf 2016-07-20 16:37:26 +02:00
Andrew Letson efc9ce2991 Core/Scripts: Migrate Professor Dabiri to SAI (#17367)
- removes Professor Dabiri from zone script and adds him to smart_scripts.
- also removes one more line of hardcoded text in core scripts
2016-07-20 16:37:08 +02:00
Aokromes 4ea20b14fa ddf 2016-07-20 16:35:22 +02:00
ariel- 63bb3609b6 Core/Script: moved SAI to cpp for The Etymidian, closes #17053 (#17330) 2016-07-20 16:35:02 +02:00
Aokromes 960e683ea5 Delete duplicate file 2016-07-20 16:15:58 +02:00
tkrokli d9aeb17249 Core/Scripts: remove hardcoded text from npc_sayge
- remove hardcoded (and wrong) text from the script
- copy valid text from broadcast_text to gossip_menu_option
- gossip_menu / npc_text is already correct in TDB 335.61
- sort + clean up core script enum list and add new entries
- keep gossip handling unchanged in the script (low prio)
2016-07-20 16:15:41 +02:00
Aokromes 25da3f58bd Delete duplicate file 2016-07-20 16:07:41 +02:00
tkrokli d7a2ad410a Core/Scripts: npc_grandmother gossip text moved to DB
Removing one more hardcoded text line from core scripts.
Also adding correct gossip to the npc_grandmother script.

Gossip changes in this script:
- remove hardcoded text from core script
- use existing npc_text IDs in gossip enum
- add missing text rows to gossip_menu_option
- use values from gossip_menu_option in enum
- replace spawn coordinates 0.0f with GetPosition()
2016-07-20 16:07:18 +02:00
Aokromes 8108126e74 DB/Misc: delete duplicate file 2016-07-20 15:55:21 +02:00
treeston 4bf80b2a47 Scripts/Instances: Fix a bug that would cause the Hodir encounter to never properly begin. Tagging issue #17302. 2016-07-20 15:54:59 +02:00
Aokromes d7d6b76ffb DB/Misc: delete duplicate file 2016-07-20 15:48:44 +02:00
tkrokli d1333835f7 Core/Scripts: boss_majordomo hardcoded text
2 more text lines removed in the ongoing series:
"Remove hardcoded text from core scripts".

Core script for boss Majordomo Executus:
- add missing gossip_menu_option entries
- link the options via the table gossip_menu
- remove hardcoded text from the script
- minor enum line order sorting cleanup
- replace OnGossipSelect() with sGossipSelect()

The scripted events are unchanged.
If the script is inaccurate, make a new PR.
2016-07-20 15:48:14 +02:00