Commit Graph

4101 Commits

Author SHA1 Message Date
treeston 4030e4d780 ScriptedAI/Creature: Fix a bug where a std::chrono overload was counting milliseconds instead of seconds. 2016-08-04 15:32:24 +02:00
jackpoz b37c7101de Scripts/Commands: Change "server shutdown" behavior
Change "server shutdown 0" behavior to delay the shutdown by the force threshold specified in configs if there are still players connected, set to 30 by default
2016-08-04 15:03:58 +02:00
tkrokli 2125c12609 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:34:51 +02:00
jackpoz 884736b3b2 Scripts/Commands: Change "server shutdown" behavior
Change "server shutdown" behavior to always include [force] optional parameter when issued from local or remote console.
2016-08-03 16:26:30 +02:00
Aokromes 153b797182 Update boss_jedoga_shadowseeker.cpp 2016-08-03 10:47:34 +02:00
Keader afaaedad2d Core/Scripts Shade of Akama Rewrite (#17567) 2016-08-01 01:29:53 +02:00
tkrokli e54e27af92 Core/Scripts: convert script npcs_riverbreeze_and_silversky to SAI (#17690)
Move script npcs_riverbreeze_and_silversky to SAI,
thereby removing one line of hardcoded text.

- Remove core script npcs_riverbreeze_and_silversky
- Create SAI script for gossip event Cenarion Beacon
- Add missing gossip_menu for plant description
- Add missing creature_text about Cenarion Beacon
- Add and correct conditions for gossip availability
2016-07-31 06:16:47 +02:00
tkrokli 8fdb9b4579 Core/Scripts: Remove useless SD2 error log (#17691)
* Core/Scripts:  Remove useless log message (ref. joschiwald)
2016-07-31 06:08:43 +02:00
ariel- 62bfee37cb Core/Entities: debloat SummonGameObject parameter list using proper wrappers and enable GO rotation in scripts
- There's still an overload allowing for x, y, z, o to be passed directly
- Fixed default animstate for GameObject creation in many places, it should be 255, not 100 (checked in sniffs)
2016-07-30 18:50:44 -03:00
Tomatoes 29826a92ef Core/Ticket System: Ticket comment visual output bug
* Commenting on a ticket no longer sends the GM's name to the ticket handler for assignment
* Closes #16091
* Closes #17686

Signed-off-by: Naios <naios-dev@live.de>
2016-07-30 22:37:35 +02:00
ariel- 2967bf59b4 Core/GameObjects: Gameobject rotation (from cmangos/mangos-wotlk@2bcbc0f) (#14146)
cmangos/mangos-wotlk@0fe88f35df: [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing
cmangos/mangos-wotlk@060dfb791b: [11667] Implement transport path rotation
cmangos/mangos-wotlk@565f52c6c1: [11806] A bit gameobject code refactoring
cmangos/mangos-wotlk@6874951: [11807] Add gameobject_addon table

Closes #14146
2016-07-30 11:36:18 +02:00
tkrokli b7abaed199 Core/Scripts: zone_silithus.cpp cleanup (#17165)
- move npcs_rutgar_and_frankal to DB/SAI
- move hardcoded text from go_wind_stone to DB
- additional enum cleanup in zone_silithus.cpp
- also solves a $r issue in SAY_TEMPLAR_AGGRO
2016-07-29 10:21:14 +02:00
Nyeriah 2d0fa2d020 Scripts/Karazhan: Register Midnight's summons
* Solves issue with bosses not despawning after encounter
2016-07-28 03:12:35 -03:00
Nyeriah 0cc33b5a42 Scripts/Karazhan: Fix a warning 2016-07-28 01:19:57 -03:00
Nyeriah 4c4d92faa3 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-28 00:48:20 -03:00
Keader 2710c655ff Core/Scripts Added Black Temple Boundaries (#17579)
* Core/Scripts Added Black Temple Boundaries
2016-07-20 15:28:00 +02:00
ForesterDev d57c177d0b Scripts / Naxxramas : add missing null pointer check. Fixes CID 1354738 (#17628) 2016-07-19 10:41:42 +02:00
Keader cee1c0789a 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-16 16:15:19 +02:00
Shauren 86a594a4dd Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-16 14:12:15 +02:00
Shauren 9509aac38b Core/Commands: Allow .cooldown command to work on player pets 2016-07-16 11:15:23 +02:00
ariel- 6988407b43 Core/Spells: Fix Roar of Sacrifice damage part (#17519) 2016-07-16 02:52:32 -03:00
Gustavo 23e89b8aef Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594) 2016-07-15 23:45:50 +02:00
Andrew Letson 6ea48c036e Core/Scripts: Migrate Tanaris NPC's to SAI (#17390) 2016-07-15 18:42:12 +02:00
robinsch 8a2df73a82 Script/Archavon: Implement EMOTE_LEAP (#17588) 2016-07-15 15:31:52 +02:00
Warpten 07ce570be8 Scripts/RubySanctum: Fix missing break reported by Coverity. 2016-07-10 17:46:15 +02:00
SnapperRy df532d1948 Core/Script: add missing say in script for npc Lakota Windsong 2016-07-10 14:39:10 +02:00
Snapper ebb33bbfc1 Core/Misc: use enum for UNIIT_NPC_FLAGS' zero values 2016-07-10 09:33:55 +02:00
Snapper 21797c6c4f Core/Misc: kill whitespace and use enum instead of hardcoded value. 2016-07-09 21:36:04 +02:00
w1sht0l1v3 fcfb7b96b2 Core/Scripts: Corrections after 14b93c04ee 2016-07-09 17:14:03 +03:00
SnapperRy eb1cd4c907 Core/Script: small improvement for quest "The Hunt is On". (#17537)
Reset emotestate when the event starts.
2016-07-07 21:55:52 +02:00
SnapperRy 03b15d968b 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-05 15:19:30 +02:00
DDuarte 42028a1842 Scripts/Commands: Fix build warning 2016-07-05 11:55:29 +01:00
DDuarte 1100fe6057 Scripts/Commands: Remove unused argument of .cometome command 2016-07-05 11:21:50 +01:00
Gustavo dfe278459d Core/Scripts Corrections on Halion's Encounter (#16725)
Core/Scripts: Updates to Halion

* Fixed Combustion and Consumption.
* Fixed Living Embers and Blazing Auras.
* Timer changes.
2016-07-05 10:54:31 +02:00
Andrew Letson 32dd6bbca8 Core/Scripts: Migrate Shadowmoon Valley NPC's to SAI (#17373)
* Migrate Flanis Swiftwing and Kagrosh to SAI and more.
2016-07-04 16:17:27 +02:00
Shauren e6a52d4aae Core/Spells: Fixed spell range check
Closes #17060
2016-07-01 20:26:49 +02:00
Aokromes b0e5f6de47 Scripts/Midsummer: Burning hot pole dance (#17445)
* Scripts/Midsummer: Burning hot pole dance
By  zwerg, closes #6876
2016-06-26 00:27:19 +02:00
Gustavo f1639a30ba 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-06-26 00:23:19 +02:00
Meruemu 325ccab595 Core/Scripts: Fix array out of bounds in boss_mother_shahraz.cpp. (#17434)
Fix an error in Prismatic Shield auras and Fatal Attraction teleport points selection (was introduced in https://github.com/TrinityCore/TrinityCore/commit/fb63c8e915986650f787de62859e1f818d1d96c7)
2016-06-21 23:18:08 +01:00
vincent-michael d1cb53aa2c Core/Scripts: Fixed non pch build 2016-06-19 18:13:10 +02:00
tkrokli 736843fbb5 Core/Scripts: Tom Hegger must target player in Say text (#17395)
File: zone_borean_tundra.cpp
Script: npc_hidden_cultist
Quest: The Hunt is On, 11794
NPC:  Tom Hegger, 25827

Before this change, Tom Hegger does not target player when saying his
aggro text "You don't know who you're messing with, $c!   Death beckons!"
and hence the text $c will be shown instead of the player class.
2016-06-17 13:28:26 +02:00
treeston 90ff3ce8c8 Merge branch '3.3.5-frogger' into 3.3.5 (PR #17261) 2016-06-16 17:53:14 +02:00
ariel- d1d0c64ad1 Core/Scripts: Extended SMART_ACTION_SET_INST_DATA to also set BossStates. (#16739)
Scripts/Dire Maul: Initialize boss states array so it may be called from SmartAI. (Ref #6429)
2016-06-14 17:29:51 +01:00
xjose93 e2c0189927 Core/Commands: Implement .neargraveyard (find nearest graveyard from dbc). (#17301) 2016-06-14 17:23:45 +01:00
Andrew Letson 8e84603090 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-06-14 16:34:10 +01:00
JamminWidYou 3002839bfe [3.3.5] Core/Quest: A life without regret (#16067)
* Life without Regret

* misc changes to sql

* sql changes
2016-06-14 12:48:28 +01:00
treeston 813e33b927 Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331. 2016-06-13 11:29:12 +02:00
ariel- f03dc79959 Core/Script: moved SAI to cpp for The Etymidian, closes #17053 (#17330) 2016-06-13 09:16:58 +02:00
mik1893 3d31e2a157 Core/Spells: fix issue with Illumination talent (broken in #17122) (#17350) 2016-06-12 10:47:29 +01:00
Aokromes cc521d49dc Scripts/UtgardePinacle: Adjust King Ymiron boundaries 2016-06-12 09:54:56 +02:00