Commit Graph

4933 Commits

Author SHA1 Message Date
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
14ee1c992f revert fail 2016-08-03 14:16:30 +02:00
Keader
e8c31ba61a Core/Scripts Shade of Akama Rewrite (#17567) 2016-08-03 11:43:27 +02:00
Aokromes
bb79774f01 Core/Scripts: convert script npcs_riverbreeze_and_silversky to SAI
By tkrokli
(remove dead code)
2016-08-03 11:35:28 +02:00
tkrokli
28848a1860 Core/Scripts: Remove useless SD2 error log (#17691)
* Core/Scripts:  Remove useless log message (ref. joschiwald)
2016-08-03 11:27:03 +02:00
ariel-
a0ce33c209 Core/Scripts: Compile fix 2016-08-01 01:27:23 -03:00
ariel-
30d4f70533 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)

(cherry picked from commit 62bfee37cb)

Conflicts:
	src/server/game/Entities/GameObject/GameObject.cpp
	src/server/game/Entities/Object/Object.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/scripts/Commands/cs_gobject.cpp
	src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
	src/server/scripts/Kalimdor/zone_feralas.cpp
2016-08-01 01:23:47 -03:00
Tomatoes
806ef935b8 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-31 02:07:48 +02:00
Aokromes
2aba2e1330 Compile fix 2016-07-30 16:01:15 +02:00
Aokromes
b51adac24c Core/GameObjects: Gameobject rotation (from cmangos/mangos-wotlk@2bcbc0f)
cmangos/mangos-wotlk@0fe88f3: [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing
cmangos/mangos-wotlk@060dfb7: [11667] Implement transport path rotation
cmangos/mangos-wotlk@565f52c: [11806] A bit gameobject code refactoring
cmangos/mangos-wotlk@6874951: [11807] Add gameobject_addon table
2016-07-30 15:51:23 +02:00
tkrokli
e0e4510e38 Core/Scripts: zone_silithus.cpp cleanup
By tkrokli
2016-07-30 12:18:34 +02:00
Nyeriah
9f79672beb Scripts/Karazhan: Register Midnight's summons
* Solves issue with bosses not despawning after encounter
2016-07-30 12:14:09 +02:00
Nyeriah
804f4468ea Scripts/Karazhan: Fix a warning 2016-07-30 12:14:01 +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
ariel-
88bb891a71 Core/Misc: fix issues reported by static analysis 2016-07-26 03:15:20 -03:00
ariel-
291a633c35 Core/Scripts: cleanup Asaad and get ride of a few static analysis issues while at it 2016-07-26 03:15:19 -03:00
Aokromes
ed8b9fe1c4 Scripts/Misc: Add missing override 2016-07-25 15:49:08 +02:00
Aokromes
9dac2dbca9 Script/Stonecore: Fix coverity 82008 2016-07-25 15:29:38 +02:00
ariel-
6434e98c01 Core/Scripts: Cleanup cs_modify.cpp
* Removed a chunk of duplicate code
* Generalized Message notification
* Generalized checking of resources modification with a min-max
* Generalized checking of single value modification
* Closes #16858

(cherry picked from commit 775b03bf6f)

Conflicts:
	src/server/scripts/Commands/cs_modify.cpp
2016-07-23 07:06:15 -03:00
ariel-
fa8662e617 Core/Movement: Clean up and improvements on Unit::SetSpeed (#16843)
- Clean up of Unit::SetSpeed (mostly cherry picks from the 6.x branch):
- the opcode sent depends on the unit. until now, MSG_MOVE_SET_* were sent for every units which isn't like retail behavior.
- Removed the unused method parameter "forced" from Unit::SetSpeed
- Renamed Unit::SetSpeed to SetSpeedRate
- Removed the unused method parameter "forced" from Unit::UpdateSpeed
- Added utility method Unit::SetSpeed which take the new flat value.
Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
	src/server/scripts/Commands/cs_modify.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
	src/server/scripts/Kalimdor/zone_azshara.cpp
	src/server/scripts/Kalimdor/zone_durotar.cpp
	src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
2016-07-23 07:02:25 -03:00
ariel-
878ac1b90e Core/Scripts: update boss_altairus.cpp, indentation and whitespace cleanup 2016-07-23 06:42:52 -03:00
ariel-
2d3fa37ef1 Core/Scripts: Baleroc cleanup
- Remove redundant OnGameObjectCreate/Remove, base implementation already takes care of adding and removing doors
- Added missing overrides, fixup bracing and whitespace
- Revamped a little achievement script and get ride of ugly CAST_AI
2016-07-23 06:39:15 -03:00
ariel-
ea8bb37bc7 Core/Scripts: add missing override and silence a warning in MSVC 2016-07-23 04:21:08 -03:00
Aokromes
9d67cafe92 Scripts/UtgardePinacle: Adjust King Ymiron boundaries 2016-07-22 18:45:29 +02:00
Keader
9ca2d0a62f Core/Scripts Added Black Temple Boundaries (#17579)
* Core/Scripts Added Black Temple Boundaries
2016-07-20 19:56:15 +02:00
Aokromes
75ca64a383 Scripts / Naxxramas : add missing null pointer check. Fixes CID 1354738 2016-07-20 19:50:00 +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
Shauren
3d991107e2 Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-20 19:34:45 +02:00
Shauren
792f48b554 Core/Commands: Allow .cooldown command to work on player pets 2016-07-20 19:34:04 +02:00
Gustavo
0d412494ef Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594) 2016-07-20 19:33:29 +02:00
robinsch
408f4370b3 Script/Archavon: Implement EMOTE_LEAP (#17588) 2016-07-20 19:20:33 +02:00
Snapper
c82ecf4976 Core/Misc: use enum for UNIIT_NPC_FLAGS' zero values 2016-07-20 19:17:06 +02:00
Snapper
429a4bc13b Core/Misc: kill whitespace and use enum instead of hardcoded value. 2016-07-20 19:16:18 +02:00
w1sht0l1v3
6ba75a54d1 Core/Scripts: Corrections after 14b93c04ee 2016-07-20 19:13:35 +02:00
SnapperRy
bde4176861 Core/Script: small improvement for quest "The Hunt is On". (#17537)
Reset emotestate when the event starts.
2016-07-20 18:47:41 +02:00
DDuarte
e2248bbfa4 Scripts/Commands: Fix build warning 2016-07-20 18:37:01 +02:00
Aokromes
b942fd40a9 Scripts/Commands: Remove unused argument of .cometome command 2016-07-20 18:36:33 +02:00
Shauren
fa7026cee3 Core/Spells: Fixed spell range check
Closes #17060
2016-07-20 18:26:18 +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
tkrokli
c58a96de47 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-07-20 18:06:29 +02:00
Aokromes
4e31162a42 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-07-20 16:44:24 +02:00
treeston
3ef2ed31e2 Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331. 2016-07-20 16:35:58 +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
416aaa8c16 delete another no longer used file 2016-07-20 16:27:40 +02:00
Keader
b917eb955f Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell 2016-07-20 16:18:51 +02:00
Aokromes
c028afbf55 delete unused file 2016-07-20 16:17:52 +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
5ec2c5b122 delete no longer used file. 2016-07-20 16:09:34 +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
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